FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour To Antonio
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
To Antonio
Posted: Mon Oct 27, 2008 11:49 PM

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
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
To Antonio
Posted: Mon Oct 27, 2008 11:54 PM

where i need input it antonio ?

Posts: 603
Joined: Sun May 04, 2008 08:44 PM
hey
Posted: Tue Oct 28, 2008 12:13 AM
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. :-)
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
hm
Posted: Tue Oct 28, 2008 05:32 AM

do u can help me with this :?:

thanks

Posts: 603
Joined: Sun May 04, 2008 08:44 PM
helpppppppp
Posted: Tue Oct 28, 2008 01:48 PM

HElpppppppp me

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
To Antonio
Posted: Tue Oct 28, 2008 05:50 PM
#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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
To Antonio
Posted: Tue Oct 28, 2008 06:44 PM
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

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


but no show inside of windows OWND

only test more no show :-)
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
To Antonio
Posted: Tue Oct 28, 2008 07:30 PM
You are missing:

ownd:hDC
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
x
Posted: Tue Oct 28, 2008 08:46 PM
Antonio, i did it more no how imagem in ownd

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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
To Antonio
Posted: Tue Oct 28, 2008 10:43 PM
Lailton,

If you want to paint a bitmap on the window, then do it this way:
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
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
perfect
Posted: Tue Oct 28, 2008 11:47 PM

Perfect Antonio =)

Thanks so much.

Continue the discussion