|
Folks,
Is anyone else using WxDesigner?
WxDesigner puts the dialogs in a separate file. I can hardcode references in this file:
$main::myLocationText = $item3;
But, I'd rather find a better approach. Is there a way to locate items by ID in WxPerl?
Robert
--------------------
Example Code
use vars qw($LOGIN_TEXTCTRL); $LOGIN_TEXTCTRL = 10007;
sub DataEntryDialog {
my( $item0 ) = Wx::FlexGridSizer->new( 0, 1, 0, 0 );
$item0->AddGrowableCol( 0 );
my( $item1 ) = Wx::BoxSizer->new( wxHORIZONTAL );
my( $item2 ) = Wx::StaticText->new( $_[0], $main::SPREADSHEET_TEXT, "Working Spreadsheet", wxDefaultPosition, wxDefaultSize, 0 );
$item1->AddWindow( $item2, 0, wxALIGN_CENTER|wxALL, 5 );
my( $item3 ) = Wx::TextCtrl->new( $_[0], $main::LOCATION_TEXTCTRL, "", wxDefaultPosition, [200,-1], 0 );
$main::myLocationText = $item3;
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
|