in reply to Re^3: Tk::Wizard content
in thread Tk::Wizard content

I think i've figured it out.
my $user_wizard = new Tk::Wizard( -title => " User Wizard", -imagepath => "people.gif", ); $user_wizard->addPage( sub { return $user_wizard->blank_frame( -title => "Page Title", -subtitle => "Sub-title", -text => "Some text.", ); }); $user_wizard->addPage(sub{ my $bframe= $user_wizard- +>blank_frame( -title => "Welcome to the User Informati +on Wizard", -text=>"What is your name?"); my $lbfirstname = $bframe->Label(-text=>"First Name", -backgro +und=>'white')->pack; my $lbfnentry = $bframe->Entry->pack; my $lblastname = $bframe->Label(-text=>"Last Name", -backgroun +d=>'white')->pack; my $lblnentry = $bframe->Entry->pack; return $bframe; } ); $user_wizard->Show; MainLoop; __END__
Now if I can just resize the Wizard box somehow to show all my text.

There is a -resizable option but I don't know what boolean value to give it.. http://search.cpan.org/~lgoddard/Tk-Wizard-Bases-1.92/lib/Tk/Wizard.pm

my $user_wizard = new Tk::Wizard( -title => " User Wizard", -style=>'top', -imagepath => "z:\\BPP\\people.gif", -resizable=>"0", );

Replies are listed 'Best First'.
Re^5: Tk::Wizard content
by zentara (Cardinal) on Apr 18, 2006 at 21:41 UTC
    I'm glad to hear you figured it out, but I will say one thing. Tk::Wizard isn't used very often at all, so don't expect too many people to know about it. As a matter of fact, you are the first Wizard question I've seen here in years. So when you use these GUI-makers, expect to run into troubles, that occur because of the hidden complexities of the GUI-designer. That is why most Tk authors always stick to the basic widget set, it's a little more work, but you have more control.

    I'm not really a human, but I play one on earth. flash japh
      Thanks! I am learning a lot about Tk::Wizard. It's really not bad.