transparent say

transparent say

Postby Silvio » Thu Mar 12, 2009 5: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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: transparent say

Postby Daniel Garcia-Gil » Thu Mar 12, 2009 5:47 pm

Hello silvio

please check

viewtopic.php?p=76497#p76497
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: transparent say

Postby Silvio » Fri Mar 13, 2009 1: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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: transparent say

Postby Silvio » Fri Mar 13, 2009 2: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

Image
Best Regards, Saludos

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

Re: transparent say

Postby Daniel Garcia-Gil » Fri Mar 13, 2009 3: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

Image
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: transparent say

Postby Silvio » Fri Mar 13, 2009 9:04 am

why on Rpreview I can see a text on buttonbar 2007 no errors ?
Best Regards, Saludos

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

Re: transparent say

Postby byte-one » Fri Mar 13, 2009 9:13 am

Try FixSays( ::oBar:hWnd ) as in rpreview!
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: transparent say

Postby Silvio » Fri Mar 13, 2009 9: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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: transparent say

Postby Silvio » Fri Mar 13, 2009 9:23 am

byte-one wrote:Try FixSays( ::oBar:hWnd ) as in rpreview!


fixsay not run ok
Best Regards, Saludos

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

Re: transparent say

Postby mmercado » Fri Mar 13, 2009 5:51 pm

Hi Silvio:

With included TSButton.ch try this:

Code: Select all  Expand view
  @ 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
User avatar
mmercado
 
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México


Return to FiveWin for Harbour/xHarbour

Who is online

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