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

NAME

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

METHODS

new

Constructor.

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

add_styles

METHODS designated to be overridden

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