Print Page | Close Window

Hidden buttons in CXTPToolBar?

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=10394
Printed Date: 26 April 2024 at 11:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Hidden buttons in CXTPToolBar?
Posted By: znakeeye
Subject: Hidden buttons in CXTPToolBar?
Date 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!



Replies:
Posted By: Oleg
Date 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


Posted By: znakeeye
Date 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?


Posted By: Oleg
Date Posted: 29 April 2008 at 2:39pm
Hi,
 
3. I not exactly sure what task you have.


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


Posted By: cuisinart
Date 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?



Posted By: mgampi
Date Posted: 11 September 2018 at 6:55am
Have you already solved this problem?

-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



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