I use a TNextInspector with some combobox a edit rows, I need call a procedure when the user close the combobox menu or type inside the edit. In this moment my code works but only if the user exit from selected row.
Foe example if my use choose a combobox item (so close the combobox menu) but don't exit from combobox (foe example don't press ENTER), my procedure is not call.
I don't understand which event I must use.
NextInspector events
Started by array81, Oct 29 2011 08:35 PM
5 replies to this topic
#1
Posted 29 October 2011 - 08:35 PM
#2
Posted 30 October 2011 - 09:23 PM
You can set for the TNxComboBoxItem the Option itoAutoApply then it works like you want
#3
Posted 31 October 2011 - 01:58 PM
Thanks, it works.
#4
Posted 31 October 2011 - 06:39 PM
Hi, I think I have found a small bug.
I have put a ComboBox on my TNextInspector. I have set: itoAutoApply in Option property and cbDropDownList in Style property.
I use only the OnAfterEdit event to call a procedure like this: myProcedure(myComboBox.ItemIndex, myComboBox.AsString) where myComboBox is the ComboBox of my TNextInspector.
The problem is this, after I have choose a ComboBox item the second parameter of my procedure is correct (the text is the text of last item select) but the first parameter is NOT correct. myComboBox.ItemIndex is not update, inside myComboBox.ItemIndex there is the old value (before last select).
I think this is a bug, right?
How can I solve it?
Thanks
I have put a ComboBox on my TNextInspector. I have set: itoAutoApply in Option property and cbDropDownList in Style property.
I use only the OnAfterEdit event to call a procedure like this: myProcedure(myComboBox.ItemIndex, myComboBox.AsString) where myComboBox is the ComboBox of my TNextInspector.
The problem is this, after I have choose a ComboBox item the second parameter of my procedure is correct (the text is the text of last item select) but the first parameter is NOT correct. myComboBox.ItemIndex is not update, inside myComboBox.ItemIndex there is the old value (before last select).
I think this is a bug, right?
How can I solve it?
Thanks
#5
Posted 09 November 2011 - 12:59 AM
Some idea? How can I solve this problem?
#6
Posted 09 November 2011 - 01:50 AM
Hello,
You will need to access to the TNxComboBox of Editor property of Item.
Best regards
You will need to access to the TNxComboBox of Editor property of Item.
Best regards
boki@bergsoft.net
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











