Create Event Handler to Update Button Status
Availability of a command may vary with every mouse click or keystroke. The custom event OnUpdateCmdUI of XMLSpyControl gives us an opportunity to update the enabled/disabled state of buttons associated with XMLSpy commands. The method XMLSpyControl.QueryStatus is used to query whether a command is enabled or not.
<!-- custom event 'OnUpdateCmdUI" of XMLSpyControl object --> |