Under Tk, I had a program that displayed 'pages' based on user selections.  Very
much like a tabstrip, but I DON'T want a tabstrip, what I want to do is
replicate the ability of Tk to make a frame, pack it with widgets, and then
display, or hide the frame (displaying and hiding the widgets for each as well,
without me having to care WHAT was in each frame) depending on what the user
selects.  i know there is a groupbox style, but as far as I can tell there is no
way to BIND widgets to a groupbox so that when the groupbox is hidden the
widgets hide as well.  I tried creating the widgets as so:

$mw = new Win32::GUI::DialogBox( ......  #Make the main window

$gb = $mw->AddButton(              # make a groupbox inside it
     -text     => 'hey',
     ........
     .......
     -style => WS_CHILD|WS_VISIBLE|7,
);


$gb->AddButton(.....          # Try to create a button off the groupbox



but that failed (not surprising), is there a way to do this?  Thanks,

Chuck

P.S.  ummm, the example above is abbreviated! ; )



Reply via email to