Wx::DemoModules::lib::BaseModule - wxPerl demo helper base class


Wx-Demo documentation  | view source Contained in the Wx-Demo distribution.

Index


NAME

Top

Wx::DemoModules::lib::BaseModule - wxPerl demo helper base class

METHODS

Top

new

Constructor.

Called automatically by Wx::Demo when the specific Demo Module is selected.

add_styles

METHODS designated to be overridden

Top

styles

Need to return a list of array refs containing pairs of ??? and title.






  return (
    [ wxSB_HORIZONTAL, 'Horizontal' ],
    [ wxSB_VERTICAL,   'Vertical' ],
  );




commands

Should return a list of hashes. Each hash contains a label key with a text value and an action key with a subroutine reference to become the event handler as the value.

Eg.:

  return (
    {
      label       => 'Simple about dialog',
      action      => \&simple_about_dialog,
    },
    { 
      label       => 'Complex about dialog',
      action      => \&complex_about_dialog,
    },
  );

create_control


Wx-Demo documentation  | view source Contained in the Wx-Demo distribution.