Quick Drop Enthusiasts

cancel
Showing results for 
Search instead for 
Did you mean: 

Move and Size QD Plugin

This plugin is for OCD developers.  I based this on the QD_MoveToOrigin plugin by jcarmody.

This plugin works on both the front panel and the block diagram.  It moves the chosen window contents to the origin with an offset of one grid square.  It then resizes the window so there is a one grid square border around the entire contents.

Use   to process the current window.

*** Updated with dynamic reading of FP and BD grid sizes from ini file.  Thanks for the tips on how to do this. ***

**** Updated to process selected diagram instead of using <shift> to select. ****

**** Updated Oct 9, 2014 - Improved window resizing for active monitor.  Will now attempt to fit the monitor if content exceeds monitor dimentions.  Works in both verical and horizontal dimentions independantly.

This is my first QD plugin, so please let me know if there are any changes or improvements you would like to see.

thanks,

-John

-John
------------------------
Certified LabVIEW Architect
Message 1 of 18
(14,258 Views)

John,

I don't know of any property to read the grid size values, but they are stored in the LabVIEW.ini file if they have been modified from defaults.  I doubt you want to read these values from file for a QD, but just in case...

GetPanelGridSizes.png

Thanks for sharing your QD plugin.

James

PS. And, to demonstrate the severity of my ailment... 

     GetPanelGridSizesIcon.png

Tech Advisor - Automation
LabVIEW 5.0 - 2020
Message 2 of 18
(10,635 Views)

Use the VIs in resource\dialog\lvconfig.llb to read LabVIEW INI entries...much easier than having to find the file on disk then use the Configuration File VIs.

Message 3 of 18
(10,635 Views)

Thanks for the suggestion.  I have added this feature so it will adapt to your custom grid settings.

-John
------------------------
Certified LabVIEW Architect
0 Kudos
Message 4 of 18
(10,635 Views)

Instead of using the shift key to choose between FP and BD, why not just have one shortcut that acts on whichever window is active?

Message 5 of 18
(10,635 Views)

I agree, you can use the "QD Launch VI Panel?" output of QuickDrop Parse Plugin Variant.vi to see if Quick Drop was launched from the panel or the diagram.

0 Kudos
Message 6 of 18
(10,635 Views)