Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Finding Multiple Controls in CommandBars
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Finding Multiple Controls in CommandBars

 Post Reply Post Reply
Author
Message
stefanadelbert View Drop Down
Groupie
Groupie


Joined: 29 October 2008
Location: Australia
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote stefanadelbert Quote  Post ReplyReply Direct Link To This Post Topic: Finding Multiple Controls in CommandBars
    Posted: 03 August 2009 at 3:01am
I have more than one control with a particular ID in the CommandBars object, e.g. one in the menu and one on the toolbar. If I would like to find one of those controls I can use FindControl with recursive set to True and this works fine.

But if I want to find all controls with a given ID, to disable them for example, what is the recommended approach?

Thanks
Stefan
Back to Top
stefanadelbert View Drop Down
Groupie
Groupie


Joined: 29 October 2008
Location: Australia
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote stefanadelbert Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2009 at 3:25am
It seems that the answer it to use CommandBarActions. I am looking this now and will post a solution if I find a decent one.

Stefan
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: 06 August 2009 at 12:43am
Hi,
Yes you need Actions or Update handler to disable/enable controls - see any our sample
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.203 seconds.