Gambas-it

Gambas3 => Domande tecniche => Topic aperto da: vuott - 13 Aprile 2014, 03:06:21

Titolo: Uso di ScrollArea
Inserito da: vuott - 13 Aprile 2014, 03:06:21
Vi riporto la parte saliente di un messaggio di Minisini in una discussione apparsa nella M.L. ufficiale:


" You use the ScrollArea exactly like the DrawingArea, except that:

1) You must define the contents size with the ResizeContents() method.

2) You must take the vaue of ScrollX and ScrollY properties into account
when drawing inside the Draw event handler (at least for things that
must move with the scrollbars).

3) A ScrollArea has no "Cached" property. You must implement the Draw
event handler.

4) You have a "Shadow" property if you want to draw nice shadows on
borders where scrolling is possible.

Regards,

--
BenoƮt Minisini
"