HMG4 event idea
Posted: Thu Mar 03, 2011 4:53 pm
Hello everyone, I would like to have your opinion on whether to add two events to the form.
The names could be: "OnBeforeShow" and "OnAfterShow".
These two events would be triggered immediately before and after the statement "oQTObject: Show ()" in window.prg.
The reasons for this request is: often, it is useful to fill in the fields after a processing or perform a procedure, etc.
Since the form is not yet completely loaded I get errors
Another example that comes to me is this: in the OnInit function of the main form, I have to open another form. Based on the result of this operation I have to figure out whether to continue or not. With Hmg4 I have problems, but using the assumed event OnAfterShow everything works fine.
What do you think about this idea?
Best regards.
The names could be: "OnBeforeShow" and "OnAfterShow".
These two events would be triggered immediately before and after the statement "oQTObject: Show ()" in window.prg.
The reasons for this request is: often, it is useful to fill in the fields after a processing or perform a procedure, etc.
Since the form is not yet completely loaded I get errors
Another example that comes to me is this: in the OnInit function of the main form, I have to open another form. Based on the result of this operation I have to figure out whether to continue or not. With Hmg4 I have problems, but using the assumed event OnAfterShow everything works fine.
What do you think about this idea?
Best regards.