Print Page | Close Window

Omit "Add or Remove Buttons" from toolbar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=534
Printed Date: 23 December 2024 at 1:00pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Omit "Add or Remove Buttons" from toolbar
Posted By: dmetzler
Subject: Omit "Add or Remove Buttons" from toolbar
Date Posted: 16 March 2004 at 1:49pm

How can I disable the ability to "Add or Remove Buttons" option from the CXTPToolBar controls?

Thanks,

Don Metzler

 




Replies:
Posted By: SuperMario
Date Posted: 16 March 2004 at 2:53pm
Set  bShowExpandButtonAlways to False.  This is a member of  XTP_COMMANDBARS_OPTIONS.


Posted By: dmetzler
Date Posted: 16 March 2004 at 3:44pm

I can get the XTP_COMMANDBARS_OPTIONS using CXTPCommandBars::GetCommandBarsOptions().  How do I set the options?

Thanks,

Don



Posted By: SuperMario
Date Posted: 16 March 2004 at 5:26pm
Try this:

CXTPCommandBars* pCommandBars = GetCommandBars();
 pCommandBars->GetCommandBarsOptions()-> bShowExpandButtonAlways = False;





Posted By: dmetzler
Date Posted: 16 March 2004 at 5:35pm

OK - great - thanks.  I was looking for a Set() method of some sort.

Don

 




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