Link to a web page

Just starting out? Need help? Post your questions and find answers here.
User avatar
rndrei
Enthusiast
Enthusiast
Posts: 183
Joined: Thu Dec 28, 2023 9:04 pm

Link to a web page

Post by rndrei »

What gadget should I use to make a link to a web page?
normeus
Enthusiast
Enthusiast
Posts: 475
Joined: Fri Apr 20, 2012 8:09 pm
Contact:

Re: Link to a web page

Post by normeus »

Windows? linux?
What version of PB
Do you want a button to be clicked and it sends you to a website?
will it be an editor gadget?
maybe a Tree gadget?

It really depends on what you are trying to acomplish.

you need to give more information. People here are ready to help you, but you need to at least show some code or explain your problem with more detail.


Norm.
google Translate;Makes my jokes fall flat- Fait mes blagues tombent à plat- Machte meine Witze verpuffen- Eh cumpari ci vo sunari
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Link to a web page

Post by idle »

HyperLinkGadget ?
User avatar
rndrei
Enthusiast
Enthusiast
Posts: 183
Joined: Thu Dec 28, 2023 9:04 pm

Re: Link to a web page

Post by rndrei »

Yes, НyperLinkGadget! How to link a page to it so it opens?
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Link to a web page

Post by idle »

windows

Code: Select all

Procedure Atomicwebserver() 
    RunProgram("https://atomicwebserver.com\index.html") 
 EndProcedure  
 
If OpenWindow(0, 0, 0, 270, 160, "HyperlinkGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    HyperLinkGadget(0, 10, 10, 250,20,"Atomic Web Server", RGB(255,0,0))
    SetGadgetFont(1, LoadFont(0, "Arial", 12))
    BindGadgetEvent(0,@Atomicwebserver())
    Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf

User avatar
rndrei
Enthusiast
Enthusiast
Posts: 183
Joined: Thu Dec 28, 2023 9:04 pm

Re: Link to a web page

Post by rndrei »

That's what I needed, Thank you!
Post Reply