Can we have dropdown comboBox in ProcessBox via VBA Code ?
The idea here is to avoid Buttons and have dropdownBox which will list All the display files which cane be navigated through this dropdown box
You can add a combobox to your display using the Draw->Control menu option. You can then draw out the size & shape of the combobox you want. Change the name by right clicking on the combobox in build mode and selecting properties.
The combobox can be manipulated with VBA. If you wish to populate the combobox with display names, you can insert code in the Display_Open() event to search your directory for .pdi or .piw files and add them to a list. You can then add code in your combobox_change or a button_click event to open the new file using Application.Displays.Open(path...). If you don't want to search a directory, you can maintain a list of displays in a text/csv file and read that in (instead of searching the directory).
I hope that helps, please let me know if you have any questions.
What is the comboBox please? If it is an object, how about invisualize it at the situation you wish please?
PI Developer Club
Thanks Sam ☺
Retrieving data ...