To Antonio

User avatar
Antonio Linares
Site Admin
Posts: 42553
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 80 times
Contact:

Post by Antonio Linares »

Lailton,

I am not quite sure about what you want to do, but you can try:

oMsgBar:bPainted = { | hDC | DrawBitmap( hDC, ... ) }
regards, saludos

Antonio Linares
www.fivetechsoft.com
lailton.webmaster
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Post by lailton.webmaster »

where i need input it antonio ?
lailton.webmaster
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

hey

Post by lailton.webmaster »

Antonio estoy enviando lo arquivo

http://www.redstarsoft.net/files/barra.bmp
Isto es lo que quero en resultado final

http://www.redstarsoft.net/files/teste.zip
isto es como estas ate ahora.

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

hm

Post by lailton.webmaster »

do u can help me with this :?:

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

helpppppppp

Post by lailton.webmaster »

HElpppppppp me
User avatar
Antonio Linares
Site Admin
Posts: 42553
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 80 times
Contact:

Post by Antonio Linares »

Code: Select all | Expand

#include "FiveWin.ch"

function Main()

   local oBmp, oWnd, oBar

   DEFINE BITMAP oBmp FILENAME "barra.bmp"

   DEFINE WINDOW oWnd

   SET MSGBAR OF oWnd TO "" 2007
   
   oWnd:oMsgbar:bPainted = { | hDC | DrawBitmap( hDC, oBmp:hBitmap, 1,  5 ),;
                                     DrawBitmap( hDC, oBmp:hBitmap, 1, 85 ) }

   ACTIVATE WINDOW oWnd
   
   oBmp:End()

return nil

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
lailton.webmaster
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Post by lailton.webmaster »

i need that this bitmap that u show in your picture UP
stay only of background of ::cMsg of messagebar

and other thing,,

i m trying use it

Code: Select all | Expand

DrawBitmap(ownd,  LoadBitmap( GetResources(), "FUNDO" ), 1,  5 ) 


but no show inside of windows OWND

only test more no show :)
User avatar
Antonio Linares
Site Admin
Posts: 42553
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 80 times
Contact:

Post by Antonio Linares »

You are missing:

ownd:hDC
regards, saludos

Antonio Linares
www.fivetechsoft.com
lailton.webmaster
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

x

Post by lailton.webmaster »

Antonio, i did it more no how imagem in ownd

Code: Select all | Expand

DEFINE BITMAP oBmp RESOURCE "FUNDOTEXTO" 
DEFINE WINDOW oWnd TITLE "FiveWin"  MENU BuildMenu()
DrawBitmap(ownd:hDC,  oBmp, 10,  10, 100, 100 )
ownd:oMsgbar:clockon()
ownd:oMsgbar:dateon()
ACTIVATE WINDOW oWnd
User avatar
Antonio Linares
Site Admin
Posts: 42553
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 80 times
Contact:

Post by Antonio Linares »

Lailton,

If you want to paint a bitmap on the window, then do it this way:

Code: Select all | Expand

DEFINE BITMAP oBmp RESOURCE "FUNDOTEXTO" 

DEFINE WINDOW oWnd TITLE "FiveWin"  MENU BuildMenu()

ACTIVATE WINDOW oWnd ;
   ON PAINT DrawBitmap(ownd:hDC,  oBmp:hBitmap, 10,  10, 100, 100 )
regards, saludos

Antonio Linares
www.fivetechsoft.com
lailton.webmaster
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

perfect

Post by lailton.webmaster »

Perfect Antonio =)

Thanks so much.
Post Reply