Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! 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);
![1.png 1.png](https://community.ptc.com/t5/image/serverpage/image-id/42154i965FB92C72A3BF84/image-size/large?v=v2&px=999)
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