[Win32Lib] Best way to get data from input controls
Hi,
Suppose I have a window with several checkboxes, radio buttons, and
text fields. There is an OK button that uses the options specified by
these controls to perform a task (as in any Windows app). A Euphoria
variable is set up for each control to hold its value in case the value
happens to be used more than once while the task is performed. What is
the most efficient way to get data from these controls when the OK
button is pressed? From my perspective, there are two possibilities:
1. On every Change event, assign the new value of the control to that
control's variable. When the OK button is pressed, all the values are
already stored and immediately available for execution of the task.
2. Don't do anything until the OK button is pressed. When it is
pressed, successively get each control's value and store it in that
control's variable. Then proceed with the execution of the task.
Between these two options, which is the most efficient? Which is used
more often? Is there another method? (Is this such a beginner's
question that the answer should be obvious?)
Andrew Hall
|
Not Categorized, Please Help
|
|