Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

[CONNECT DItem_PushButtonXRsc] Trying to launch CONNECT "Place Note" tool

$
0
0

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


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>