[Gambas-user] Xview selection cursor info
Fabien Bodard
gambas.fr at ...626...
Tue Dec 1 18:04:43 CET 2009
http://gambasdoc.org/help/comp/gb.qt/gridview/mode
http://gambasdoc.org/help/comp/gb.qt/gridview/row
and the third question ????? i don't understand what you want ?
first visible row :
irow = GridView1.RowAt(1)
LastVisible Row :
irow = GridView1.RowAt(GridView.ClientHeight - 1)
But it don't say if the Row is fully visible...
You can test a cell
For top :
if GridView[iRow,0].Y <0 and iRow+1 < Gridview.Count then iRow+=1
For bottom
if GridView[iRow,0].Y + GridView[iRow,0].Height >
GridView.ClientHeight and GridView.Count >1 then iRow -= 1
Voila Jean-Yves
2009/11/30 Jean-Yves F. Barbier <12ukwn at ...626...>:
> Hi,
>
> On a tableview, I need:
> * Make the selection cursor to appear on 1st line at opening,
> * Selection cursor's position (row) into the grid,
> * 1st & last rows visible into the grid
>
> I how could I get that?
>
> --
> So, is the glass half empty, half full, or just twice as
> large as it needs to be?
>
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list