HyperLinkGadget()
Syntax
Result = HyperLinkGadget(#Gadget, x, y, Width, Height, Text$, Color)Description
Creates an HyperLink gadget in the current GadgetList. A hyperlink gadget is a text area which reacts to the mouse pointer by changing its color and the cursor shape.
If #PB_Any is used as '#Gadget' parameter, the new gadget identifier will be returned as 'Result'.
The content can be changed with the command SetGadgetText() and can be received with GetGadgetText(). To have a web underlined style hyperlink, simply use an underlined font with SetGadgetFont() once the gadget has been created. 'Color' is the color displayed when the mouse pointer is over the gadget.
You can add a 'mini help' to this gadget by using GadgetToolTip().
Example:If OpenWindow(0,0,0,270,160,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"HyperlinkGadget") And CreateGadgetList(WindowID(0)) HyperLinkGadget(0, 10, 10,250,20,"Red HyperLink", RGB(255,0,0)) HyperLinkGadget(1, 10, 30,250,20,"Arial Underlined Green HyperLink", RGB(0,255,0)) SetGadgetFont(1, LoadFont(0, "Arial", 12, #PB_Font_Underline)) Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow EndIf
Supported OS
All