SOLVED: Access Context Menu Items attribute |
Post Reply |
Author | |
WaleedSeada
Groupie Joined: 29 March 2007 Location: Egypt Status: Offline Points: 88 |
Post Options
Thanks(0)
Posted: 26 August 2008 at 7:48am |
Dear all,
I created a number of Context Menus as follows:
CommandBars.ContextMenus.Add(1, "TreeOptions")
CommandBars.ContextMenus.Add(2, "WindowOptions")
etc ...
I need to access the items properities in those context menu.
(in this case I want to set the enabled properity to false)
I try this :
// Loop through the context menus ....
For j = 1 To CommandBars.ContextMenus.Count
ContextMenuObject = CommandBars.ContextMenus(J) ContextMenuObject.Controls(ItemID).Enabled = Status Next I got an error message saying invalid arrgument type accessing "Controls", I try to use Item with no avail ...
any suggestion ...
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)
|
Hello all,
I found it ....I should find the control by ID first then access it...
Best regards
|
|
:Powerbuilder 10.5
:Codejock suite 11.2.2 ========================= Waleed Seada |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
Good for you Would be nice if you let all members know that your issue is solved. Please look at post: https://forum.codejock.com/forum_posts.asp?TID=11225
Thanks in advance
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
WaleedSeada
Groupie Joined: 29 March 2007 Location: Egypt Status: Offline Points: 88 |
Post Options
Thanks(0)
|
Good Point ...
|
|
: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 |