Print Page | Close Window

Disable/Enable Menu

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=7319
Printed Date: 18 June 2025 at 11:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Disable/Enable Menu
Posted By: cmm2006
Subject: Disable/Enable Menu
Date 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!!!



Replies:
Posted By: Oleg
Date 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


Posted By: cmm2006
Date 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???


Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net