[Gambas-user] Events and attach

Marco Gusy picander78 at ...325...
Sat Jan 14 02:24:09 CET 2006


Alle 13:01, venerdì 13 gennaio 2006, Benoit Minisini ha scritto:

> You can create your own control by inheriting UserControl or UserContainer 
in 
> gambas 1.9.x. Examples are located in the source code of the gb.form 
> component.

Ok, I studied it more. If i'm not wrong the best way is to create a class (the 
class the end user will istantiate into the form) which inherits usercontrol.
Inheriting usercontrol is mandatory because includes the drawing area, right?
Into this class I add my code and define in it a form (or other object/s). The 
class would listen to form/objects events, while the end user would receive 
only the events the class exports.
Am I right?

Thanks again

Marco




More information about the User mailing list