[Gambas-user] Trying charts - how to do that?

Jussi Lahtinen jussi.lahtinen at gmail.com
Wed Dec 7 19:45:05 CET 2022


> I set cache to true and changed Draw to Paint
>
> *Public Sub Button1_Click()*
>
> *  Paint.Begin(da1)*
>
> *  Paint.MoveTo(15, 15)*
> *  Paint.LineTo(120, 120)*
> *  Paint.End*
>
>
>
> *End *This makes no error any more, but makes no line. So I tried
>
>
>
>
>
>
>
>
>
>
> * Public Sub Button1_Click()   Paint.Begin(da1)   Paint.Color(Color.Black)
>   Paint.MoveTo(15, 15)   Paint.LineTo(120, 120)   Paint.End End *doesn'r
> change anything.
> It's such a pity I can't get the examples to run, all with DrawingArea
> demand gb.qt4 and gb.qt4.ext.
> Anyway, I looked at the project ChartReport from the Software-Farm and got
> confused because it uses an abject Chart which is not defined anywhere and
> I can't see that is a property or method either. And it uses Line, I think
> the previous version uses LineTo, so outdared.
> Cost so much time and I am sorry to bother you with this. I need only one
> example which runs, the rest I can figure out.
> Regards, Dag
>

Just use the draw, it is fine. With paint you must do the stroke.

Jussi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20221207/c440d131/attachment.htm>


More information about the User mailing list