Adding to toolbars and separator |
Post Reply |
Author | |
Graham
Groupie Joined: 12 May 2003 Location: United Kingdom Status: Offline Points: 23 |
Post Options
Thanks(0)
Posted: 29 May 2003 at 6:29am |
Not sure if this is a bug, but when I add a combo box to a toolbar using the following code ( CXTPControlComboBox*)pCommandBar->GetControls()->Add(xtpControlComboBox, ID_PRESETBAR_MODEPATCH,_T(""), 3)and there is a separator before the item on the toolbar which I'm inserting before (index 3 in this example), then the inserted combo box is inserted before the separator as well, so I can't insert after the separator and before the item with index 3. I suppose I could get around it by having a dummy button on the toolbar after the separator and then remove that button once I've inserted the combox box after it. Graham |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Separator in Xtreme Command Bars is linked with Control. You must call SetBeginGroup(TRUE) member of ComboBox object.
CXTPControl* pControl = pCommandBar->GetControls()->Add(xtpControlComboBox, ID_PRESETBAR_MODEPATCH,_T(""), 3) pControl ->SetBeginGroup(TRUE) |
|
Graham
Groupie Joined: 12 May 2003 Location: United Kingdom Status: Offline Points: 23 |
Post Options
Thanks(0)
|
Thanks for that. Graham |
|
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 |