Hyperlink Display
Posted: Mon Nov 14, 2011 4:25 am
PB4.51x86 WinXP 32bit
This is the code from the Help:
On my PC, the Window shows-up blank. If the mouse is hovered over it, the hyperlinks display. If the mouse is then hovered over either link, the cursor correctly changes to a hand (and the link works) but the link goes blank again. Also, the font colour for both is black when one should be red and the other green. Not seen this issue with earlier version PB's, but then I rarely use the Hyperlink Gadget. Any ideas folks?
Edit: Found a work-around by accident. Apply a tool-tip to the gadget and all issues are gone!
This is the code from the Help:
Code: Select all
If OpenWindow(0, 0, 0, 270, 160, "HyperlinkGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
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
Edit: Found a work-around by accident. Apply a tool-tip to the gadget and all issues are gone!