Newby user

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

Newby user

Post by Efo74 »

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

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

Re: Newby user

Post 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())
  
  
Efo74
Posts: 16
Joined: Sat Mar 24, 2018 9:58 am

Re: Newby user

Post by Efo74 »

Thank you very much for the support.

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

Re: Newby user

Post by T4r4ntul4 »

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

Re: Newby user

Post by munfraid »

T4r4ntul4 wrote:Press F1 in your IDE.
Or use the online documentation:
http://www.spiderbasic.com/documentation/
Efo74
Posts: 16
Joined: Sat Mar 24, 2018 9:58 am

Re: Newby user

Post by Efo74 »

Thank you all for the support. :D
Post Reply