Autore Topic: Uso di ScrollArea  (Letto 355 volte)

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.298
  • Ne mors quidem nos iunget
    • Mostra profilo
Uso di ScrollArea
« il: 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
"
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »