How to Enable/Disable toolbar buttons on the fly

D

Dntc

Hi All
Is there anyway to enable/disable the toolbar buttons on the fly as like in
MFC which helps centralizing this process?Let's i have a toolbar button
ToolbarButtonSave
which can be enabled/disabled inside the Edit control TextChanged event
handler?I'm looking for a way which Toolbar can ask itself to enable/disable
its buttons as ON_UPDATE_COMMAND_UI in MFC?
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi,

To the best of my knowledge, no such way exists. You should manually update
the status of the buttons whenever appropriate.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top