LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get appropriate cell coordinates in List Control while mouse moving

Hi,

in a List Control of LabVIEW 7.1 I want to show full lenght of truncated entrys via tip strip (like Windows explorer). To this I want to set tip strip by entry of List Control while moving mouse pointer over List Control.

My problem: In Event Case "Mouse Moving" property node provides only XY-coordinates of LV front panel. But I need cell coordinates of List Control who mouse pointer cross over.

Can anybody help? Thanks.

C. Dietz
Christian

Test Engineering
digades GmbH
www.digades.com
0 Kudos
Message 1 of 8
(3,489 Views)

Hi C. Dietz,

you can calculate the row by divide the y value by the row height.

Mike

0 Kudos
Message 2 of 8
(3,477 Views)
Hi Mike,

thank you for reply.

I tried that already but title of control element and title of columns are unknown dimensions. So I don't know the XY-coordinates from left upper corner of first data cell.

Christian
Christian

Test Engineering
digades GmbH
www.digades.com
0 Kudos
Message 3 of 8
(3,471 Views)

Hi Christian,

can you upload an example of what you have done so far?

Mike

0 Kudos
Message 4 of 8
(3,469 Views)
Hi Christian,
i think about something like that. i have only a picture in german, sorry for that.
Mike
0 Kudos
Message 5 of 8
(3,463 Views)
Hi Mike,

thank you for your activity (keine Entschuldigung für den Anhang in deutsch, damit komme ich sogar besser zurecht Smiley Happy)

This solution works. My initial problem was the unknown offset to first row (see attachement). I hoped this offset can obtain programmatically. Finally I found the offset approximately. It works exactly too.

Christian
Christian

Test Engineering
digades GmbH
www.digades.com
0 Kudos
Message 6 of 8
(3,442 Views)

Hi Christian,

to get the height of the caption see the attached picture. I think the height of the column header is the same as all other rows.

Mike



Message Edited by MikeS81 on 04-09-2008 09:17 AM
0 Kudos
Message 7 of 8
(3,439 Views)
I'm not sure this exist in LabVIEW 8.5:
Active row position
And another reason to upgrade to LabVIEW 8.x:
Get mouse position

Maybe this will do:


Ton



Message Edited by TonP on 04-09-2008 09:30 AM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 8 of 8
(3,430 Views)