Print Page | Close Window

Adding to toolbars and separator

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=35
Printed Date: 16 April 2024 at 3:15am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Adding to toolbars and separator
Posted By: Graham
Subject: Adding to toolbars and separator
Date 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




Replies:
Posted By: Oleg
Date Posted: 29 May 2003 at 8:40am

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)



Posted By: Graham
Date Posted: 29 May 2003 at 10:57am

Thanks for that.

Graham




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net