IonicWind Software

IWBasic => General Questions => Topic started by: Andy on May 07, 2016, 04:20:14 AM

Title: Multi line edit control
Post by: Andy on May 07, 2016, 04:20:14 AM

Almost done now with the registry editor, I am using an edit control (multi line) to accept registry multi strings.

Is there a way to stop a blank line being inserted into a multi line edit control?

i.e. not to allow for example:

aaaaaaa
bbbb
ccccccc
               (an blank line here)
ddddd etc...

...as I only want to accept:

aaaaaaa
bbbb
ccccccc
ddddd

Think this is the last little puzzle to solve before I release the editor.

Thanks,
Andy.
Title: Re: Multi line edit control
Post by: LarryMc on May 07, 2016, 10:39:26 AM
subclass the edit control and don't allow back to back carriage returns