Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Show TOOLBAR only  - not possible
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Show TOOLBAR only - not possible

 Post Reply Post Reply
Author
Message
vbuser View Drop Down
Newbie
Newbie


Joined: 22 January 2004
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote vbuser Quote  Post ReplyReply Direct Link To This Post Topic: Show TOOLBAR only - not possible
    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

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: 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
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.203 seconds.