04-04-2014 04:17 PM
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
*** 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
04-16-2014 08:38 AM
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...
Thanks for sharing your QD plugin.
James
PS. And, to demonstrate the severity of my ailment...
04-16-2014 12:07 PM
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.
04-16-2014 01:09 PM
Thanks for the suggestion. I have added this feature so it will adapt to your custom grid settings.
04-16-2014 03:58 PM
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?
04-16-2014 04:02 PM
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.