LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

top left corner of tab

Solved!
Go to solution

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?

 

 

Message Edited by C .DOT on 01-29-2009 06:47 PM
0 Kudos
Message 1 of 10
(3,653 Views)

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

Message Edited by MikeS81 on 01-29-2009 02:50 PM
0 Kudos
Message 2 of 10
(3,648 Views)

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?

Message Edited by smercurio_fc on 01-29-2009 09:10 AM
0 Kudos
Message 3 of 10
(3,624 Views)
Relative to top left of the monitor screen. And I cannot use mouse move because I need these coordinates when user selects a menu item. With this information I need to display the screen of an executable whitin the tab (of course apparantly).
0 Kudos
Message 4 of 10
(3,617 Views)

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?

0 Kudos
Message 5 of 10
(3,612 Views)

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

 

George Zou
0 Kudos
Message 6 of 10
(3,600 Views)
Solution
Accepted by Rashid-Malik

Here is a method to retrieve the screen coordinates:

 

 

Good luck,

 

Ton

 

Message Edited by TonP on 01-29-2009 05:24 PM
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!
Message 7 of 10
(3,594 Views)

Thanks TonP! Your wish did come true.

Accept my humblest thanks.

0 Kudos
Message 8 of 10
(3,564 Views)

Thanks zou!

I will certainly try the toolkit when I can afford it.

Anyway thanks a lot for the advice.

0 Kudos
Message 9 of 10
(3,561 Views)

Sorry ! For keeping you confused .

 

Still, you do deserve a big thanks for being patient .

 

Have a very pleasant day!

0 Kudos
Message 10 of 10
(3,558 Views)