MsgBar How To make it Gradient

MsgBar How To make it Gradient

Postby fraxzi » Sat Apr 14, 2012 3: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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: MsgBar How To make it Gradient

Postby ukoenig » Sat Apr 14, 2012 9: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.

Image

Image

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

Image

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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: MsgBar How To make it Gradient

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42087
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: MsgBar How To make it Gradient

Postby ukoenig » Sat Apr 14, 2012 8: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.

Image

Image

using a repainted < blustone.bmp >

Image

The used BMP's :

Image

Image

Image

Best Regards
Uwe :lol:
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Otto and 108 guests