LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

click and move

Hi,
 
I would like to know if it is possible to move between two 3D picture indicators. By this i mean if you click with the mouse on the first 3d picture control the screen moves to where ever the second picture screen place on the front panel. If you click with the mouse on the second picture screen it moves back to the first screen.
 
Thanks
 
KING1
0 Kudos
Message 1 of 6
(2,989 Views)

Hi King1,

I'm not sure what you are trying to do, if you want to respond to drag and drop events on the picture controls, then there is an example that ships with LabVIEW that shows how to do this using the event structure. Its called 'Drag and Drop - Multiple Data Types to Start Drag' and you should be able to find this in the example finder by searching for 'drag'.

If this isn't what you meant, can you try and explain a little more what you are trying to do, and I'll see if I can come up with some suggestions.

Regards
Hannah
NIUK & Ireland

0 Kudos
Message 2 of 6
(2,961 Views)
There are two parts to this answer, if I understand you correctly.  To determine whether a user has clicked on your 3D graph, use the mouse down event in the event structure.  When a mouse down event occurs, use the properties of the front panel or pane (depending on your version of LabVIEW) to move the origin.  The attached VI (LV8.2) should make this clearer.  I attached a screenshot, as well.  If you are using LV7.1 or earlier, panes do not exist and you use the panel reference instead.


Message Edited by DFGray on 03-27-2007 08:28 AM

Download All
0 Kudos
Message 3 of 6
(2,955 Views)

Hi,

I would like to click with the mouse on the 3D picture control which is on first tab and as a result of the click on the 3d control you move to the second tab, how could this be done.

thanks

King1

0 Kudos
Message 4 of 6
(2,947 Views)
That is even easier.  As far as the block diagram is concerned, a tab control is an enum with values equal to the names of the pages.  So to change the page of the tab control, simply change its value to the page number you want.  In the above code, replace the position change with a value change on the tab control.  See attached example.
Message 5 of 6
(2,928 Views)

Hi,

Thats what i wanted thank you DFGray. excellant!!!!

0 Kudos
Message 6 of 6
(2,921 Views)