Hello everyone
Is it possible to change the Eventname to a view after initializing it?
Normally in Sub Process_Globals the views that are going to be used in a form are defined (Textfields, Checkboxes, Comboboxes, ...)
Then in Sub AppStart (Form1 As Form, Args () As String) these views are initialized
MainForm.RootPane.LoadLayout ("Main") 'Load the layout file.
In this same method or in another, values will be given to textfield.tex, checbox.checked, ... etc. and this triggers the _TextChanged, _CheckedChange, etc. events that are defined in the class.
In order to avoid this, it could be good to initialize the views with eventname "", then assign the values to the properties text, checked, etc ... in this way the corresponding events would not be triggered and finally change the eventname "" by the corresponding in each case, and from that moment the events would be triggered.
Thanks for your cooperation
Is it possible to change the Eventname to a view after initializing it?
Normally in Sub Process_Globals the views that are going to be used in a form are defined (Textfields, Checkboxes, Comboboxes, ...)
Then in Sub AppStart (Form1 As Form, Args () As String) these views are initialized
MainForm.RootPane.LoadLayout ("Main") 'Load the layout file.
In this same method or in another, values will be given to textfield.tex, checbox.checked, ... etc. and this triggers the _TextChanged, _CheckedChange, etc. events that are defined in the class.
In order to avoid this, it could be good to initialize the views with eventname "", then assign the values to the properties text, checked, etc ... in this way the corresponding events would not be triggered and finally change the eventname "" by the corresponding in each case, and from that moment the events would be triggered.
Thanks for your cooperation