Page 1 of 1

Hyperlink Display

Posted: Mon Nov 14, 2011 4:25 am
by IdeasVacuum
PB4.51x86 WinXP 32bit

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
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! :shock:

Re: Hyperlink Display

Posted: Mon Nov 14, 2011 7:03 am
by Danilo

Re: Hyperlink Display

Posted: Mon Nov 14, 2011 2:43 pm
by IdeasVacuum
...Surprised that it got under the PB4.51 radar as well :|