![]() |
|
|
Size Window to Contents is a plugin for the JKI Right-Click Framework for LabVIEW
Introduction
I like the Front Panel and Block Diagrams windows of my VIs to be just large enough to show all the contents. I created this code a while ago to put in my Tools menu to "fix" windows of VIs that I open, and I adapted it to use the RCF. It even takes advantage of the simple method to add configurable parameters!
This plugin resizes the contents of the selected window to enclose its contents plus a configurable whitespace border. The window will either grow or shink depending on the window contents, but it will not grow beyond the size of the screen (or screens if you have multiple monitors).
The plugin only works when you have nothing selected on the FP or BD, and it doesn't work on FP's with multiple panes. It could be enhanced to work on other objects like tab controls, clusters, structures, etc. Maybe I'll add those features some day.
Steps to Complete
Unzip the folder into the <LabVIEW>\resource\JKI\RCF\Plugins\ folder and restart the framework.
Additional Notes
Version 1.0.1.
Saved in LabVIEW 8.6.1.
Very nice. My only complaint is that there should be a limit to how small the panel gets. For instance, I like to see all of the toolbar. Otherwise, great tool!
Great idea! Thanks for sharing this plugin. I've added a link to this page on the List of Community Plugins for the JKI Right-Click Framework.