Hello,
I am programming a GUI and I wanted to add an onChange attribute to the current item to trigger an event. Does this attribute exist in GUIs? The objects I am using in the GUI are comboboxes. Thank you in advance for your comments
Hello,
I am programming a GUI and I wanted to add an onChange attribute to the current item to trigger an event. Does this attribute exist in GUIs? The objects I am using in the GUI are comboboxes. Thank you in advance for your comments
Hey @Borja Lorenzo, for Comboboxes, you have access to the OnSelect attribute that fires when an option is selected in the combobox. This is the closest thing I can think of for what you're describing. You can use the itemcurrent attribute to figure out which option was selected, and then have code to do whatever you want to do based on which item was selected.
Would you be able to do what you're hoping to do with OnSelect? If not, let us know what you're trying to do, and we'll see what else might be possible.
Hi, Logan
Thanks for your suggestion. I ended up doing something like what you mentioned and complemented it with the use of a User Command. I think it worked. But I thought there would be an onChange event trigger… just like there is an onSelect.
10 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved