FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour MsgBar How To make it Gradient
Posts: 811
Joined: Tue May 06, 2008 04:28 AM

MsgBar How To make it Gradient

Posted: Sat Apr 14, 2012 03:09 AM

MsgBar 2010 color is default.. how can I make it custom or define my own gradient?

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM

Re: MsgBar How To make it Gradient

Posted: Sat Apr 14, 2012 09:42 AM
Hello Fraxzi,

I got it working, using any Brush ( Color, Gradient, Bmp, Image )
Like You can see, the Brush is painted.
I still need to show the Text transparent,
otherwise the background is covered with Clrpane from Text.
The Text is shown transparent using : oMsgbar:l2007 := .T.





Using a JPG-image the Image is painted on the Messagebar as well, but covered from Text-background.
I only need a transparent Text !!!!!



Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: MsgBar How To make it Gradient

Posted: Sat Apr 14, 2012 11:48 AM

Frances,

Simply implement your own function MsgBar2010() that returns the handle of the bitmap to use as gradient :-)

i.e.:

function MsgBar2010()

return ReadBitmap( 0, "mygradient.bmp" )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM

Re: MsgBar How To make it Gradient

Posted: Sat Apr 14, 2012 08:11 PM
Antonio,

Thank You very much, it works fine.
The only problem because of a stretched BMP, there is no control of the grad-color-positions.
Using BMP's like blustone.bmp, granit.bmp or marble.bmp must be repainted to msgbar-length
because of stretching.
With my brush-solution it would work, but there is the transparent-text problem.





using a repainted < blustone.bmp >



The used BMP's :







Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.

Continue the discussion