From 11:00 PM CDT Friday, May 10 – 02:30 PM CDT Saturday, May 11 (04:00 AM UTC – 07:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
_carl

Expose Splitter Bar Width/Height Property through Property Nodes

Status: New

The request:

The thickness of splitter bars can be resized through the front panel at edit time, but this property is not exposed through property nodes. Why not expose this?

 

Background:

I use splitter bars all the time for resizable GUIs. They're also cumbersome. Many of the feature improvements I'd love to see have already been captured on this forum. In the mean time, I've got tools for automating what I can -- but I've hit a dead end when it comes to resizing the splitters programmatically. This requested property node doesn't exist and pre-sized splitters can't be copied from template VIs using scripting because the "Move" method throws an error.

2 Comments
BertMcMahan
Active Participant

So there is a way to modify it programmatically, but it's not as simple as a property node. Check out Pane Relief:

 

https://forums.ni.com/t5/Quick-Drop-Enthusiasts/Pane-Relief/m-p/3974152

 

Go to the linked github page and dig in to find "Set Splitter Size (Core)". Honestly I don't know what on earth is going on in that file, but I can say that the quickdrop program DOES work to set the size of the splitter. I doubt this would work in the runtime engine but geez, there are some serious shenanigans going on in this program so who knows.

 

It does appear you could wrap that code up into a standalone VI... maybe?

_carl
Member
It does appear you could wrap that code up into a standalone VI... maybe?

Ha, yes, there ARE some serious shenanigans going on in there! Anyway, I actually had already tried this but without success -- and I couldn't justify the time to attempt to further reverse engineer/debug the inner working of that mechanism!