Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hi all,
I am using Creo Toolkit to develop a Dialog and there is an option menu component. After I set the properties of the option menu as below, I can get a dialog as shown in the picture.
ProUIDialogOptionmenuAdd(update_dlg, compnt, &grd);
ProUIOptionmenuRightoffsetSet(update_dlg, compnt, ofst);
ProUIOptionmenuLeftoffsetSet(update_dlg, compnt, ofst);
ProUIOptionmenuNamesSet(update_dlg, compnt, count, names);
ProUIOptionmenuLabelsSet(update_dlg, compnt, count, w_names);
ProUIOptionmenuEnable(update_dlg, compnt);
The problem is that I cannot change the selected item. it always shows "haa29100" , even I click on "haa29100_exe". I also tried using the following functions to change it. But it did not work.
ProUIOptionmenuSelectActionSet()
ProUIOptionmenuSelectednamesGet()
ProUIOptionmenuValueSet()
Could anyone give me a demo to show how to change the selected item in option menu?
Thanks,
ZR Liu