IonicWind Software

IWBasic => GUI Central => Topic started by: Jerry Muelver on February 13, 2008, 07:00:16 AM

Title: GEt user input from edit box on combo box
Post by: Jerry Muelver on February 13, 2008, 07:00:16 AM
I've got a combo box on a window. I want to let the user type into the editbox of the combo box, then I capture the edited text and use it for ADDSTRING and other mysteries. What message from the combobox will tell me that user has changed the selection and pressed ENTER? I can use CBNEDITCHANGE, but that gives me each keystroke. Add 'em all up, and quit on CRLF?
Title: Re: GEt user input from edit box on combo box
Post by: Jerry Muelver on February 13, 2008, 07:07:45 AM
Well, I can tell the user to put a dot at the end of the entry, then use

if right$(seltext,1) = "." then....

Seems kind of lame, though.  ENTER ought to do the job, somehow. Use a dialog, instead of a window, then TAB out to send the entry?
Title: Re: GEt user input from edit box on combo box
Post by: GWS on February 13, 2008, 07:31:56 AM
I've not tried it, but does SETCONTROLNOTIFY do the job ?

Graham :)
Title: Re: GEt user input from edit box on combo box
Post by: Jerry Muelver on February 13, 2008, 08:00:06 AM
Can't make it work, yet, Graham. I'll try some more.

BTW I can use "." to check for submitted string, but "/" or "=" won't work. What gets filtered in a combobox editbox?
Title: Re: GEt user input from edit box on combo box
Post by: GJ on February 13, 2008, 12:12:58 PM
Hi Jerry,

What if you use a default button, make it invisible, and trigger the enter key in the editbox

I've put up a sample on http://www.ionicwind.com/forums/index.php/topic,1652.0.html (http://www.ionicwind.com/forums/index.php/topic,1652.0.html)

Hope it helps a bit..  ;)



Gertjan  :)
Title: Re: GEt user input from edit box on combo box
Post by: Jerry Muelver on February 15, 2008, 04:13:49 AM
Thanks, Gertjan. I've gone with a pop-up dialog for the user input, instead of trying to teach each user how to edit a combobox. It's a simple program, so I have to keep the interactions simple, too.  ;)