Method to get GUI control's default value

Post Reply
DoctorG
Posts: 35
Joined: Thu Dec 27, 2018 9:42 pm

Method to get GUI control's default value

Post by DoctorG »

Hello,
is there a method to get a GUI control's default value at run time?

Thanks...
gary
Cherry Garcia
Site Admin
Posts: 293
Joined: Fri Aug 31, 2018 2:57 am

Re: Method to get GUI control's default value

Post by Cherry Garcia »

Gary,

Not at this time. We can add this feature for a future build, if you'd like.
DoctorG
Posts: 35
Joined: Thu Dec 27, 2018 9:42 pm

Re: Method to get GUI control's default value

Post by DoctorG »

Hi Cherry,
that would be quite useful and, I assume, relatively simple to do.

The use case is that I initialise some structures with default values of controllers. What I'd like to be able to say is...

for(i=0; i<whatever; i++) {
thing = SomeController.GetDefault();
}

However, I need to look up the default in the Properties view and manually copy the value. Of course, if I change a default then I have to remember to copy the new value. So it's a bit messy.

Many thanks...
gary
Post Reply

Return to “Module Designer”