Print Page | Close Window

Menu items grouping

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=2672
Printed Date: 05 October 2024 at 10:02pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Menu items grouping
Posted By: ddebono
Subject: Menu items grouping
Date Posted: 02 August 2005 at 10:50am

Hi,

Just started to use the Command Bar object.

Have one question:

In a sub menu I want to have only one of the three items checked at one time. Like a radion button.

Tried to use Begingroup=True, but with no luck.

Whecn setting the checked property on any of these three it will not clear the others.

Please help!

Using VB6




Replies:
Posted By: SuperMario
Date Posted: 02 August 2005 at 1:27pm
Begingroup places a separator before the control, it has nothing to do with the control being checked or "grouping" the controls.


Posted By: ddebono
Date Posted: 02 August 2005 at 2:39pm

Oki.

But any suggestions how to do this ?



Posted By: Oleg
Date Posted: 03 August 2005 at 5:02am

See our SDI sample and Theme Toolbar. Only one theme button is selected:

Private Sub CommandBars_Update(ByVal Control As XtremeCommandBars.ICommandBarControl)
   
    On Error Resume Next
    Select Case Control.Id
        Case ID_THEME_OFFICE:       Control.Checked = CommandBars.VisualTheme = xtpThemeOfficeXP
        Case ID_THEME_DEFAULT:      Control.Checked = CommandBars.VisualTheme = xtpThemeOffice2000
        Case ID_THEME_OFFICE2003:   Control.Checked = CommandBars.VisualTheme = xtpThemeOffice2003
        Case ID_THEME_NATIVEXP:     Control.Checked = CommandBars.VisualTheme = xtpThemeNativeWinXP
...



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


Posted By: ddebono
Date Posted: 04 August 2005 at 3:12pm

Yes but it's difficult to use. A form of radio grouping would be nice.

Whats the purpose of this Update event ?




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