[Gambas-user] Two colors and two entries in a GridView
Fabien Bodard
gambas.fr at ...626...
Sat Aug 5 15:12:10 CEST 2017
this is an example
2017-08-05 13:07 GMT+02:00 Fabien Bodard <gambas.fr at ...626...>:
> I think you need to use the _Draw Event of the grid view.
>
> http://gambaswiki.org/wiki/comp/gb.qt4/gridview/.draw
>
> Event Draw ( X As Integer, Y As Integer, Width As Integer, Height As
> Integer, Row As Integer, Column As Integer )
>
>
> the rect X,Y,Width,Height is the area where drawing. It is in fact
> dependent of the Scroll translation so use these value to place
> objects.
>
> To drawing a circle + a text in the _Draw event of the gridview:
>
> Paint.Ellipse(X,Y,Height, Height)
> Paint.Stroke
>
> Paint.DrawText("MyText",Width,Y,Width-Height,Height)
>
>
> --
> Fabien Bodard
--
Fabien Bodard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gridviewdrawexample-0.0.1.tar.gz
Type: application/x-gzip
Size: 12368 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20170805/e82af0a3/attachment.bin>
More information about the User
mailing list