May 18, 2024, 11:38:46 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Multi line edit control

Started by Andy, May 07, 2016, 04:20:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy


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.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

LarryMc

subclass the edit control and don't allow back to back carriage returns
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library