[Gambas-user] DrawArea vs ScrollArea ?

Benoît Minisini gambas at ...1...
Sat Jul 16 12:41:10 CEST 2011


> Is there any difference between DrawArea and ScrollArea when using
> painted=true and the draw_event ?
> Can i set the drawable area bigger than the controls size
> (ScrollArea.W, ScrollArea.H) ?
> If i draw e.g. a line over the extends of width and heigth the scrollbars
> does not appear as i expected.
> 
> Any kind of example clearing the behavior of ScrollArea is highly
> apreciated. Thanks wally
> 
> 

ScrollArea is a DrawingArea with scrollbars. But you must tell the ScrollArea 
the area size by calling its ResizeContents() method. Otherwise you will never 
see the scrollbars!

-- 
Benoît Minisini




More information about the User mailing list