Newby user
Posted: 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.
Thank you for the support.
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())
Or use the online documentation:T4r4ntul4 wrote:Press F1 in your IDE.