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)
This worries me, SplitterGadget.
-
freedimension
- Enthusiast

- Posts: 613
- Joined: Tue May 06, 2003 2:50 pm
- Location: Germany
- Contact:
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.
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.
Have a look at the first example here:
viewtopic.php?t=6373&highlight=splittergadget
It does exactly what you want.
Timo
viewtopic.php?t=6373&highlight=splittergadget
It does exactly what you want.
Timo
quidquid Latine dictum sit altum videtur
