Page 1 of 1
Libs : colored link
Posted: Fri Oct 07, 2005 8:43 pm
by eddy
download :
here ( Extract to your PB folder and restart your PB compiler. )
ColoredLink feature:
- 2 colors
- label & url
- can open url ( if url is defined )
Code: Select all
ColoredLinkGadget(#PB_Any,5,5,70,25,"clickable link","www.purebasic.com",RGB($CE,$0,$0),RGB($FF,$0,$0))
ColoredLinkGadget(#PB_Any,5,5,70,25,"clickable link","",RGB($CE,$0,$0),RGB($FF,$0,$0))
Posted: Sat Oct 08, 2005 7:37 pm
by ebs
eddy,
Nice and simple - I like it!
I did notice one problem: On Windows, if you are using Microsoft's "ClearType" font smoothing,
the link text gets messed up when the mouse passes over it. With ClearType turned off, everything is OK.
I've seen this behavior before, and I believe it has something to do with changing the font color dynamically when ClearType is on.
I don't think there's much that can be done about it.
Thanks,
Eric
Posted: Sat Oct 08, 2005 9:57 pm
by Wolf
Thanks eddy its nice

Posted: Sat Oct 08, 2005 11:50 pm
by eddy
cleartype uses two effects : font smoothing + alphablending.
Alpha text is drawed several times, that's why it gets messed up
I have to erase the background of parent window.
I tried to fix without any result
http://msdn.microsoft.com/library/defau ... cation.asp
If you found a way to fix it...

Posted: Sun Oct 09, 2005 12:11 am
by eddy
[UPDATED]
Ok I fixed the CLEARTYPE problem with a colored rectangle.
It's a cheap solution.