Page 1 of 1
Link to a web page
Posted: Tue Mar 25, 2025 10:27 pm
by rndrei
What gadget should I use to make a link to a web page?
Re: Link to a web page
Posted: Tue Mar 25, 2025 10:52 pm
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.
Re: Link to a web page
Posted: Tue Mar 25, 2025 10:53 pm
by idle
HyperLinkGadget ?
Re: Link to a web page
Posted: Tue Mar 25, 2025 11:15 pm
by rndrei
Yes, НyperLinkGadget! How to link a page to it so it opens?
Re: Link to a web page
Posted: Tue Mar 25, 2025 11:44 pm
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
Re: Link to a web page
Posted: Wed Mar 26, 2025 7:25 am
by rndrei
That's what I needed, Thank you!