[Gambas-user] Two colors and two entries in a GridView
Fabien Bodard
gambas.fr at ...626...
Sat Aug 5 13:07:13 CEST 2017
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
More information about the User
mailing list