01-29-2009 07:45 AM - edited 01-29-2009 07:47 AM
Hello friends! Need your assistance again. Here's the problem ;
I want to find the top left corner of a tab (in a tab control). How may I do it?
Solved! Go to Solution.
01-29-2009 07:49 AM - edited 01-29-2009 07:50 AM
Hi C.Dot,
i think you can use a property node to read this information. I think inside of a tab the result is the position of inside the tab, so you have to add the position of the tab to the position of your control.
Mike
01-29-2009 09:09 AM - edited 01-29-2009 09:10 AM
C .DOT wrote:Hello friends! Need your assistance again. Here's the problem ;
I want to find the top left corner of a tab (in a tab control). How may I do it?
Relative to what? The "Position" property return the position relative to the window.
Or, are you trying to get the position in global coordinates? For that you need the mouse location, and the easiest way to do that is with the MouseMove event.
What do you need to do with this information?
01-29-2009 09:29 AM
01-29-2009 09:43 AM
C .DOT wrote:
And I cannot use mouse move because I need these coordinates when user selects a menu item.
OK, I've read this 3 times and this still makes no sense. What does a mouse move have to do with selecting a menu item?
01-29-2009 10:11 AM
LabVIEW property node will return the coordinate of LabVIEW, you have to convert it to the window client coordinate, and then to the screen coordinate.
You can also make the executable a child window of your front panel. So that it will move with parent window, and minimize with the parent window.
G Toolbox can do both, and you do have to move mouse.
George Zou
http://www.geocities.com/gzou999
01-29-2009 10:23 AM - edited 01-29-2009 10:24 AM
Here is a method to retrieve the screen coordinates:
Good luck,
Ton
01-30-2009 07:58 AM
Thanks TonP! Your wish did come true.
Accept my humblest thanks.
01-30-2009 08:04 AM
Thanks zou!
I will certainly try the toolkit when I can afford it.
Anyway thanks a lot for the advice.
01-30-2009 08:06 AM
Sorry smercurio…! For keeping you confused .
Still, you do deserve a big thanks for being patient .
Have a very pleasant day!