Page 1 of 1

Newby user

Posted: Sat Mar 24, 2018 10:15 am
by Efo74
How can I create Hyperlink example that link webpage : example to gmail.com ?

Thank you for the support.

Re: Newby user

Posted: Sat Mar 24, 2018 1:36 pm
by munfraid
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())
  
  

Re: Newby user

Posted: Sat Mar 24, 2018 2:20 pm
by Efo74
Thank you very much for the support.

But where I can found the documentation ?

Re: Newby user

Posted: Sat Mar 24, 2018 2:35 pm
by T4r4ntul4
Press F1 in your IDE.

Re: Newby user

Posted: Sat Mar 24, 2018 5:23 pm
by munfraid
T4r4ntul4 wrote:Press F1 in your IDE.
Or use the online documentation:
http://www.spiderbasic.com/documentation/

Re: Newby user

Posted: Sat Mar 24, 2018 6:08 pm
by Efo74
Thank you all for the support. :D