1. Launching a document with it's default viewer

Hey!
The subject line pretty much says it all> I want to launch a named
document using it's default viewer from a win32lib program, system()
will do it but it brings up an ugly console window...
Thomas Parslow (PatRat) ICQ #:26359483
Rat Software
http://www.rat-software.com/
Please leave quoted text in place when replying

new topic     » topic index » view message » categorize

2. Re: Launching a document with it's default viewer

Howdy!


Give this piece of code a whirl.  It uses shellExecute from win32lib.ew.
This should give you some idea of how to do what you're wanting ...  smile

-- How to launch something with shellExecute

include win32lib.ew

constant
    window = create(Window, "Launch Euphoria site", 0, Default, Default,
Default, Default, 0),
    btn = create(Button, "Let's see site", window, 0, 0, 100, 100, 0)


procedure onClick_btn()

    shellExecute("Open", "www.rapidEuphoria.com", SW_SHOWNORMAL)

end procedure

onClick[btn] = routine_id("onClick_btn")

WinMain(window, Normal)




Happy Hunting,

Travis Beaty
Claude, Texas.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu