Resizing Controls Using Splitters in LabWindows™/CVI

Updated Feb 22, 2024

Reported In

Software

  • LabWindows/CVI

Issue Details

I want to resize some controls on a panel using splitter control. How can I do this in LabWindows?

Solution

There are two ways to resize controls using splitters in LabWindows either manually or programmatically.

A) Using Attach/Detach Control Dialog Box
Controls can be attached or detached to the splitter using Attach/Detach Controls dialog box. This dialog box can be accessed when splitter is double-clicked and press Attach/Detach Controls.. button.
1.png 
2.png

B) Using AddCtrlToSplitter function
Controls can be programmatically attached to the splitter using the AddCtrlToSplitter function and configure the attachment mode.

Additional Information

When you set a splitter control to any mode other than indicator mode, you can move or resize elements on a panel using the mouse or keyboard.