Code Comments
Programming Forum and web based access to our favorite programming groups.(I think I saw a posting either here or on c.l.p.tk a while ago describing how to do this, but can't locate it anywhere) Is it possible to use a -container Toplevel to contain a Win32::OLE object ? I'm trying to figure out how to open a web browser inside a Tk window. I assume I need to (somehow) get the window ID of the Toplevel and pass it to the Win32::OLE (or is it the other way round ?). Any pointers much appreciated...and any equivalent examples for Linux would be nice too... TIA, Dean Arnold Presicient Corp. -++**==--++**==--++**==--++**==--++**==--++**==--++**== This message was posted through the Stanford campus mailing list server. If you wish to unsubscribe from this mailing list, send the message body of "unsubscribe ptk" to majordomo@lists.stanford.edu
Post Follow-up to this message> Is it possible to use a -container Toplevel to > contain a Win32::OLE object ? I'm trying to figure > out how to open a web browser inside a Tk window. > I assume I need to (somehow) get the window ID of the > Toplevel and pass it to the Win32::OLE (or is it > the other way round ?). you could write special application that could be "placed" inside Toplevel (or Frame) via -use option, and it will use Win32::OLE. Although it is theoretically possible, and documentation says that application is responsible for processing X events, it is not documented on how you should process X events, and I, personally, did not succeeded doing this. Probably you should use ActiveX object. It is not available in perlTk, but it is available in its close relative Tcl::Tk module, see example screen shot at the bottom of http://vkonovalov.ru/perl-tcltk.htm there are Win32-native widgets used inside Tk application from within Perl. Vadim. -++**==--++**==--++**==--++**==--++**==--++**==--++**== This message was posted through the Stanford campus mailing list server. If you wish to unsubscribe from this mailing list, send the message body of "unsubscribe ptk" to majordomo@lists.stanford.edu
Post Follow-up to this messageVadim Konovalov wrote: > > > you could write special application that could be "placed" inside > Toplevel (or Frame) via -use option, and it will use Win32::OLE. > Although it is theoretically possible, and documentation says that > application is responsible for processing X events, it is not documented > on how you should process X events, and I, personally, did not succeeded > doing this. > > Probably you should use ActiveX object. It is not available in perlTk, > but it is available in its close relative Tcl::Tk module, see example > screen shot at the bottom of http://vkonovalov.ru/perl-tcltk.htm there > are Win32-native widgets used inside Tk application from within Perl. The other advantage is that the Tcl::Tk module provides full access to the whole suite of Tcl/Tk extensions. Vadim points to the use of BLT in the screenshots above, and you can see the use of Tile, which provides Tk themed widgets (and fully native widgets on OS X / Win) in the recent Perl Dev Kit release at the feature tour here: http://www.activestate.com/Products/Perl_Dev_Kit/ Note that Vadim's page points to a slightly older version of Tcl::Tk. Go to CPAN to get the latest. -- Jeff Hobbs, The Tk Guy http://www.ActiveState.com/, a division of Sophos
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.