Create a Custom Toolbar
The example HTML page also includes a custom toolbar (intended as a replica of the XMLSpy menu). The custom toolbar consists of buttons with images of XMLSpy commands, for example:
<button id="btnWellFormed" title="Check Well-formedness" onclick="BtnDoCommand(34049)"> |
The names of button images correspond to the command ID numbers, see Command Reference. On clicking the button, the corresponding command ID is sent to the main control and executed:
// perform any command specified by cmdID. |