[perl-win32-gui-users] Embedding a browser window of some sort?...

2001-09-21 Thread EvanK40767
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."



RE: [perl-win32-gui-users] Embedding a browser window of some sor t?...

2001-09-21 Thread Peter Eisengrein
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." 




Re: [perl-win32-gui-users] Embedding a browser window of some sor t?...

2001-09-21 Thread EvanK40767
>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

Well, i know how to get their default web browser, but i don't know how i 
could, say, embed it inside a win32::gui window, or (what i'd rather do) 
create my own window that could interpret simple html...no images or 
javascript or anything, just text formatting.
-
__
"Very funny Scotty.  Now beam up my clothes."



RE: [perl-win32-gui-users] Embedding a browser window of some sort?...

2001-09-21 Thread Frazier, Joe Jr
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." 




RE: [perl-win32-gui-users] Embedding a browser window of some sor t?...

2001-09-21 Thread Frazier, Joe Jr
If you JUST want to get html content and only get the text part of it,
use LWP.  You may also want to use HTML::Tree or HTML::Treebuilder or
the other various HTML::* modules if you need to format the text in a
richedit field or something.   I have never used any of these, However,
I would assume HTML::* would have some functions to tell you what is a
Heading and you could then update that part with a bigger font for
instance.  Again, I dont know, but would be worth looking into.
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, September 21, 2001 13:38
To: perl-win32-gui-users@lists.sourceforge.net
Subject: Re: [perl-win32-gui-users] Embedding a browser window of some
sor t?...


>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 

Well, i know how to get their default web browser, but i don't know how
i could, say, embed it inside a win32::gui window, or (what i'd rather
do) create my own window that could interpret simple html...no images or
javascript or anything, just text formatting. 


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




[perl-win32-gui-users] GetOpenFileName - allowing multiselect

2001-09-21 Thread Mark Southern
Is there anyway to get the OpenFileDialog to allow selection of multiple 
files...?


Thanks!

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Re: [perl-win32-gui-users] Embedding a browser window of some sor t?...

2001-09-21 Thread Sean Healy

Well, i know how to get their default web browser, but i don't know how i
could, say, embed it inside a win32::gui window, or (what i'd rather do)
create my own window that could interpret simple html...no images or
javascript or anything, just text formatting.


Well, if all you want is text formatting, I suggest using html2rtf and 
RichEdit.  The program is available here: 
http://www.speech.cs.cmu.edu/~sburke/html2rtf/ (this page describes how to 
use the program; you can get the file itself from a link near the bottom of 
the page).  (One caveat: html2rtf can't do tables.)


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp