Example Code

Move front panel object inside the limits of the panel with mouse using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
This example demonstrates how to move tab control with mouse to a new positon.


Description
Here is a brief description of the example:

This example demonstrates moving a front panel object in the limits of the panel by dragging with mouse. We move a frame decoration instead the tab control itself so we have a smoother move effect.


Requirements

  1. LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Run VI
  2. Press "Show Panel"
  3. Mouse down over the green title bar inside the tab control just appeared.
  4. Move the mouse to a new position
  5. Complete drag and let the tab control move to the new position.

 

Additional Information or References
VI Snippet

Control Move Example 2012 NIVerified.png

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.