Collapse splitter panels

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Justin
Addict
Addict
Posts: 948
Joined: Sat Apr 26, 2003 2:49 pm

Collapse splitter panels

Post 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.