Home > Archive > PerlTk > November 2004 > Toplevel -container and Win32::OLE ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Toplevel -container and Win32::OLE ?
|
|
| Dean Arnold 2004-11-16, 6:53 pm |
| (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
| |
| Vadim Konovalov 2004-11-22, 3:57 am |
| > 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
| |
| Jeff Hobbs 2004-11-24, 4:00 pm |
| Vadim 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
|
|
|
|
|