Hi Christian,

Thanks for your help! I guess the problem was that I'm used to other
frameworks using X and Y for mouse drop events, I just need to "think
QooXdoo" and get the whole "Left" and "Top" into my head!

It seems like I have also run into a "namespace clash" in the Table API... I
saw the method getVisibleColumnAtX(Integer visXPos) in the class
qx.ui.table.columnmodel.Basic and I thought "great! I can use this to get
the column by the screen/widget X Y coordinate" ... but it seems like i was
mistaken... This method uses the ColToXPosMap in the Basic column model but
it seems to only be table index and not X Y coordinates.

Can anyone give me a hint on how to work out what column is at a particular
X Y coordinate on the screen?

Cheers,
- Andrew

-----------------------------------------
Andrew Manson
Graticule Cloud Applications<http://www.graticule.com/services/cloud-computing>
www.graticule.com



On 6 April 2011 13:04, Christian Hagendorn <[email protected]>wrote:

>  Hi Andrew,
>
> I'm not an expert for the table, so I don't know the implementation.
>
> When you are using the normal Drag[1] event you can use getDocumentLeft()
> and getDocumentTop() to get the x/y coordinates from the event.
>
> Hope this helps.
>
> Cheers,
> Chris
>
> [1] http://demo.qooxdoo.org/current/apiviewer/#qx.event.type.Drag
>
> Am 06.04.2011 13:24, schrieb Andrew Manson:
>
> Hi,
>
>  I've been trying to develop a drag and drop solution for a Table where we
> a user can drag a series of "selection" objects onto the table to assign it
> to a particular column. I have seen that there is a table column model that
> has the functionality to decipher which column a particular X Y coordinate
> is on, which is exactly what I needed! Great! But now I'm coming to the
> drag/drop part of the implementation and I'm a little confused... is there
> no way to figure out what the X Y coordinates of a drop event is?
>
>  Can someone please direct me to the documentation on how to get the X Y
> coordinates out of a drop event, or at least some example code. Even if
> someone could reassure me that it is possible to get a coordinate out of a
> drop event that would be helpful and I can keep looking.
>
>  Cheers,
> - Andrew
>
>  -----------------------------------------
> Andrew Manson
> Graticule Cloud 
> Applications<http://www.graticule.com/services/cloud-computing>
> www.graticule.com
>
>
>
>
>
> ------------------------------------------------------------------------------
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to