Print Page | Close Window

Show TOOLBAR only - not possible

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=398
Printed Date: 27 November 2024 at 1:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Show TOOLBAR only - not possible
Posted By: vbuser
Subject: Show TOOLBAR only - not possible
Date Posted: 29 January 2004 at 11:57pm

Using the ActiveX version of the control, I need to show a TOOLBAR only without a pull down menu... Does not seem possible - The component show the toolbar and it includes an additional menu tool with one item "FILE" as default. Using only this code you get the toolbar and the menu, WHY? 

Set ToolBar = CommandBars1.Add("Standard", xtpBarTop)
    With ToolBar.Controls
        Set Control = .Add(xtpControlButton, ID_TB_Process, "&Process")
        Control.Style = xtpButtonIconAndCaption
        Set Control = .Add(xtpControlButton, ID_TB_Swipe, "&Swipe")
        Control.DescriptionText = "Swipe credit card"
 End With




Replies:
Posted By: Oleg
Date Posted: 30 January 2004 at 12:15am

add this

CommandBars1.ActiveMenuBar.Visible = False

 

ps. "File" item you add yourself, check your source



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



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