Print Page | Close Window

BeginGroup At Expanding Menu

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=9118
Printed Date: 01 July 2024 at 12:43am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BeginGroup At Expanding Menu
Posted By: corpcon
Subject: BeginGroup At Expanding Menu
Date Posted: 17 December 2007 at 1:43am
How do I begin a group starting at an expanding menu? In the attached image, I want a BeginGroup line to appear directly above "Options".
 
 
The code I have in this segment is ...
 
        AddButton .Controls, xtpControlButton, ID_TOOLS_USESAMPLEDATA, True
        ' << Begin group here >>
        Set ControlOptions = .Controls.Add(xtpControlPopup, 0, "&Options", -1, False)
        AddButton ControlOptions.CommandBar.Controls, xtpControlButton, ID_OPTIONS_PERSONAL
        AddButton ControlOptions.CommandBar.Controls, xtpControlButton, ID_OPTIONS_GLOBAL



Replies:
Posted By: ijwelch
Date Posted: 17 December 2007 at 2:59am
AddButton .Controls, xtpControlButton, ID_TOOLS_USESAMPLEDATA, True
        ' << Begin group here >>
        Set ControlOptions = .Controls.Add(xtpControlPopup, 0, "&Options", -1, False)
        ControlOptions.BeginGroup=True
        AddButton ControlOptions.CommandBar.Controls, xtpControlButton, ID_OPTIONS_PERSONAL
        AddButton ControlOptions.CommandBar.Controls, xtpControlButton, ID_OPTIONS_GLOBAL



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