How to create a TextPDM_ItemModify ?

Status
Not open for further replies.

Michael Stark

Usenet Archive
Joined
Aug 3, 2000
Messages
50
Reaction score
0
Hello all

after building successfully a menu I'd like to insert some new entries. I have already the pointer to the needed DItem_PulldownMenu.

I could imagine that the TextPDM_Item could be filled like a DItem_PulldownMenuItemRsc but have no idea how to fill the TexctPDM_ItemModify.

I just wanted to use the mdlDialog_textPDMItemInsert to insert an Item in my (own) menu and release it when leaving the app with mdlDialog_menuBarFindItem (with the resourceID) or the DItem... returned by the mdlDialog_textPDMItemIns, and mdlDialog_menuBarDeleteItem.

Did anyone this way or is there another chance ?

thanks in advance Michael
 
Please see the message '28 Nov 2001 Why my menu item not display ? ' in this newsgroup. It will helpful to you.

Foo.
 
Michael ...

after building successfully a menu I'd like to insert some new entries. I have already the pointer to the needed DItem_PulldownMenu.

I could imagine that the TextPDM_Item could be filled like a DItem_PulldownMenuItemRsc but have no idea how to fill the TextPDM_ItemModify.

The TextPDM_ItemModify struct is a set of flags that tell MicroStation which members of your TextPDM_Item are relevant. For example ...

textModify->enabled = TRUE;
textModify->commandNumber = (NOCMD == cmd ? FALSE:TRUE); textModify->commandTaskIdP = TRUE; //textModify->unparsedP = TRUE; textModify->labelP = TRUE; textModify->pulldownSearchId = TRUE; textModify->unparsedP = TRUE;
 
Status
Not open for further replies.

Latest threads

Back
Top