Hyperlink Display

Windows specific forum
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Hyperlink Display

Post 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:
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: Hyperlink Display

Post by Danilo »

IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Hyperlink Display

Post by IdeasVacuum »

...Surprised that it got under the PB4.51 radar as well :|
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply