[Gambas-user] How to get grid view cell / Icon view item by the position of mouse click

Fabien Bodard gambas.fr at ...626...
Sat Dec 18 16:47:38 CET 2010


yes it's true ... not item property neither in gb3

2010/12/18 Phạm Quang Dương <soleilpqd at ...626...>:
> Hi,
>
> 1. From Wiki:
> *GridView.Find*
>
> Finds a cell from mouse coordinates relative to the control.
>
> This function returns TRUE <http://gambasdoc.org/help/lang/true> if no cell
> is found. Otherwise, the found cell is accessible from the
> Item<http://gambasdoc.org/help/comp/gb.qt/gridview/item>property.
> But I don't find grid view's Item property.
>
> 2. I followed the "Drag and Drop" example to make an Icon view with that I
> can drag & drop to reorder  items. It works fine with unscrolled-yet Icon
> view. But after scroll the icon view toward bottom, I got wrong item.
> I can not find the solution, so I tried with Grid view (with ScrollX &
> ScrollY property) but I have same problem.
> Here is the demo project. For simpler, I test with mouse down event: open,
> click => get right cell; then scroll, click => wrong cell.
>
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>



-- 
Fabien Bodard




More information about the User mailing list