in reply to [fixed] Wx with XRC, get handle on objects
# call with parent window and the (string) XRC id, returns # the corresponding window sub FindByXRCID($$) { my ($win, $idname) = @_; my $id = Wx::XmlResource::GetXRCID($idname) or die("no $idname in XRC"); my $ctrl = $win->FindWindow($id) or die("window with id \"$idname\" ($id) not found in " . $win->GetName()); return $ctrl; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [fixed] Wx with XRC, get handle on objects
by wilsond (Scribe) on Jan 26, 2009 at 00:07 UTC | |
by VZ (Acolyte) on Jan 26, 2009 at 10:46 UTC | |
by wilsond (Scribe) on Jan 27, 2009 at 09:02 UTC |