Skip to main content
17-Peridot
July 3, 2018
Solved

Pro/TOOLKIT. How to in ProUIOptionmenu create a groups programmaticaly?

  • July 3, 2018
  • 13 replies
  • 5546 views

Hello.

In ProUIOptionmenu (Drop down ListBox) it is possible create a groups using .res file:

(Resources
 ...
 (OptionMenu1.GroupNames "1"
 "2")
 (OptionMenu1.GroupLabels "group1"
 "group2")
 (OptionMenu1.GroupItems "1"
 "3")

 

How to create this groups from C code for TOOLKIT? Any idea?

Best answer by YaroslavSin

It seems same is not feasible with code.

I agree with you @Ketan_Lalcheta. Looks like old C TOOLKIT can't do this.

 

But PTC point me that OTK have methods for classes uifcOptionMenuGroup in uifcOptionMenu.

 

If you have an ideas - you are welcome. My res file in attachment.

I think, need to try to write res file on the fly at start up of application and then use it.

13 replies

2-Explorer
July 4, 2018
Hi I am not getting your expected result specially groups inside option menu. Values one can set for option menu as per attached file. There is a way to do so through API as well as res file. Could you please show what is your expected result in option menu?
17-Peridot
July 4, 2018

Hi @Ketan_Lalcheta

In Creo UI Editor (*.res) I can create a groups like in picture

ProUIOptionmenu groups.png

Looking a way to do this at runtime in C code.

2-Explorer
July 4, 2018

It seems same is not feasible with code. Still I wanna do reverse engineering. Could you please share dummy res file for option menu with groups?