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.

Enabling toolbar and menu items

Thread ID:

Created:

Updated:

Platform:

Replies:

24802 Feb 10,2005 06:43 PM Feb 11,2005 05:00 PM Windows Forms 3
loading
Tags: Tools
Igor Volnov
Asked On February 10, 2005 06:43 PM

What is the event that whould let me enable/disable menu and toolbar items based on the application state? When I am using standard Popup handling for menus, the related tooolbar items are also disabled and I can not click them even when they are supposed to be available. What is the event I need to handle, that is called from applicaiton_onidle? Thanks!

Sue Harris
Replied On February 11, 2005 12:04 AM

The individual menu/bar items have an UpdateUI event on them which I believe is called in application idle and can be used to update the enabled state. Sue

Igor Volnov
Replied On February 11, 2005 01:58 PM

Nope, tried that already

Administrator [Syncfusion]
Replied On February 11, 2005 05:00 PM

Hi Igor, When using the UpdateUI event did you make sure to set either BarManager.UpdateUIMFCStyle or BarItem.UpdateUIOnAppIdle to true? The UpdateUI event won''t be called without one of those being true. Regards, Gregory Austin Syncfusion, Inc.

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.

;