Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Offer Har
|
Oct 20, 2008 - 5:21 AM
|
Hi, I have a combo-box that contains a list of sorted string, just like a normal combo, but after these strings I need to place a separation line, and the item ’Other...’ that needs to open a dialog box for chose other values. Is there any way to do this in Prof-UIS? Thanks, Ron.
|
|
Technical Support
|
Oct 25, 2008 - 8:42 AM
|
Each item in the combo box cell stores a user-defined value. You can specify it when adding new items with InsertString or AddString</code> methods or change it at runtime with the SetItemData method.
Then you should override the CExtGridCellComboBox::OnPopupListBoxSelEndOK virtual method and check if the user defined-value associated with selected item is equal to the value you assigned to the ‘Other..’ item. If yes, then show your dialog box.
|
|
Offer Har
|
Oct 25, 2008 - 8:47 AM
|
This is clear - my question is if & how to add a line to separate this item from the rest of the items. And, if you’ll answer teh question on how to sort a combo cell, how to make sure this item will be last.
|
|