How can I create Hyperlink example that link webpage : example to gmail.com ?
Thank you for the support.
Newby user
Re: Newby user
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
Thank you very much for the support.
But where I can found the documentation ?
But where I can found the documentation ?
Re: Newby user
Press F1 in your IDE.
Re: Newby user
Or use the online documentation:T4r4ntul4 wrote:Press F1 in your IDE.
http://www.spiderbasic.com/documentation/