To Antonio

To Antonio

Postby lailton.webmaster » Mon Oct 27, 2008 3:04 am

=)
Last edited by lailton.webmaster on Mon Oct 27, 2008 5:48 pm, edited 1 time in total.
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

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

:)

Postby lailton.webmaster » Mon Oct 27, 2008 3: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
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

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

hum

Postby lailton.webmaster » Mon Oct 27, 2008 5:17 pm

Sure Antonio

i try here and all right

thanks
Last edited by lailton.webmaster on Mon Oct 27, 2008 5:48 pm, edited 1 time in total.
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

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

Postby Antonio Linares » Mon Oct 27, 2008 5:46 pm

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42071
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

:)

Postby lailton.webmaster » Mon Oct 27, 2008 5:49 pm

Perfect Antonioooooooooooooo

thanks so much...
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

me new

Postby lailton.webmaster » Mon Oct 27, 2008 7:41 pm

ImageImage

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.
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

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

help

Postby lailton.webmaster » Mon Oct 27, 2008 9:07 pm

Image

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

gracias
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

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

hu

Postby lailton.webmaster » Mon Oct 27, 2008 10:59 pm

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

Antonio es isto que necessito a fazer
I wanna make it that to be in link up
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

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

hm

Postby lailton.webmaster » Mon Oct 27, 2008 11:46 pm

i wanna insert other bitmap only menssagem understand ??
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 49 guests