ActiveMenuBar.FindControl (ActiveX 8.6) |
Post Reply |
Author | |
robs
Groupie Joined: 09 November 2003 Status: Offline Points: 84 |
Post Options
Thanks(0)
Posted: 01 January 2004 at 12:11pm |
Does anybody know how to find a menu through code when it's not a top-level menu item? CommandBars.ActiveMenuBar.FindControl won't work because menus (controls of type xtpControlPopUp) all have an ID of 0 for some reason. Dim Control As XtremeCommandBars.CommandBarControl Only lists the top-level menu items I'm stumped. Every time I get by one obsticle I hit another. I was going to just use the .DescriptionText property of the menus to store ID's since the .ID property doesn't work, but if there is no way to cycle through the controls collection, it must be impossible. What would be so dificult about making the .ID property for xtpControlPopup controls work? Any ideas are appreciated. Yes, I've looked at the Dynamic Popups sample. CommandBars_InitCommandsPopup is just silly. That only allows access to menus as they are clicked. Thanks! |
|
robs
Groupie Joined: 09 November 2003 Status: Offline Points: 84 |
Post Options
Thanks(0)
|
I guess the answer to my own questions is that controls that are not top-level popups should be xtpControlButtonPopUp and not xtpControlPopUp. The .id property does work on xtpControlButtonPopup and .FindControl will find them.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
You are right, you must set id manually in xtpControlPopup controls. Control.Id = 20 |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
future
Newbie Joined: 22 August 2007 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
hi there ,Would u mind to provide some code that we can find the sub-menus, i am stock here as well, Thank u very much
|
|
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 |