Print Page | Close Window

Tutorial - CommandBar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=6054
Printed Date: 03 May 2024 at 10:08pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tutorial - CommandBar
Posted By: Shabu007
Subject: Tutorial - CommandBar
Date Posted: 09 January 2007 at 2:55pm
Problem with commandbarcontrol
 
Code:
Dim Control As CommandBarControl
    Set ControlView = CommandBars.ActiveMenuBar.Controls.Add  (xtpControlPopup, 0, "&View")
    With ControlView.CommandBar.Controls
        Set Control = .Add(xtpControlPopup, 0, "&Toolbars")
        Control.CommandBar.Controls.Add xtpControlButton, ID_VIEW_TOOLBAR_STANDARD, "&Standard"
       
        'Control doesnot have COMMANDBAR Property ?????????????

        .Add xtpControlButton, ID_VIEW_STATUSBAR, "Status Bar"
    End With


-------------
Shabuddin, Uganda



Replies:
Posted By: SuperMario
Date Posted: 09 January 2007 at 4:35pm
It is OK. But if you need to see the property then you can do:

Dim ControlPopup as CommandBarPopup
Set ControlPopup = .Add(xtpControlPopup, 0, "&Toolbars")  



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