Print Page | Close Window

Managing the deleted and custom buttons

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=12602
Printed Date: 23 June 2025 at 3:21pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Managing the deleted and custom buttons
Posted By: FrankC
Subject: Managing the deleted and custom buttons
Date Posted: 03 November 2008 at 11:12am

We created a toolbar in the resource and delete some of the button at the compiling time for different products.  One of the button on the toolbar is a combobox.

 

In the Add or Remove Buttons menu, it seems that the SaveCommandBars will not work correctly or fail because

 

  1. The position change of the combobox if the combobox is not deleted.
  2. Messed up with permanently deleted buttons and with the hidden buttons by user as the Add or Remove Buttons displays both the deleted buttons and designed to be kept buttons.

 

Are these any solutions for this case?

 

Thanks,

Frank




Replies:
Posted By: Oleg
Date Posted: 04 November 2008 at 1:47am
Hi,
After you delete button from toolbar and before you load state call
pToolBar->GetControls()->CreateOriginalControls() to save state of original controls.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: FrankC
Date Posted: 04 November 2008 at 3:28pm

Thanks Oleg.

 

Here is one more question about this issue:

 

In the processing of customize the toolbar, we have to go two steps.

 

  1. Use the CXTPControl::SetVisible(FALSE) to set both the buttons on the toolbar and the context menu invisible.
  2. What method has to be used to set the button on the toolbar invisible while on the context menu it should be visible but be unchecked?

 

Thanks,

Frank



Posted By: Oleg
Date Posted: 05 November 2008 at 4:32am
Hi,
 
CXTPControl::SetHideFlags(xtpHideCustomize);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: FrankC
Date Posted: 05 November 2008 at 11:31am
Got it.  Thanks Oleg.



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