[Gambas-user] Trying charts - how to do that?
Jussi Lahtinen
jussi.lahtinen at gmail.com
Wed Dec 7 02:49:34 CET 2022
>
>
>
>
>
>
>
> *Public Sub Button1_Click() Draw.Begin(da1) Draw.Line(15, 15, 20, 20)
> Draw.End End *
> I get the error-message
> *Cannot paint outside of Draw handler*
>
You are doing the drawing inside _Click() event, when you need to do it
inside _Draw() event.
OR set the property "cached = true".
Jussi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20221207/300bcd7b/attachment.htm>
More information about the User
mailing list