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 |