FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Es posible :Transparent en MdiChild ?
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Es posible :Transparent en MdiChild ?
Posted: Wed Jan 28, 2009 07:28 AM
Hola,

Es posible usar Transparent, usando MdiChild ?

// Testing TRANSPARENT clause on MDICHILD

#include "FiveWin.ch"

static oWnd

FUNCTION Main()

   DEFINE WINDOW oWnd MDI
   ACTIVATE WINDOW oWnd ON INIT TestChild()

RETU NIL

FUNCTION TestChild()

   LOCAL oChild, oBru, oSay

   DEFINE BRUSH oBru FILENAME ( "SPLASH.BMP" )

   DEFINE WINDOW oChild MDICHILD TITLE "Transparent Test" OF oWnd ;
          BRUSH oBru TRANSPARENT

      @ 10,10 SAY oSay PROMPT "Click here for PCAS Intranet  Manuals" ;
              PIXEL of oChild  COLOR "W+/W"

      oSay:lTransparent = .t.
      oSay:lWantClick   = .T.
      oSay:bLClicked    = { || SHELLEXECUTE( nil,"open",
"http://www.yahoo.com",0,0,1) }

   ACTIVATE WINDOW oChild

RETU NIL


Saludos.
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Es posible :Transparent en MdiChild ?
Posted: Fri Feb 13, 2009 11:33 AM

Carles,

La claúsula transparent esta diseñada para los diálogos, asi que no funcionará en una ventana mdichild.

Una solución sencilla es usar oWndChild:Say( nRow, nCol, cText, ... ) desde oWndChild:bPainted

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Es posible :Transparent en MdiChild ?
Posted: Fri Feb 13, 2009 11:34 AM

Carles,

Otra solución, más sencilla, es llamar a FixSays( oWndChild:hWnd ) :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion