Page 1 of 2
To Antonio
Posted: Mon Oct 27, 2008 3:04 am
by lailton.webmaster
=)
Posted: Mon Oct 27, 2008 8:51 am
by Antonio Linares
Lailton,
TMsgBar uses a bitmap to get painted, so in order to change its colors, you have to create your own MsgBar2007( ::hDC ) function that will return your desired hBmp.
Or simply replace this line:
hBmp = MsgBar2007( ::hDC )
with
hBmp = LoadBitmap( GetResources(), "myBMP" )
:)
Posted: Mon Oct 27, 2008 3:26 pm
by lailton.webmaster
i ll try
only a question, where is salved this bitmap of style 2007 ?
because i dont see nothing in fivewin directory
Thanks Antonio
Posted: Mon Oct 27, 2008 5:08 pm
by Antonio Linares
Lailton,
Its hardcoded in a C file as bytes.
We created a bitmap, then created a C file with its bytes. You can do it from the Borland Resources workshop.
hum
Posted: Mon Oct 27, 2008 5:17 pm
by lailton.webmaster
Sure Antonio
i try here and all right
thanks
Posted: Mon Oct 27, 2008 5:31 pm
by Antonio Linares
Lailton,
In Class TMsgItem Method Paint(), change or remove this:
WndBoxIn( hDC, 2, nLeft - 4, ::oMsgBar:nHeight - 2, nLeft - 3 )
Posted: Mon Oct 27, 2008 5:46 pm
by Antonio Linares
DrawBitmap( hDC, hBmp, 2, nLeft - 4 )
:)
Posted: Mon Oct 27, 2008 5:49 pm
by lailton.webmaster
Perfect Antonioooooooooooooo
thanks so much...
me new
Posted: Mon Oct 27, 2008 7:41 pm
by lailton.webmaster

Antonio
Separator message bar IS OK !
Background message bar IS OK !
now i need only more it to end, i need insert a bitmap in background
ctexto that look in image UP
thanks so much.
Posted: Mon Oct 27, 2008 8:53 pm
by Antonio Linares
Lailton,
I don't understand what you mean.
Can you "paint" it and show it here ?

help
Posted: Mon Oct 27, 2008 9:07 pm
by lailton.webmaster
Esttos necessito ahora inserir una imagem en lo fundo
das mensagem, olhe la imagem del link acima.
gracias
Posted: Mon Oct 27, 2008 9:09 pm
by Antonio Linares
En tu imagen se ve un degradado, no se ve un bitmap.
A que bitmap te refieres ?
hu
Posted: Mon Oct 27, 2008 10:59 pm
by lailton.webmaster
http://www.redstarsoft.net/files/antonio.bmp
Antonio es isto que necessito a fazer
I wanna make it that to be in link up
Posted: Mon Oct 27, 2008 11:25 pm
by Antonio Linares
If you want to place another bitmap on top of the msgbar then you may use:
oMsgBar:bPainted = { | hDC | ... }
or modify Class TMsgBar source code.
hm
Posted: Mon Oct 27, 2008 11:46 pm
by lailton.webmaster
i wanna insert other bitmap only menssagem understand ??