[Gambas-user] How to draw on a ScrollArea from with in a class that inherits ScrollArea?

Tobias Boege taboege at ...626...
Mon Oct 12 02:20:48 CEST 2015


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




More information about the User mailing list