Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Disable/Enable Menu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Disable/Enable Menu

 Post Reply Post Reply
Author
Message
cmm2006 View Drop Down
Senior Member
Senior Member


Joined: 26 September 2006
Status: Offline
Points: 118
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmm2006 Quote  Post ReplyReply Direct Link To This Post Topic: Disable/Enable Menu
    Posted: 06 June 2007 at 5:48pm
Hi,
I have a menu bar with: File, Edit, View and Help button, and I need to know how can I be able to disabel the Edit menu everytime the user make a selection"A" and then enabel it when he select another selection other than "A". I don't have no problem in doing with the buttons in the toolbar, but it seems that it's not working with the menu bar. So, please help!!!
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: 07 June 2007 at 1:21am
Hi,
 
After you add Edit popup, assign some ID for it:
ControlEdit.ID = ID_MENU_EDIT.
 
now you can enable/disable it using same Update handler.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cmm2006 View Drop Down
Senior Member
Senior Member


Joined: 26 September 2006
Status: Offline
Points: 118
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmm2006 Quote  Post ReplyReply Direct Link To This Post Posted: 07 June 2007 at 7:19pm
hi,
anotherquestion about disabling and enabeling a button. I have a button with id: ID_FILE_OPEN, and I am using this id for the a button "Open" in the toolbar and with <File> menu. I am able to make the button invisible in the toolbar, but I can not get invisible in the <File> menu.
Please help???
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: 08 June 2007 at 1:19am
Hello,
 
Use Actions its best way to Enable/Disable Hide/Show buttons. See Actions sample from CommandBars folder.
 
Or Show/Hide control in Update handler: Control.Visible = False
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.031 seconds.