Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Managing the deleted and custom buttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Managing the deleted and custom buttons

 Post Reply Post Reply
Author
Message
FrankC View Drop Down
Groupie
Groupie


Joined: 04 September 2008
Location: United States
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote FrankC Quote  Post ReplyReply Direct Link To This Post Topic: Managing the deleted and custom buttons
    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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
FrankC View Drop Down
Groupie
Groupie


Joined: 04 September 2008
Location: United States
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote FrankC Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 November 2008 at 4:32am
Hi,
 
CXTPControl::SetHideFlags(xtpHideCustomize);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
FrankC View Drop Down
Groupie
Groupie


Joined: 04 September 2008
Location: United States
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote FrankC Quote  Post ReplyReply Direct Link To This Post Posted: 05 November 2008 at 11:31am
Got it.  Thanks Oleg.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.