TBitmap new (to Daniel) :cry:

TBitmap new (to Daniel) :cry:

Postby lailton.webmaster » Thu Oct 01, 2009 10:32 pm

Daniel,

you can help solve this.

please download this.
http://www.redstarsoft.com.br/sample2.rar

thanks.

note that brush stay of background of bitmap, more no stay using pambmpdraw
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: TBitmap new (to Daniel) :cry:

Postby Silvio » Fri Oct 02, 2009 8:41 am

do you try with brush NULL ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: TBitmap new (to Daniel) :cry:

Postby lailton.webmaster » Fri Oct 02, 2009 6:04 pm

How make this ?

you can make a sample ?

i tired akready, without result.
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: TBitmap new (to Daniel) :cry:

Postby Silvio » Fri Oct 02, 2009 7:49 pm

an Idea :

LOCAL oBrush := TBrush():New("NULL",,,)


@ 320, 15 BITMAP oApp:oLogoBmp FILENAME "LOGOSYST.BMP" NOBORDER PIXEL OF oApp():oDlg
oApp:oLogoBmp:nClrPane := GetSysColor(3)
oApp:oLogoBmp:lTransparent := .t.
oApp:oLogoBmp:oBrush := oBrush
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: TBitmap new (to Daniel) :cry:

Postby lailton.webmaster » Fri Oct 02, 2009 11:23 pm

thanks i will try.

and back talking about my result.

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

Re: TBitmap new (to Daniel) :cry:

Postby ukoenig » Fri Oct 02, 2009 11:50 pm

If You are a registered User of FWH-9.09, it might be a better Solution :

viewtopic.php?f=3&t=16911

Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: TBitmap new (to Daniel) :cry:

Postby lailton.webmaster » Sat Oct 03, 2009 2:42 am

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

Re: TBitmap new (to Daniel) :cry:

Postby lailton.webmaster » Sat Oct 03, 2009 2:15 pm

Silvio,

it´s no work to me.
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: TBitmap new (to Daniel) :cry:

Postby Silvio » Sat Oct 03, 2009 3:02 pm

here run ok
Image
#include "FiveWin.ch"
#include "ribbon.ch"

function Main()

local oWnd
Local oBmp ,oImage


DEFINE WINDOW oWnd COLOR CLR_WHITE, CLR_WHITE

DEFINE BITMAP oImage FILENAME "caixa.bmp"


@ 116,117 RBBTN oBmp OF oWnd BITMAP "button.bmp" ;
SIZE 15, 15 PROMPT "" TOP TRANSPARENT ;
ACTION MsgAlert( "Red Button clicked", "Attention" )




oWnd:bPainted := {|hDc|ABPaint( hdc, 110,107, oImage:hBitmap, 220 )}
ACTIVATE WINDOW oWnd
return nil
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: TBitmap new (to Daniel) :cry:

Postby lailton.webmaster » Sat Oct 03, 2009 9:18 pm

why #include "ribbon.ch" ?
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: TBitmap new (to Daniel) :cry:

Postby Silvio » Sun Oct 04, 2009 8:17 am

I use the class RBBTN and the command is on this include
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: TBitmap new (to Daniel) :cry:

Postby lailton.webmaster » Sun Oct 04, 2009 5:15 pm

My version of fivewin dont have this yet :S
fwh902
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: TBitmap new (to Daniel) :cry:

Postby Silvio » Sun Oct 04, 2009 5:21 pm

SORRY
YOU CAN USE NORMAL BTNBMP CLASS
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: TBitmap new (to Daniel) :cry:

Postby lailton.webmaster » Mon Oct 05, 2009 6:56 pm

Silvio, thanks more can you privide a sample
using BTNBMP

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


Return to FiveWin for Harbour/xHarbour

Who is online

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