Print Page | Close Window

Separator, BeginGroup unavailable

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=10726
Printed Date: 25 April 2024 at 4:59am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Separator, BeginGroup unavailable
Posted By: winanjaya
Subject: Separator, BeginGroup unavailable
Date Posted: 21 May 2008 at 10:32am

Dear All,

I am unable to use BeginGroup Property to set separator... could any body please advise how to set separator for the codes below?

Thanks a lot in advance
Regards
Winanjaya
 
 
Dim ControlView As CommandBarPopup
Dim Control As CommandBarControl
Set ControlView = CommandBars.ActiveMenuBar.Controls.Add(xtpControlPopup, 0, "&View")
With ControlView.CommandBar.Controls
     Set Control = .Add(xtpControlButtonPopup, 0, "Hello World")
     With Control
         .CommandBar.Controls.Add xtpControlButton, 1, "Menu 1"
           ---> I want to put separator here! but BeginGroup property unavailable
 
        .CommandBar.Controls.Add xtpControlButton, 2, "Menu 2"
         .CommandBar.Controls.Add xtpControlButton, 3, "Menu 3"
     End With
End With



Replies:
Posted By: Aaron
Date Posted: 21 May 2008 at 12:08pm
Hi,
 
Just add (Bold and Red text) to the line
 
        .CommandBar.Controls.Add (xtpControlButton, 2, "Menu 2").BeginGroup = True
 
        


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: winanjaya
Date Posted: 21 May 2008 at 10:37pm
Thanks a lot!



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