SOLVED: Hhierarchical Context Menu, How to ?? |
Post Reply |
Author | |
WaleedSeada
Groupie Joined: 29 March 2007 Location: Egypt Status: Offline Points: 88 |
Post Options
Thanks(0)
Posted: 28 August 2008 at 8:56am |
Dear All,
I try to create a
Is there any way to achieve that ..
Best regards,
|
|
:Powerbuilder 10.5
:Codejock suite 11.2.2 ========================= Waleed Seada |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
try
Control.CommandBar.Controls.Add
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
WaleedSeada
Groupie Joined: 29 March 2007 Location: Egypt Status: Offline Points: 88 |
Post Options
Thanks(0)
|
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 |
|
WaleedSeada
Groupie Joined: 29 March 2007 Location: Egypt Status: Offline Points: 88 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |