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

Fabien Bodard gambas.fr at gmail.com
Wed Dec 7 22:10:49 CET 2022


Yes you forgot paint.stroke to draw the line along your defined path

Le mer. 7 déc. 2022 à 19:46, Jussi Lahtinen <jussi.lahtinen at gmail.com> a
écrit :

>
> 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
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20221207/3fd24b7e/attachment.htm>


More information about the User mailing list