Just starting out? Need help? Post your questions and find answers here.
Efo74
 
Posts: 3
Joined: Sat Mar 24, 2018 9:58 am

Newby user

by Efo74 Sat Mar 24, 2018 10:15 am

How can I create Hyperlink example that link webpage : example to gmail.com ?

Thank you for the support.
munfraid
 
Posts: 12
Joined: Sat Mar 24, 2018 1:33 pm

Re: Newby user

by munfraid Sat Mar 24, 2018 1:36 pm

Should work like this:

Code: Select all
; Create a procedure to handle your gadget events

Procedure GadgetEvents()
 
  Protected gadget = EventGadget()
 
  Select gadget
    Case 1 ; your hyperlink gadget
      ! window.open('https://gmail.com', '_blank');
  EndSelect
     
EndProcedure


; Create a window and your gadget

If OpenWindow(0, 0, 0, 270, 160, "HyperlinkGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    HyperLinkGadget(1, 10, 30, 250,20,"open gmail", RGB(0,0,255), #PB_HyperLink_Underline)
EndIf


; Bind gadget events to your handle procedure
 
BindEvent(#PB_Event_Gadget, @GadgetEvents())
 
 
Efo74
 
Posts: 3
Joined: Sat Mar 24, 2018 9:58 am

Re: Newby user

by Efo74 Sat Mar 24, 2018 2:20 pm

Thank you very much for the support.

But where I can found the documentation ?
User avatar
T4r4ntul4
 
Posts: 117
Joined: Wed May 21, 2014 1:57 pm
Location: Netherlands

Re: Newby user

by T4r4ntul4 Sat Mar 24, 2018 2:35 pm

Press F1 in your IDE.
munfraid
 
Posts: 12
Joined: Sat Mar 24, 2018 1:33 pm

Re: Newby user

by munfraid Sat Mar 24, 2018 5:23 pm

T4r4ntul4 wrote:Press F1 in your IDE.

Or use the online documentation:
http://www.spiderbasic.com/documentation/
Efo74
 
Posts: 3
Joined: Sat Mar 24, 2018 9:58 am

Re: Newby user

by Efo74 Sat Mar 24, 2018 6:08 pm

Thank you all for the support. :D
Return to Coding Questions

Who is online

Users browsing this forum: No registered users and 7 guests