CXTPControlComboBox::Copy don't copy selected item |
Post Reply |
Author | |
KirillMueller
Newbie Joined: 01 October 2007 Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 09 December 2012 at 5:18am |
After CXTPControlComboBox::Copy, the copied control still has -1 as selected item. Is this by design?
I've fixed it in my copy of the code by adding SetCurSel(pControlCombo->GetCurSel()); as last statement (!) in CXTPControlComboBox::Copy, just after CXTPControlPopup::Copy(...). Adding it at any earlier point cannot work because the list of items is copied only in the CXTPControlPopup::Copy(...) call. Otherwise, is there a way to make sure that a ComboBox control added to the "Quick Access" controls has the same state as the original control?
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |