lugan2
Mechanical
- Apr 10, 2013
- 42
Hello all
I am aware that the normal way of creating a customized menu in UG is through UI Styler. That is:
1)define the frame and data entry items in the UI styler interface;
2)creating dlg/dlx file as the result;
3)modify the .men file to call the menu at startup stage; and,
4)define the callback functions associated to the created menu.
However, if one wants to do it more pragmatically, namely:
1) define a framework as a data container to hold all the data entries using UI styler;
2) save the result dlg/dlx file;
3) write nxopen-c++/nxopen-c code to add data entries(such as data property entry or toggle button) onto the data container, pragmatically. How would one do that?
I tried to find if there is a member function under (NXOpen::BlockStyler::Group)theDialog->TopBlock() like "addmenu" or "addtogglebutton", something like that to create a new data entry in real-programming-time, but there is no such functions.
Could anyone suggest what should I do please, if there any function in UF or NXOpen can achieve that? I think there must be some underline coding behind all these manual dialog and menu-item creating operations, right?
Many thanks!
Gan
I am aware that the normal way of creating a customized menu in UG is through UI Styler. That is:
1)define the frame and data entry items in the UI styler interface;
2)creating dlg/dlx file as the result;
3)modify the .men file to call the menu at startup stage; and,
4)define the callback functions associated to the created menu.
However, if one wants to do it more pragmatically, namely:
1) define a framework as a data container to hold all the data entries using UI styler;
2) save the result dlg/dlx file;
3) write nxopen-c++/nxopen-c code to add data entries(such as data property entry or toggle button) onto the data container, pragmatically. How would one do that?
I tried to find if there is a member function under (NXOpen::BlockStyler::Group)theDialog->TopBlock() like "addmenu" or "addtogglebutton", something like that to create a new data entry in real-programming-time, but there is no such functions.
Could anyone suggest what should I do please, if there any function in UF or NXOpen can achieve that? I think there must be some underline coding behind all these manual dialog and menu-item creating operations, right?
Many thanks!
Gan