In one of my V8i tools, I display a DialogBox that has a PushButtonXRsc item. That item is defined like this:
DItem_PushButtonXRsc PUSHBUTTONID_Note= { NOT_DEFAULT_BUTTON, NOHELP, MHELP, HOOKITEMID_CheckForLevel, NOARG, 67043840 /*CMD_NOTE*/, MCMD, Icon, ICONID_PlaceNote, "", "Place\nNote" } extendedAttributes {{ {EXTATTR_FLYTEXT, "Place Note With Leader"}, {EXTATTR_BALLOON, "Place Note With Leader"}, }};
When the button was pressed, it executed MicroStation's CMD_NOTE (67043840). The number as derived from looking at "customize", "drawing" task. Click on it to see the embedded command number used.
Now when I do the same for CONNECT, I see:
however, when I put that into my PushButtonXRsc item, and launch my DialogBox, pressing the button does NOT LAUNCH the Place Note tool/command.
DItem_PushButtonXRsc PUSHBUTTONID_Note= { NOT_DEFAULT_BUTTON, NOHELP, MHELP, HOOKITEMID_CheckForLevel, NOARG, 16973824, MCMD, Icon, ICONID_PlaceNote, "", "Place\nNote" } extendedAttributes {{ {EXTATTR_FLYTEXT, "Place Note With Leader"}, {EXTATTR_BALLOON, "Place Note With Leader"}, }};
What is the correct way to get the command to execute?
Bruce