this is an example

2017-08-05 13:07 GMT+02:00 Fabien Bodard <gambas...@gmail.com>:
> 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

Attachment: gridviewdrawexample-0.0.1.tar.gz
Description: GNU Zip compressed data

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to