Transparencia en xbrowse

Post Reply
User avatar
carlos vargas
Posts: 1421
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Transparencia en xbrowse

Post by carlos vargas »

Estimados, he activado la transparencia en xbrowse, hay alguna forma de hace un grado opacidad,
con tpanel hay una data

::oPanel1:nOpacity := 240
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
User avatar
Armando
Posts: 2479
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México
Contact:

Re: Transparencia en xbrowse

Post by Armando »

Carlos:

Te sirve hacer la opacidad al DIALOG?.

Code: Select all

oDlg:nOpacity    := 250 // Entre mas alto el valor es menos transparente (Más opaco)
 
Saludos
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
armando.lagunas
Posts: 340
Joined: Mon Oct 05, 2009 3:35 pm
Location: Curico-Chile
Contact:

Re: Transparencia en xbrowse

Post by armando.lagunas »

Para versiones antiguas.

como se usa :

Code: Select all


...
ACTIVATE DIALOG xDlg NOMODAL ON INIT  SetTransparent( xDlg, 230 ) // rango 0 a 255      0 = invisible 255= sin transparencia


...

//----------------------------------------------------------------------

FUNCTION SetTransparent( oDlg, nGrado )

   SetWindowLong( oDlg:hWnd, GWL_EXSTYLE, nOr( GetWindowLong( oDlg:hWnd, GWL_EXSTYLE ), AW_BLEND ) )
   SetLayeredWindowAttributes( oDlg:hWnd, 0, nGrado, 2 )

 RETURN Nil

//----------------------------------------------------------------------


Saludos


 
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Transparencia en xbrowse

Post by nageswaragunupudi »

armando.lagunas wrote:Para versiones antiguas.

como se usa :

Code: Select all


...
ACTIVATE DIALOG xDlg NOMODAL ON INIT  SetTransparent( xDlg, 230 ) // rango 0 a 255      0 = invisible 255= sin transparencia


...

//----------------------------------------------------------------------

FUNCTION SetTransparent( oDlg, nGrado )

   SetWindowLong( oDlg:hWnd, GWL_EXSTYLE, nOr( GetWindowLong( oDlg:hWnd, GWL_EXSTYLE ), AW_BLEND ) )
   SetLayeredWindowAttributes( oDlg:hWnd, 0, nGrado, 2 )

 RETURN Nil

//----------------------------------------------------------------------


Saludos


 
xDlg:nOpacity := 230
does the same thing and requires just one line of code, instead of the above code.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Transparencia en xbrowse

Post by nageswaragunupudi »

carlos vargas wrote:Estimados, he activado la transparencia en xbrowse, hay alguna forma de hace un grado opacidad,
con tpanel hay una data

::oPanel1:nOpacity := 240
We provided nOpacity feature to TPanel but not to XBrowse.
Regards

G. N. Rao.
Hyderabad, India
Post Reply