Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Hidden buttons in CXTPToolBar?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Hidden buttons in CXTPToolBar?

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Hidden buttons in CXTPToolBar?
    Posted: 29 April 2008 at 6:30am
CXTPToolBar in XTP 11.2.1.
 
1) How do you hide a toolbar? pToolBar->SetVisible(FALSE) has no effect :(
 
2) When a toolbar is hidden in runtime, how do you make it impossible for the user to re-show it? E.g., the Codejock GUI lets the user show hidden items via the right-click menu. Do we have to remove the items from the toolbars? If so, that leads to problems when we, inside our code, really want to show the items!
 
To summarize: Is it possible to hide items 100%?
 
 
3) How do you use LoadCommandBars only for the positioning of the toolbars? As it is now, hidden items tend to become visible after this call! That is, it seems the toolbars are completely read from the registry -- which we do not want!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group
Avatar

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: 29 April 2008 at 8:11am
Hi,
1. SetVisible have to work. You do something wrong in your code.
 
2. After you hide it call
SetContextMenuPresent(FALSE) and  SetCustomizeDialogPresent(FALSE);
 
3. Don't use Customization in this case. remove XTP_ID_CUSTOMIZE command handler from message map. or call for toolbar
m_wndToolBar.SetCustomizable(FALSE);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2008 at 9:12am
1. My mistake!
2. AHAAA! Thanks!
 
3. Too bad. We want to use customization for user-hidden items (that is, 99% hidden ). No further ideas?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group
Avatar

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: 29 April 2008 at 2:39pm
Hi,
 
3. I not exactly sure what task you have.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cuisinart View Drop Down
Groupie
Groupie


Joined: 31 January 2012
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote cuisinart Quote  Post ReplyReply Direct Link To This Post Posted: 04 February 2012 at 3:39pm

Previously, my application used the ShowControlBar method in the main frame:

ShowControlBar(&m_wndToolToolBar          ,false,false);

to hide toolbars.  This hid them and also removed the empty bar tray if it was empty.

From this chat it sounds like the XTToolkit equivalent of CFrameWnd::ShowControlBar() is:


pToolBar->ShowWindow(FALSE);
pToolBar->SetContextMenuPresent(FALSE);
pToolBar->SetCustomizeDialogPresent(FALSE);

but there's a problem!  The empty toolbar docking trays remain visible in the application.  How can this be cleared?

Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1057
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2018 at 6:55am
Have you already solved this problem?
Martin

Product: Xtreme Toolkit v 15.3.1, new Projects v 18.5.0
Platform: Windows 8.1 (64bit)
Language: VC+
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.109 seconds.