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
0 Kudos
Message 1 of 18
(12,774 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
(9,151 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
(9,151 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
(9,151 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
(9,151 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
(9,151 Views)

Didn't know about that feature.  Why is that VI buried under vi.lib and not next to the plugins folder?

I will update with this vi to eliminate the need for <shift>.

-John
------------------------
Certified LabVIEW Architect
0 Kudos
Message 7 of 18
(9,151 Views)

That VI is part of the plugin template, so hopefully it should be pretty discoverable. It's in vi.lib so that plugins can have a symbolic link to it, whether or not the plugin is in the <resource> or <LabVIEW Data> folder. This decision was made before the LabVIEW release where <resource> is also a symbolic path.

0 Kudos
Message 8 of 18
(9,151 Views)

Darren,

Thanks for the advice on the lvconfig.llb instead if the INI VIs.

My question is how are LV users supposed to know these VIs are there?

I've never seen them mentioned in a training class, displayed on a palette, used in an example, etc.

I amazed and sad I've not seen these for so many years.

Regards

Tech Advisor - Automation
LabVIEW 5.0 - 2020
0 Kudos
Message 9 of 18
(9,151 Views)

Yeah, there's lots of useful stuff that ships with LabVIEW that isn't officially supported, and thus, doesn't receive much attention. I tried to highlight some of the more useful stuff in my Hidden Gems in vi.lib presentation. The lvconfig.llb VIs are the only non-vi.lib VIs to make an appearance in that presentation.

Message 10 of 18
(9,151 Views)