Page 1 of 1

This worries me, SplitterGadget.

Posted: Sat Aug 02, 2003 9:11 am
by Inner
I can't seam to get more than 1 gadget (either size of the splitter) to resize to the new SplitterGadget() offset, this worries me because it is essential to my gui design that I can have multipal gadgets left or right of the splittergadget that addjust not only to the windows size, but to where the position of the splitter is, also is there anyway to limit the distants that the splitter can travel?.

should I find an alternative ? (gadget that is)

Posted: Sat Aug 02, 2003 3:03 pm
by freedimension
Create a ContainerGadget and place all of your Gadgets in this Container.
Then Create your SplitterGadget with the Container as one of the Childs.
Windows now sends a WM_SIZE Message everytime the SplitterGadget is UserAdjusted. To function correctly, you must Set a Callback-Procedure and process WM_SIZE in there. The hWnd Parameter should be GadgetID(#Container). All you have to do now, is manually Resizing the Gadgets in it.

Posted: Sun Aug 03, 2003 8:20 am
by Inner
Thanks :) I'll give it a shot.

Posted: Sun Aug 03, 2003 11:00 am
by freak
Have a look at the first example here:
viewtopic.php?t=6373&highlight=splittergadget

It does exactly what you want.

Timo