OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: johnM on August 07, 2011, 09:31:59 PM

Title: combo box OnEditChanged
Post by: johnM on August 07, 2011, 09:31:59 PM
using the combo box style 0
the OnEditChanged fires after each letter is entered into the text box
is it possible to type a new line of text into the text box and have it added to the list?
dcl version 6.0.2.5
Title: Re: combo box OnEditChanged
Post by: owenwengerd on August 10, 2011, 07:31:21 AM
Maybe during OnKillFocus or OnDropdown if the input field was changed?
Title: Re: combo box OnEditChanged
Post by: johnM on August 10, 2011, 10:12:17 AM
Thanks, I’ll look into it.
For now I just added add/delete buttons
Could someone explain the use of the oneditchange function?
Is it supposed to fire each time a letter is typed into the combo text box?
Title: Re: combo box OnEditChanged
Post by: owenwengerd on August 10, 2011, 10:52:16 AM
Documentation for OnEditChanged:
http://www.opendcl.com/HelpFiles/index.php?page=Reference/Event/EditChanged.htm (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Event/EditChanged.htm)

This event enables you to set a flag to signal that the user typed something in the edit box.
Title: Re: combo box OnEditChanged
Post by: johnM on August 10, 2011, 12:04:09 PM
I understand now
I was interpreting the description to mean when the user finishes typing in the text box
So if you type the word “hello” the event is fired for each letter, this is just to let the program that something is going on.
Then you can set a flag to be used by another function to write the text to the list if necessary.
Thank you very much for the help