Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - How to add menu level 4 ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to add menu level 4 ?

 Post Reply Post Reply
Author
Message
hoanganh View Drop Down
Newbie
Newbie


Joined: 15 October 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote hoanganh Quote  Post ReplyReply Direct Link To This Post Topic: How to add menu level 4 ?
    Posted: 15 October 2004 at 12:36pm

How to add menu level 4 ?

    Set Control5 = CommandBars.ActiveMenuBar.Controls.Add(xtpControlPopup, 5, mnu_5)
    With Control5.CommandBar.Controls
        Set Control5 = .Add(xtpControlPopup, 51, mnu_51)
        Control5.CommandBar.Controls.Add xtpControlButton, 511, mnu_511
        Control5.CommandBar.Controls.Add xtpControlButton, 512, mnu_512
        Control5.CommandBar.Controls.Add xtpControlButton, 513, mnu_513
        Control5.CommandBar.Controls.Add xtpControlButton, 514, mnu_514
        Set Control5 = .Add(xtpControlPopup, 52, mnu_52)
        Control5.BeginGroup = True
        Set Control = Control5.CommandBar.Controls.Add(xtpControlPopup, 521, mnu_521)
        Control.BeginGroup = True

       ??? mnu_5211



Edited by hoanganh
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: 15 October 2004 at 12:52pm
Mabye you are looking for something like this (5 level menu)?

Set control5 = CommandBars.ActiveMenuBar.Controls.Add(xtpControlPopup, 5, mnu_5)
    With control5.CommandBar.Controls
        .Add xtpControlButton, 5111, mnu_5111
        .Add xtpControlButton, 5122, mnu_5122
        Set control5 = .Add(xtpControlPopup, 51, mnu_51)
        With control5.CommandBar.Controls
            .Add xtpControlButton, 5211, mnu_5211
            .Add xtpControlButton, 5222, mnu_5222
            Set control5 = .Add(xtpControlPopup, 512, mnu_512)
            With control5.CommandBar.Controls
                .Add xtpControlButton, 5311, mnu_5311
                .Add xtpControlButton, 5322, mnu_5322
                Set control5 = .Add(xtpControlPopup, 513, mnu_513)
                With control5.CommandBar.Controls
                    .Add xtpControlButton, 5411, mnu_5411
                    .Add xtpControlButton, 5422, mnu_5422
                    Set control5 = .Add(xtpControlPopup, 514, mnu_514)
                    With control5.CommandBar.Controls
                        .Add xtpControlButton, 5511, mnu_5511
                        .Add xtpControlButton, 5512, mnu_5512
                        .Add xtpControlButton, 5513, mnu_5513
                    End With
                End With
            End With
        End With
End With
   
    Set Control = control5.CommandBar.Controls.Add(xtpControlPopup, 521, mnu_521)
    Control.BeginGroup = True



Edited by SuperMario
Back to Top
hoanganh View Drop Down
Newbie
Newbie


Joined: 15 October 2004
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote hoanganh Quote  Post ReplyReply Direct Link To This Post Posted: 15 October 2004 at 1:05pm

oh ! yes !

Thanks you very much !

your support is Excellent !

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