From: Mark W. <ma...@ne...> - 2006-12-16 19:15:48
|
Hi Barrie, I tried to amend the Demo to attempt to use events but I got an error. EVT_TREE_SEL_CHANGED( $tree, $tree, \&OnSelChange ); Can't locate object method "Connect" via package "Wx::TreeListCtrl" I am not sure what to do here, perhaps somebody else has some ideas? Thanks Mark > -----Original Message----- > From: Barrie Slaymaker [mailto:ba...@sl...] > Sent: 16 December 2006 08:09 PM > To: Mark Wardell > Subject: Wx::TreeListCtrl events? > > Mark, > > I have built & am running Wx::TreeListCtrl (on WinXP, FWIW), > many thanks for the wrapper. However, I notice that events > aren't getting delivered. To make sure it wasn't my code, I > converted to Wx::TreeCtrl and they work fine). > > Any thoughts? I'll be glad to patch, esp. if you have some > idea of where I should start looking. > > - Barrie |
From: Barrie S. <ba...@sl...> - 2006-12-16 19:18:15
|
Mark Wardell wrote: > Hi Barrie, > > I tried to amend the Demo to attempt to use events but I got an error. > > EVT_TREE_SEL_CHANGED( $tree, $tree, \&OnSelChange ); > > Can't locate object method "Connect" via package "Wx::TreeListCtrl" > > I am not sure what to do here, perhaps somebody else has some ideas? > I think your first $tree should be $self (assuming $self isa Wx::Frame); it's the Frame that does the Connect(). Thanks for looking at this! - Barrie |
From: Daniel <dan...@ya...> - 2006-12-18 12:44:38
|
Hi all, I tried to use Wx::HtmlWindow but it doesn't work. I have this: ###### code sub F_Help { my $panel = shift; my $tab = shift; my $dialog = Wx::Window->new( $panel, # parent window -1, # ID [-1, -1], # position [820, 650], # default size ); $dialog -> Centre(); $dialog -> Show(1); $dialog->{HtmlWindow}{"hilfe"} = Wx::HtmlWindow->new( $dialog, # parent window -1, # Fenter id [-1,-1], # Position x/y [800, 600], # Größe x/y 1, "Hilfe zum Punkt $tab" ); $dialog->{HtmlWindow}{"hilfe"} ->LoadPage("C:\\daten\\hilfe\\startseite.html"); } ##### end code $panel is of type Wx::Panel What I get i a plain box without any frames, Headline, Buttons, Scrollbars etc. The html-page is shown, but the Main-Window in the background is still active. I searched in the demo, but Wx::HtmlWindow is not used there. Any tips would be great. Thanks and regards Daniel ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: Mark D. <mar...@zn...> - 2006-12-18 19:54:36
|
Hi Daniel, I think Wx::HtmlWindow is doing exactly what it is meant to - displaying HTML. It is in the demo =3D Windows -> wxHtmlWindow. I think what you are looking for (Headline, Scrollbars, Buttons) is a 'Browser'. Wx::LaunchDefaultBrowser('C:/daten/hilfe/startseite.html') will launch whatever the default browser is. If you are on windows, your could try Wx::ActiveX to use IE. I seem to remember some work went into Wx::Mozilla - you'd have to search the list archive to find out if that would suit your needs. Wx::LaunchDefaultBrowser has to be the preferred solution unless you really need something embedded. Regards Mark Daniel wrote: > Hi all, >=20 > I tried to use Wx::HtmlWindow but it doesn't work. >=20 >=20 > I have this: >=20 > ###### code >=20 > sub F_Help { > my $panel =3D shift; > my $tab =3D shift; >=20 > my $dialog =3D Wx::Window->new( $panel, # parent window > -1, # ID > [-1, -1], # position > [820, 650], # default size > ); > =20 > $dialog -> Centre(); >=20 > $dialog -> Show(1); >=20 > =20 > $dialog->{HtmlWindow}{"hilfe"} =3D Wx::HtmlWindow->new( $dialog, = # > parent window > -1, # Fenter id > [-1,-1], # Position x/y > [800, 600], # Gr=F6=DFe x/y > 1, > "Hilfe zum Punkt $tab" > ); >=20 > $dialog->{HtmlWindow}{"hilfe"} > ->LoadPage("C:\\daten\\hilfe\\startseite.html"); >=20 > =20 > } >=20 > ##### end code >=20 > $panel is of type Wx::Panel >=20 >=20 > What I get i a plain box without any frames, Headline, Buttons, Scrollb= ars etc. > The html-page is shown, but the Main-Window in the background is still = active. >=20 > I searched in the demo, but Wx::HtmlWindow is not used there. Any tips = would be > great. >=20 > Thanks and regards=20 > Daniel >=20 >=20 >=20 >=20 > =09 > ___________________________________________________________=20 > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de >=20 > -----------------------------------------------------------------------= -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share= your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > wxperl-users mailing list > wxp...@li... > https://lists.sourceforge.net/lists/listinfo/wxperl-users |