[Gambas-user] Events not firing in dynamically instantiated forms.
Stephen
sbungay at ...3301...
Thu Nov 27 14:29:53 CET 2014
I'm not consciously overriding the event observer so I'm not clear how
to not do it.
Obviously I still have much to learn.
On 11/27/2014 08:20 AM, Benoît Minisini wrote:
> Le 27/11/2014 14:08, Stephen a écrit :
>> GAMBAS: 3.5.4
>> Fedora 20 in a VM under 64 bit CentOS 6.5
>> MATE Desktop
>>
>> I'm a bit confused (some would say it's my normal state:) as to why,
>> when a form is dynamically instantiated within a tabstrip (or other
>> container) the Open and Show events for the instantiated form don't
>> fire. This can be worked around by making a Show subroutine that can be
>> manually called from the parent form.
>>
>> Have a look at the source demonstration project attached to this email.
>>
>> Should these events fire? If not then why?
>>
> Because you override the event observer when instanciating Form1, which
> is by default itself. Don't override it, and it will work.
>
--
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems
More information about the User
mailing list