[Gambas-user] Can not draw outside of draw event handler
Benoît Minisini
gambas at ...1...
Tue Mar 29 18:20:14 CEST 2011
> You don't need all those Draw.Begin and Draw.End:
>
> "A Draw.Begin on the drawing area is automatically called before raising
> the event, and the drawing is clipped to the area to be redrawn.
> Draw.End will be automatically called after the event." (Wiki)
>
> So, just do
>
> iAct = 1
> drawArea.Refresh
>
Not for Cached drawing areas! They act like Pictures.
Regards,
--
Benoît Minisini
More information about the User
mailing list