Folks, I’m creating a toolbar (or a menu item also can) to set a specific STRING value to a variable.
But even I added the set_validation_proc to control the switch MF_GRAYED and MF_ENABLED, I can’t keep only 1 MF_GRAYED is allowed at one time.
Any suggestions? should I carry on with UI::Toolbar or rather just go with action_call_back instead?
Beware that validation procs trigger very frequently on Windows. And string comparisons are slow.
Consider using symbols or integer constants instead of strings for state.