Print Page | Close Window

Hide the menubar only toolbar is needed

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


Topic: Hide the menubar only toolbar is needed
Posted By: WaleedSeada
Subject: Hide the menubar only toolbar is needed
Date Posted: 17 July 2008 at 3:36am
Dear all,
 
I would like to show only the toolbar not the menubar ...
How can I acomplish that ..
 
Best regards


-------------
:Powerbuilder 10.5
:Codejock suite 11.2.2
=========================
Waleed Seada



Replies:
Posted By: Peter59
Date Posted: 17 July 2008 at 4:15am
Try

CommandBars.ActiveMenuBar.Visible = False

to hide your menubar.


Excerpt from the CJ Online Help:

ActiveMenuBar property

Description

Gets the Active Menu Bar object.  The active menu bar is the the first command bar and is used to display your menu.





-------------
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows 7 64 Bit
Language: Visual Basic 6.0 SP6


Posted By: joeliner
Date Posted: 17 July 2008 at 4:21am
Hi,

How do you design your menus, by designer or by code?

if you are using designer:
change to the xml view.
on the class change CXTPMenuBar to CXTPToolBar
delete Type="0"

if you are using code:
The best way to achieve this in IDE is by using the commandbarFrame rather than the commandbar.

hope this helps!




-------------
Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3
Language: Visual Basic 6 SP6


Posted By: WaleedSeada
Date Posted: 17 July 2008 at 9:15am

Thanks Peter95 it works fine ....

I guess I need to read about commandbarframe as well ..

Best regards



-------------
:Powerbuilder 10.5
:Codejock suite 11.2.2
=========================
Waleed Seada



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