Discussions related to Visual Prolog
B.Hooijenga
VIP Member
Posts: 62
Joined: 11 Jul 2002 23:01

wordwrap in editControl possible?

Post by B.Hooijenga »

Hello Thomas,

Is there an option for word wrapping in the edit control in VIP?
If not, could you implement this in VIP?

In https://learn.microsoft.com/en-us/windo ... t-controls,
it is mentioned as a callback function for an application programme.

Kind regards,
Ben
Harrison Pratt
VIP Member
Posts: 463
Joined: 5 Nov 2000 0:01

Re: wordwrap in editControl possible?

Post by Harrison Pratt »

It looks like word wrapping is implemented in the sciLexer control.

See sciLexerBase.i

Code: Select all

properties     wrapMode : integer.     % Set wrapMode to (sciLexer_native::sc_wrap_*):     % sc_wrap_none (0) to disable line wrapping,     % sc_wrap_word (1) to enable wrapping on word or style boundaries     % sc_wrap_char (2) to enable wrapping between any characters, and     % sc_wrap_whitespace (3) to enable wrapping on whitespace.     % sc_wrap_char is preferred for Asian languages where there is no white space between words.
B.Hooijenga
VIP Member
Posts: 62
Joined: 11 Jul 2002 23:01

Re: wordwrap in editControl possible?

Post by B.Hooijenga »

Harrison,

Thank you. I was aware of that.

But my question is explicitly about the editControl.

Kind greetings,
Ben
User avatar
Thomas Linder Puls
VIP Member
Posts: 1479
Joined: 28 Feb 2000 0:01

Re: wordwrap in editControl possible?

Post by Thomas Linder Puls »

Try disabling the auto h-scroll:

Code: Select all

predicates     setAutoHScroll : (boolean AutoHScrollIsSet = true) [generatedInitializeBeforeShow].     % @short Specifies whether the edit control automatically scrolls its     % text to the right when the user types a character.     % @exception gui_exception::unableToSetPropertyAfterShow_exception     % @end
Regards Thomas Linder Puls
PDC