Wx::StaticText

From WxPerl wiki

Jump to: navigation, search

To create:

 my $label = Wx::StaticText->new( 
  $panel, # parent
  1, # id
  "Name:", # label
  [50, 15] # position
 );

To modify the text once created:

  $label->SetLabel("Name (mandatory):");

See Jouke's tutorial - http://www.perl.com/pub/a/2001/09/12/wxtutorial1.html - for an example of creating and modifying a Wx::StaticText object.

Personal tools
Google AdSense