Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - SOLVED: Hhierarchical Context Menu, How to ??
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOLVED: Hhierarchical Context Menu, How to ??

 Post Reply Post Reply
Author
Message
WaleedSeada View Drop Down
Groupie
Groupie
Avatar

Joined: 29 March 2007
Location: Egypt
Status: Offline
Points: 88
Post Options Post Options   Thanks (0) Thanks(0)   Quote WaleedSeada Quote  Post ReplyReply Direct Link To This Post Topic: SOLVED: Hhierarchical Context Menu, How to ??
    Posted: 28 August 2008 at 8:56am
Dear All,
 
I try to create a hierarchical context menu, with no luck, I defien one itme as popup and try to add to it's control items, but it always goes to the main context menu...
 
Is there any way to achieve that ..
 
Best regards,
 
:Powerbuilder 10.5
:Codejock suite 11.2.2
=========================
Waleed Seada
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: 28 August 2008 at 1:28pm
Hi,
 
try
 
Control.CommandBar.Controls.Add
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
WaleedSeada View Drop Down
Groupie
Groupie
Avatar

Joined: 29 March 2007
Location: Egypt
Status: Offline
Points: 88
Post Options Post Options   Thanks (0) Thanks(0)   Quote WaleedSeada Quote  Post ReplyReply Direct Link To This Post Posted: 31 August 2008 at 2:57am
Hello Oleg,
 
I am afraid this is not possible, I took one of the examples SDISample, there is a script to create context menu, I try to add your line, but the intelisence didn't regonize ..
 
Take a look:
    Dim ContextBar As CommandBar
    Set ContextBar = CommandBars.ContextMenus.Add(400, "Context Menu")
    With ContextBar.Controls
        .Add xtpControlButton, ID_FILE_NEW, "&New"
        .Add xtpControlButton, ID_FILE_OPEN, "&Open"
        .Add xtpControlButton, ID_FILE_SAVE, "&Save"
       
        Set Control = .Add(xtpControlButton, ID_FILE_PRINT, "&Print")
        Control.BeginGroup = True
       
        Set Control = .Add(xtpControlButton, ID_EDIT_CUT, "Cu&t")
        Control.BeginGroup = True
        Control.Controls.Add xtpControlButton, 1212, "Hello"
       
        .Add xtpControlButton, ID_EDIT_COPY, "&Copy"
        .Add xtpControlButton, ID_EDIT_PASTE, "&Paste"
    End With
Logical should work ...
 
Can you provide a script to loop through all the active menu items if possible, this would be of great help to me ...
 
Best regards
:Powerbuilder 10.5
:Codejock suite 11.2.2
=========================
Waleed Seada
Back to Top
WaleedSeada View Drop Down
Groupie
Groupie
Avatar

Joined: 29 March 2007
Location: Egypt
Status: Offline
Points: 88
Post Options Post Options   Thanks (0) Thanks(0)   Quote WaleedSeada Quote  Post ReplyReply Direct Link To This Post Posted: 04 September 2008 at 2:07am
Hi All,
 
CommandBar     Imenu
Imenu = CommandBars.ContextMenus(2).Controls.Find(0, 240)
 
Imenu.CommandBar.Controls.Add( .....
 
Thanks and best regards
 
:Powerbuilder 10.5
:Codejock suite 11.2.2
=========================
Waleed Seada
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.219 seconds.