Aaron MacDonald
2008-01-27 00:23:07 UTC
Hi,
My application requires several states such that only one state is
shown at a time in a single window (frame). I intend to represent
each state as a subclass of Panel, each with their own set of
controls. Only one of these panels should be visible at a time. The
frame should be sized such that it fits the largest panel, and any
smaller panels should be resized to fit the frame. Basically, I want
something like CardLayout from Java Swing.
I've had a look at the Show() and Hide() methods of window objects,
but I'm not sure what structure I need to fit these different panels
in a frame, how to properly show and hide panels, and how to properly
resize any panels that are too small. Has anyone else done something
like this?
Thank you,
Aaron M.
My application requires several states such that only one state is
shown at a time in a single window (frame). I intend to represent
each state as a subclass of Panel, each with their own set of
controls. Only one of these panels should be visible at a time. The
frame should be sized such that it fits the largest panel, and any
smaller panels should be resized to fit the frame. Basically, I want
something like CardLayout from Java Swing.
I've had a look at the Show() and Hide() methods of window objects,
but I'm not sure what structure I need to fit these different panels
in a frame, how to properly show and hide panels, and how to properly
resize any panels that are too small. Has anyone else done something
like this?
Thank you,
Aaron M.