Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Menu items grouping
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Menu items grouping

 Post Reply Post Reply
Author
Message
ddebono View Drop Down
Groupie
Groupie


Joined: 02 August 2005
Location: Norway
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddebono Quote  Post ReplyReply Direct Link To This Post Topic: Menu items grouping
    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



Edited by ddebono
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
ddebono View Drop Down
Groupie
Groupie


Joined: 02 August 2005
Location: Norway
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddebono Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2005 at 2:39pm

Oki.

But any suggestions how to do this ?

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: 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
Back to Top
ddebono View Drop Down
Groupie
Groupie


Joined: 02 August 2005
Location: Norway
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddebono Quote  Post ReplyReply Direct Link To This Post 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 ?

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.141 seconds.