FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour To Antonio
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
To Antonio
Posted: Mon Oct 27, 2008 03:04 AM

=)

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
To Antonio
Posted: Mon Oct 27, 2008 08:51 AM

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" )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
:)
Posted: Mon Oct 27, 2008 03:26 PM

i ll try

only a question, where is salved this bitmap of style 2007 ?
because i dont see nothing in fivewin directory

Thanks Antonio

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
To Antonio
Posted: Mon Oct 27, 2008 05:08 PM

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.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
hum
Posted: Mon Oct 27, 2008 05:17 PM

Sure Antonio

i try here and all right

thanks

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
To Antonio
Posted: Mon Oct 27, 2008 05:31 PM

Lailton,

In Class TMsgItem Method Paint(), change or remove this:

  WndBoxIn( hDC, 2, nLeft - 4, ::oMsgBar:nHeight - 2, nLeft - 3 )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
To Antonio
Posted: Mon Oct 27, 2008 05:46 PM

DrawBitmap( hDC, hBmp, 2, nLeft - 4 )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
:)
Posted: Mon Oct 27, 2008 05:49 PM

Perfect Antonioooooooooooooo

thanks so much...

Posts: 603
Joined: Sun May 04, 2008 08:44 PM
me new
Posted: Mon Oct 27, 2008 07:41 PM


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.
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
To Antonio
Posted: Mon Oct 27, 2008 08:53 PM

Lailton,

I don't understand what you mean.

Can you "paint" it and show it here ? :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
help
Posted: Mon Oct 27, 2008 09:07 PM


Esttos necessito ahora inserir una imagem en lo fundo
das mensagem, olhe la imagem del link acima.

gracias
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
To Antonio
Posted: Mon Oct 27, 2008 09:09 PM

En tu imagen se ve un degradado, no se ve un bitmap.

A que bitmap te refieres ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
hu
Posted: Mon Oct 27, 2008 10:59 PM

http://www.redstarsoft.net/files/antonio.bmp

Antonio es isto que necessito a fazer
I wanna make it that to be in link up
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
To Antonio
Posted: Mon Oct 27, 2008 11:25 PM

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.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
hm
Posted: Mon Oct 27, 2008 11:46 PM

i wanna insert other bitmap only menssagem understand ??