On Mon, 12 Oct 2015, Moviga Technologies wrote: > Hi! > > In my class I inherit ScrollArea, and I want to draw on it from within > the class. > When I do Paint.Begin(Me) I get an error that this is "Not a paintable > object". How should I do this? >
You should not use Paint.Begin() at all. You get to draw on the ScrollArea (or your ScrollArea descendant) during its Draw event and before this event is raised, everything is set up already for you to start Paint'ing. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user