Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Toplevel -container and Win32::OLE ?
(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

Report this thread to moderator Post Follow-up to this message
Old Post
Dean Arnold
11-16-04 11:53 PM


Re: Toplevel -container and Win32::OLE ?
> 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

Report this thread to moderator Post Follow-up to this message
Old Post
Vadim Konovalov
11-22-04 08:57 AM


Re: Toplevel -container and Win32::OLE ?
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

Report this thread to moderator Post Follow-up to this message
Old Post
Jeff Hobbs
11-24-04 09:00 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PerlTk archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:14 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.