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

Multiple CommandbarControls

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


Joined: 15 June 2005
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote jamesblast Quote  Post ReplyReply Direct Link To This Post Topic: Multiple CommandbarControls
    Posted: 05 July 2005 at 4:40am

Hello,

I want to allow the softwareuser, to configure their menus as they want.

there are two problems with it.

*the user could add 2 controls of the same ID to a toolbar. Then I cant set this control to enabled=true/false in code, cos the second control is not reachable.

i use this code to do so:

------------

For each bar in CommandBars

set menuitem=bar.findcontrol(,id,,true)

menuitem.enabled=true

next

----------

what could i do about that?

*after adding a control, and end the costumation, all the toolbarControls are enabled. why is that? how can I avoid this?

I got another question. how can I go through all the controls (ActiveMenu, Commandbars (Toolbars), DesignerControls) to enable/disable/show/hide them by ID performantly and short in code?

thank you!

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.156 seconds.