Re: Launching a document with it's default viewer

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu