HyperLinkGadget()
Syntax
Result = HyperLinkGadget(#Gadget, x, y, Width, Height, Text$, Color [, Flags])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 number will be returned as 'Result'.
The content can be changed with the command SetGadgetText() and can be received with GetGadgetText().
'Flags' is always optional and can be the following constant:#PB_Hyperlink_Underline: Draw a line under the text without the need to use an underlined font.You can add a 'mini help' to this gadget by using GadgetToolTip().
This gadget supports the SetGadgetColor() and GetGadgetColor() commands with the #PB_Gadget_FrontColor type to change the text color. The backgroundcolor is always the color of the window.
Example:If OpenWindow(0, 0, 0, 270, 160, "HyperlinkGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) 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), #PB_HyperLink_Underline) SetGadgetFont(1, LoadFont(0, "Arial", 12)) Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow EndIf
Supported OS
All