FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour transparent say
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM

transparent say

Posted: Thu Mar 12, 2009 05:15 PM

DEFINE BUTTONBAR ::oBar _3D SIZE 44, 46 OF ::oWndMain 2007 //36, 40

@ 7, 285 SAY ::oMsg PROMPT "TEST TEST TEST" ;
SIZE 150, 15 PIXEL OF ::oBar FONT ::oFont
::oMsg:lTransparent = .T.

THE say is not transparent

ANY suggestion?

Best Regards, Saludos



Falconi Silvio
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM

Re: transparent say

Posted: Thu Mar 12, 2009 05:47 PM

Hello silvio

please check

viewtopic.php?p=76497#p76497

Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM

Re: transparent say

Posted: Fri Mar 13, 2009 01:02 AM

Daniel
I have the fwh include and source 8.11 I not have ladjust
I try all modifies you write on that post
I create the exe but not open the exe
the exe is in memory of windows xp but not show anything

Best Regards, Saludos



Falconi Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM

Re: transparent say

Posted: Fri Mar 13, 2009 02:10 AM
Daniel not run on buttonbar

@ 7, 285 SAY ::oMsg PROMPT "RIVAMANIA PRO 1.00" ;
SIZE 150, 15 PIXEL OF ::oBar FONT ::oFont TRANSPARENT

Best Regards, Saludos



Falconi Silvio
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM

Re: transparent say

Posted: Fri Mar 13, 2009 03:23 AM
the clausule transparent affect on brush
The say is brused with buttonbar's brush

it is your case....

now, the buttonbar dont have dialog/window feature

it's is a little trick
you need brush the buttonbar with same gradient color after use say with same buttonbar's height and transparent clausule

example
@ 0,100 say oSay Prompt CRLF+CRLF+"Test TRANSPARENT TSAY ON BUTTONBAR" of ::oBar size 400,55 pixel TRANSPARENT

Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM

Re: transparent say

Posted: Fri Mar 13, 2009 09:04 AM

why on Rpreview I can see a text on buttonbar 2007 no errors ?

Best Regards, Saludos



Falconi Silvio
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM

Re: transparent say

Posted: Fri Mar 13, 2009 09:13 AM

Try FixSays( ::oBar:hWnd ) as in rpreview!

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM

Re: transparent say

Posted: Fri Mar 13, 2009 09:23 AM

I found this solution (it run ok) :

DEFINE FONT oFnt NAME "MS Sans Serif" SIZE 0,-24

DEFINE BUTTONBAR oBar OF oWnd SIZE 60, 60 2007

oBar:bPainted = { ||;
DrawText2(oBar:hDC, oFnt:hFont, 1, "Testing on ButtonBar 2007 Office look" ,;
0, 400 , 500, 500, CLR_WHITE ) }

.....

FUNCTION DrawText2( hDC, hFont, nBkMode, cText, nTop, nLeft, nWidth, nHeight,color )
LOCAL hFontOld:= SelectObject( hDC, hFont )
LOCAL nBkOld := SetBkMode( hDC, nBkMode )
SetTextColor( hDC, color )
DrawText( hDC, cText, { nTop, nLeft, nTop+nWidth, nLeft+nHeight } )
SelectObject( hDC, hFontOld )
SetBkMode( hDC, nBkOld )
RETURN( NIL )

Best Regards, Saludos



Falconi Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM

Re: transparent say

Posted: Fri Mar 13, 2009 09:23 AM
byte-one wrote:Try FixSays( ::hWnd ) as in rpreview!


fixsay not run ok
Best Regards, Saludos



Falconi Silvio
Posts: 782
Joined: Wed Dec 19, 2007 07:50 AM

Re: transparent say

Posted: Fri Mar 13, 2009 05:51 PM
Hi Silvio:

With included TSButton.ch try this:

Code (fw): Select all Collapse
   @ 20, 750 STSAY "Testing on ButtonBar 2007 Office look" OF oBar ;
             COLOR CLR_WHITE SIZE 300, 22 PIXEL
Regards.

Manuel Mercado
manuelmercado at prodigy dot net dot mx

Continue the discussion