![]() |
Controlling popup automatic closing |
Post Reply
|
| Author | |
Joe19
Newbie
Joined: 11 May 2007 Status: Offline Points: 14 |
Post Options
Thanks(0)
Quote Reply
Topic: Controlling popup automatic closingPosted: 22 October 2007 at 1:55pm |
|
I am trying to implement a CXTPPopupToolBar as part of a CXTPRibbonGroup in a ribbon bar. What I want is that when the popup displays for it not to close when the user uses any of the controls. I have this working except for a listbox font selector. The SetCloseSubMenuOnClick method works for all the controls in my popup except for the listbox. If I use that method with the listbox, when the listbox expands it will not close. So I want the listbox to close when the user makes its selection, but not to have it close the underlying popup.
Here is the code I am playing with. I have been experimenting with reacting to messages when the listbox is changed, but not getting good results there. I have not found a way to manually close the listbox once it is open.
![]() CXTPControlPopup* pButtonBasics = (CXTPControlPopup*)pGroupText->Add(xtpControlButtonPopup, ID_TEXT_BASICS);
CXTPPopupToolBar* pBasicsBar = CXTPPopupToolBar::CreatePopupToolBar(GetCommandBars()); pBasicsBar->EnableCustomization(FALSE); pBasicsBar->SetBorders(CRect(2, 2, 2, 2)); pBasicsBar->DisableShadow(); CXTPControlComboBox* pComboFont = new CXTPControlComboBox(); CXTPPopupBar* pPopupBarGallery = CXTPControlComboBoxGalleryPopupBar::CreateComboBoxGalleryPopupBar(pCommandBars); CXTPControlGallery* pControlGallery = new CXTPControlGallery(); pControlGallery->SetItems(pItemsFontFace); |
|
![]() |
|
Joe19
Newbie
Joined: 11 May 2007 Status: Offline Points: 14 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 October 2007 at 3:36pm |
|
An update. The above code shows a complicated font combo box. The problem is the same if its a simple combo box with regular text.
|
|
![]() |
|
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 |