We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Dynamic Change of a Menuitem

Thread ID:

Created:

Updated:

Platform:

Replies:

16190 Jul 8,2004 04:34 AM Jul 8,2004 12:13 PM Windows Forms 1
loading
Tags: Tools
Mukkesh Kumar
Asked On July 8, 2004 04:34 AM

Hi, I am using MainFrameBarManager. Is it possible to change a menuitem''s text/icon/tooltip in runtime. There is a property EnableCustomizing. What is for it. Anybody can help me with the code. Like, i''ll give a unique menuid and it will search for that and then i want to change the Text/ToolTip/Icon. Will it reflect the change. Thanks in Advance, Mukkesh

Administrator [Syncfusion]
Replied On July 8, 2004 12:13 PM

Hi Mukkesh 1. The EnableCustomizing property allows you to control customization of the menus at run time. It is set to true by default, which means that the users at run time can right click and invoke the customization dialog and make changes. The enclosed sample demonstrates the difference. When you run the sample and enable/disable Customization you can/cannot invoke the customize dialog by right-clicking on the ToolBar. 2. Yes you can change the BarItem''s text/tooltip at run time. Again as demonstrated in the sample, you can click on the Change Parent Bar Item button to change the text and tooltip. Here is a code snippet: this.parentBarItem1.Text = "File_Changed"; this.parentBarItem1.Tooltip = this.parentBarItem1.Text; Regards Arun

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;