cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

ProModeCurrentGet clears undo stack

markus_bonk
1-Visitor

ProModeCurrentGet clears undo stack

I have a popupmenu listener which implements the object toolkit callback as

 

void OnPopupmenuCreate(pfcPopupmenu_ptr spMenu)

{

xstring name = spMenu->GetName();

cout << "OnPopupmenuCreate name=" << name << endl;

ProMode mode;

ProError error = ProModeCurrentGet (&mode );

cout << "mode = " << mode << endl;

}

 

 

Unfortunately the call to ProModeCurrentGet (&mode ); clears the undo stack wihtou the call the undo stack remains intact. How can I determine which mode Creo is in so that I know whether to add to the popup menu or not without clearing the undo stack? Is there at least one version of creo where this call is not a problem?


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
0 REPLIES 0
Announcements


Top Tags