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

Change selected option in Optionmenu in Dialog

ZRLiu
4-Participant

Change selected option in Optionmenu in Dialog

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

 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

0 REPLIES 0
Announcements