Page 1 of 1

Opening URL with Browser from within a dialog

Posted: Tue Oct 03, 2006 8:10 pm
by jonljacobi
I'd like to send users to a web site using a URL in and About dialog using the Windows default browser. I've seen it before. Anyone know how to do it?

Put another way, how do I invoke the default external browser and direct it to a Web page?

Cheers, Jon

Posted: Tue Oct 03, 2006 8:22 pm
by Trond

Code: Select all



OpenWindow(0, 0, 0, 512, 384, "", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)
CreateGadgetList(WindowID(0))

HyperLinkGadget(0, 20, 20, 150, 20, "Homepage!", #Blue)


Repeat
  Select WaitWindowEvent()
    Case #PB_Event_Gadget
      Select EventGadget()
        Case 0
          RunProgram("http://www.google.com")
      EndSelect
    Case #PB_Event_CloseWindow
      Break
  EndSelect
ForEver



Posted: Tue Oct 03, 2006 8:48 pm
by jonljacobi
Thanks!!!

Cheers, Jon