Mark Dootson > Wx-Demo > Wx::DemoModules::lib::BaseModule

Download:
Wx-Demo-0.22.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  3
Open  1
View/Report Bugs
Source  

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

syntax highlighting: