[Gambas-user] Events not firing in dynamically instantiated forms.
T Lee Davidson
t.lee.davidson at ...626...
Thu Nov 27 21:12:04 CET 2014
On 11/27/2014 02:36 PM, T Lee Davidson wrote:
> Wow. That is a very good explanation. Thank you, Tobi!
>
> I did understand that "a form is by default its own event observer". But
> I guess I did not fully understand exactly what that meant.
>
> (And, yes, I have seen code like, "Public Sub Form_Open()", and always
> wondered why it did not say "Form1_Open()".)
>
> I thought, when I first asked, that it would be a simple answer. (I
> apologize to you, Stephen, for unintentionally hi-jacking your thread. I
> did think you were done with it.)
>
> Okay, so:
> 1. Should that warning actually say, "Unless ~Class~ is a
> [Form](/comp/gb.qt4/form), if you forget to specify the ~Name~ part,
> your object will never raise events!"
>
> 2. And, should this explanation be put on the Wiki somewhere? If so, where?
Nevermind the second question in #2. Apparently I can't create pages.
--
Lee
__________
"Artificial Intelligence is no match for natural stupidity."
More information about the User
mailing list