MsgBar How To make it Gradient
MsgBar How To make it Gradient
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
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
Re: MsgBar How To make it Gradient
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
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

Last edited by ukoenig on Sat Apr 14, 2012 8:06 pm, edited 2 times in total.
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.
i work with FW.
If you have any questions about special functions, maybe i can help.
- Antonio Linares
- Site Admin
- Posts: 42529
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 77 times
- Contact:
Re: MsgBar How To make it Gradient
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" )
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" )
Re: MsgBar How To make it Gradient
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
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.
i work with FW.
If you have any questions about special functions, maybe i can help.