Page 1 of 1

Collapse splitter panels

Posted: Sat Jan 23, 2016 7:09 pm
by Justin
Sometimes you want to hide totally one of the splitter panels including the separator bar so the user can resize it and also leaves a cleaner interface.

Code: Select all

SetGadgetItemState(#Gadget, item, #PB_Splitter_Collapsed)
item 0 the first panel, 1 the second panel
When a item is collapsed the other one covers the entire splitter surface and there is no separator bar. Only one item can be collapsed at a time. With SetGadgetState() you can later restore it.
It is a very common behaviour.