1. RE: Displaying HTML

> -----Original Message-----
> From: Philip Deets [mailto:philip1987 at hotmail.com]
> Subject: Displaying HTML
>
>
>
> Hi, I want to add a View ReadMe Menu Item to the Help Menu in my
> program.  The readme is in HTML.  I've looked through the
> platform SDK
> but can't find any answers.  Can you help me?

What's the question?

If it's "How to add the menu item?" then call create(MenuItem, "View
Readme...", myMenu, 0, 0,0,0,0).

If it's "How to view the HTML file?" then call shellExecute("open",
"readme.html", SW_SHOWNORMAL).

> Windows XP SP1
> win32lib 0.59.1 (the latest, I think)
>

new topic     » topic index » view message » categorize

2. RE: Displaying HTML

I once saw an HTML display in the Archive, but I cant find it.
You could just open it in IE(or Netscape).

shellExecute("open", "readme.htm", SW_SHOWNORMAL)--run in default 
browser


Philip Deets wrote:
> 
> 
> Hi, I want to add a View ReadMe Menu Item to the Help Menu in my 
> program.  The readme is in HTML.  I've looked through the platform SDK 
> but can't find any answers.  Can you help me?
> 
> Windows XP SP1
> win32lib 0.59.1 (the latest, I think)
> 
> Thanks,
> Phil
>

new topic     » goto parent     » topic index » view message » categorize

3. RE: Displaying HTML

CoJaBo wrote:
> 
> 
> I once saw an HTML display in the Archive, but I cant find it.
> You could just open it in IE(or Netscape).
> 

Yes, there is a EuCOM demo (http://www.rapideuphoria.com/eucom.zip) that 
shows you how to embed IE into an app.

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

4. RE: Displaying HTML

CoJaBo wrote:
> 
> 
> I once saw an HTML display in the Archive, but I cant find it.
> You could just open it in IE(or Netscape).
> 
> shellExecute("open", "readme.htm", SW_SHOWNORMAL)--run in default 
> browser

This line is what I need. 

Thanks,
Phil
> 
> 
> Philip Deets wrote:
> > 
> > 
> > Hi, I want to add a View ReadMe Menu Item to the Help Menu in my 
> > program.  The readme is in HTML.  I've looked through the platform SDK 
> > but can't find any answers.  Can you help me?
> > 
> > Windows XP SP1
> > win32lib 0.59.1 (the latest, I think)
> > 
> > Thanks,
> > Phil
> > 
>

new topic     » goto parent     » topic index » view message » categorize

5. RE: Displaying HTML

Juergen Luethje wrote:
> 
> 
> isaac-topica wrote:
> 
> > Actually, this should work just fine.
> 
> What do you mean by "should"?
> I tested it, and it did *not* work on my system.
> Did you actually test it? If you did so, on what system?
> Which Windows version, and which Euphoria version?
> What *exactly* did you do? Facts please ...
> 
> > The result will be that the HTML file is
> > displayed in the default browser,
> 
> As I previously wrote, that was *not* the result, that I got.
> When I called
>    integer code
>    code = system_exec("ReadMe.html", 2)
> actually nothing happend on my system. The file "ReadMe.html" was 
> in the same directory as the regarding Euphoria program.

On Win2K, system_exec() does nothing, but system() opens the file in IE 
(my default browser).

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

6. RE: Displaying HTML

Not true on XP... typing a file name in a cmd window will open it using 
it's associated application.  However, it's unwise to assume everybody's 
running XP...

-- Brian

Derek Parnell wrote:
> 
> 
> ----- Original Message ----- 
> From: "Isaac Raway" <isaac-topica at blueapples.org>
> To: <EUforum at topica.com>
> Subject: Re: Displaying HTML
> 
> 
> > Juergen Luethje wrote:
> > 
> > >
> > >isaac-topica wrote:
> > >
> > >  
> > >>Actually, this should work just fine.
> > >>    
> > >>
> > >What do you mean by "should"?
> > >I tested it, and it did *not* work on my system.
> > >Did you actually test it? If you did so, on what system?
> > >Which Windows version, and which Euphoria version?
> > >What *exactly* did you do? Facts please ...
> > >
> > >  
> > I have called this API from C++ and Visual Basic. It works. If it didn't 
> > 
> > work for you, then there is most likely something misconfigured in your 
> > registry.
> 
> What *API* are you talking about? The EUPHORIA routine called 
> "system_exec" has nothing to do with any Windows API. It is equivalent 
> to opening a DOS window and typing in the parameter at the DOS prompt. 
> Thus 'system_exec("ReadMe.html", 2)' is like typing "ReadMe.html" at a 
> DOS prompt. IT does NOT open a browser to display the html file. If you 
> read the Euphoria documentation for this routine it says that the 
> parameter "must be a command to run an executable program" - and a HTML 
> file is not one of those.
> 
> The fact that C++ and VB have a 'system_exec' type of routine does NOT 
> mean that they are the same as Euphoria's routine.
> 
> The Windows API routine called 'shellexecute' is most likely what the VB 
> and C++ routines use. 
> 
> -- 
> Derek
> 
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu