The closest I could get(NOT embedded!!!):
use Win32::OLE;
use Win32::GUI;
 
my $win = new Win32::GUI::Window (
    -name   => "Window",
 #-topmost => 1,
    -left   => 100,
    -top    => 100,
    -width  => 550,
    -height => 550,
    #-maxsize  => [550,550],
    #-minsize  => [205,228],
    -text   => "PC 4.0 Keys",
 -maximizebox => 0,
 -minimizebox =>1,
 -helpbutton => 0,
 -resizable =>0,
);
 
my $ie = Win32::OLE->new('InternetExplorer.Application');
$ie->{AddressBar} =0;
$ie->Navigate( 'www.microsoft.com');
$ie->{MenuBar} =0;
$ie->{Top} =110;
$ie->{Left} =110;
$ie->{height} =500;
$ie->{width} =500;
$ie->{StatusBar} =0;
$ie->{ToolBar} =0;
$ie->{Resizable} = 0;
$ie->{Visible} =1;
 
$win->Show();
Win32::GUI::Dialog;
 
sub Window_Terminate {
 $ie->Quit();
 undef $ie;
 return -1;
}
 
This does however, give you programtic control over the IE window
created.   To my knowledge, there is no way to "embed" it into the gui
window.   I will be using something like this to copy information from
IE to a GUI window( name, address, etc.) and then save the GUI data to a
DB.   What I had thought of doing was making the GUI window resized to
take up the left half of the screen and resize the IE window to take up
the right side of the screen when the IE window is opened.  Sorry, but
this is the best I can do for you.  It would be great if they could be
embeded directly, so then I could also embed Word, Excel, etc.....
Heck, I would probably be able to afford to donate $10  if someone could
figure out a way to hack the current version of Win32::GUI( doubtful) or
add it to the next version( and then release it!!).  
 
Joe Frazier, Jr
Technical Support Engineer
PeopleClick
919-645-2916
[EMAIL PROTECTED]
 

-----Original Message-----
From: Peter Eisengrein [mailto:[EMAIL PROTECTED]
Sent: Friday, September 21, 2001 08:45
To: '[EMAIL PROTECTED]'; perl-win32-gui-users@lists.sourceforge.net
Subject: RE: [perl-win32-gui-users] Embedding a browser window of some
sort?...


Not sure exactly what you're asking but the easiest way I've found to
open html files with the users' preferred browser is to let the OS
decide and simply execute that file like so:
 
`\\path\\filename.htm`;
 
This works on NT4, but I doubt it would work on Win9x/ME. If that's the
OS you're working with I suppose your script could use Win32::Registry
to find the default browser. 
 
But, of course, this may not have been your question :)
 
-Pete
 
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 21 September 2001 03:31
To: perl-win32-gui-users@lists.sourceforge.net
Subject: [perl-win32-gui-users] Embedding a browser window of some
sort?...


I think a question similar to this may have been asked, but i didn't
find it in the mailing list archive, so here goes...I'm looking to make
or embed a web browser window of some sort as part of my own win32::gui
program.  i wouldnt really like to use any specific browser (ie,
netscape, etc.), because different people use different browsers, so is
there perhaps some sort of small existing program i could use to
interpret and display html properly? 



- 
______________________________ 
"Very funny Scotty.  Now beam up my clothes." 


Reply via email to