On Thu, 27 Nov 2014, T Lee Davidson wrote:
> On 11/27/2014 08:39 AM, Beno?t Minisini wrote:
> > Le 27/11/2014 14:29, Stephen a ?crit :
> >> 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.
> >>
> >
> > mhForm1 = New Form1(TabStrip1) As "Form1"
> >                                  \________/
> 
> Now *I'm* confused. The documentation for "New" 
> (http://gambaswiki.org/wiki/lang/new) gives its syntax as:
> Object = NEW Class [ ( Constructor parameters... ) ] [ AS Name ]
> 
> 
> And, there is a warning box that says, "If you forget to specify the 
> Name part, your object will never raise events!"
> 
> But after stripping "As Form1" off the end of that line, the form 
> obviously *does* raise events.
> 
> Is the documentation in need of correction? If so, what should that 
> warning actually say?
> 

What the documentation says is generally true. But Form is a special class:
it attaches to itself as event observer by default when instantiated.

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to