This worries me, SplitterGadget.

Just starting out? Need help? Post your questions and find answers here.
User avatar
Inner
PureBasic Expert
PureBasic Expert
Posts: 714
Joined: Fri Apr 25, 2003 4:47 pm
Location: New Zealand

This worries me, SplitterGadget.

Post 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)
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post 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.
User avatar
Inner
PureBasic Expert
PureBasic Expert
Posts: 714
Joined: Fri Apr 25, 2003 4:47 pm
Location: New Zealand

Post by Inner »

Thanks :) I'll give it a shot.
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Have a look at the first example here:
viewtopic.php?t=6373&highlight=splittergadget

It does exactly what you want.

Timo
quidquid Latine dictum sit altum videtur
Post Reply