Hello,
Using OpenDCL Runtime [4.1.0.10] here.
The SelChanged event for ComboBox only fires after the same item is selected (from dropdown) twice.
Thanks.
kelie
Kelie, I've confirmed the problem
.. code attached.
I'll add it to the bug list at SourceForge
added: https://sourceforge.net/tracker/index.php?func=detail&aid=1812018&group_id=187950&atid=923363
(DEFUN C:ComboBox (/ )
;;--------------------------------------
;; ASSUME THE OpenDCL .arx IS LOADED
;;--------------------------------------
(DCL_LOADPROJECT "20071012-ComboBox" T)
(DCL_FORM_SHOW 20071012-ComboBox_Form1)
(PRINC)
)
;;============================
;;============================
(DEFUN c:20071012-ComboBox_Form1_ComboBox1_OnSelChanged (nSelection sSelText /)
(DCL_CONTROL_SETTEXT 20071012-ComboBox_Form1_TextBox3 (itoa nSelection))
(DCL_CONTROL_SETTEXT 20071012-ComboBox_Form1_TextBox2 sSelText)
)
;;============================
(DEFUN c:20071012-ComboBox_Form1_OnInitialize (/)
(DCL_COMBOBOX_SETCURSEL 20071012-ComboBox_Form1_ComboBox1 2)
)
;;============================
(princ)
[attachment deleted by admin]
Quote from: Kerry Brown on October 11, 2007, 09:54:52 PM
Kelie, I've confirmed the problem
.. code attached.
Kerry, thanks for taking the time.
Did Ver 4.1.1.1 fix the issue Kelie ?
added : Looks like it :-)
Piccy added.
[attachment deleted by admin]
Quote from: Kerry Brown on October 16, 2007, 03:22:08 AM
Did Ver 4.1.1.1 fix the issue Kelie ?
added : Looks like it :-)
Piccy added.
thanks Kerry. yeah, it has been fixed.
i could not find a way to get a list of items that are in a ComboBox. i was expecting to find a method named "GetItems" or something like that. also it seems ComboBox does not have property named "Length" which indicates how many items are in it. Otherwise, as a walkaround, i could use GetItemData method to loop through the indexes to get all the items. did i miss something? thanks.
Quote from: Kerry Brown on October 11, 2007, 09:54:52 PM
Kelie, I've confirmed the problem
.. code attached.
I'll add it to the bug list at SourceForge
added: https://sourceforge.net/tracker/index.php?func=detail&aid=1812018&group_id=187950&atid=923363
(DEFUN C:ComboBox (/ )
;;--------------------------------------
;; ASSUME THE OpenDCL .arx IS LOADED
;;--------------------------------------
(DCL_LOADPROJECT "20071012-ComboBox" T)
(DCL_FORM_SHOW 20071012-ComboBox_Form1)
(PRINC)
)
;;============================
;;============================
(DEFUN c:20071012-ComboBox_Form1_ComboBox1_OnSelChanged (nSelection sSelText /)
(DCL_CONTROL_SETTEXT 20071012-ComboBox_Form1_TextBox3 (itoa nSelection))
(DCL_CONTROL_SETTEXT 20071012-ComboBox_Form1_TextBox2 sSelText)
)
;;============================
(DEFUN c:20071012-ComboBox_Form1_OnInitialize (/)
(DCL_COMBOBOX_SETCURSEL 20071012-ComboBox_Form1_ComboBox1 2)
)
;;============================
(princ)
Kerry, after typing something in the TextBox for the ComboBox, press ENTER, the Form is closed. is this the expected behavior? as a fix, i set the ComboBox's "ReturnAsTab" property to True. or am i not supposed to press ENTER after finish editing? i guess i could move my mouse away and handle the KillFocus event.
thank you.
Quote from: Kelie on October 16, 2007, 10:31:42 AM
........... after typing something in the TextBox for the ComboBox, press ENTER, the Form is closed. is this the expected behavior? as a fix, i set the ComboBox's "ReturnAsTab" property to True. or am i not supposed to press ENTER after finish editing? i guess i could move my mouse away and handle the KillFocus event.
....
Setting the ComboBox's "ReturnAsTab" property to True if the way I handle it.
I forget to do that with regularity. ;)