The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Popup Window

$popup=Paw::Popup-new([$height], [$width], [$shade], \@buttons, \$text, [$name]);>

Parameter

     $height   => number of rows [optionally]

     $width    => number of columns [optionally]

     $shade    => popup box has a shadow (shade=>1)

     $name     => name of the widget [optionally]

     \@buttons => an array of strings for the labels on the buttons
                  in the box.

     \$text    => reference to a scalar with the Text.
  

Example

     @butt=('Okay', 'Cancel');
     $text=('Do you really want to continue ?');
     $pu=Popup::new(height=>20, width=>20,
                        buttons=>\@butt, text=>\$text);

If a button is pressed, the box closes and the number of the button is returned (beginning by 0).

draw();

raises the popup-window, returns the number of the pushed button.

Example

     $button=$pu->draw();

set_border(["shade"])

activates the border of the widget (optionally also with shadows).

Example

     $widget->set_border("shade"); or $widget->set_border();