Page 1 of 1

Brush en TDockPnel

PostPosted: Thu Mar 18, 2021 11:21 pm
by leandro
Cristóbal buenas tardes, que pena molestar.

Pero quería saber si se puede usar una imagen "brush" como fondo en un panel de tu clase.

De antemano gracias.

Re: Brush en TDockPnel

PostPosted: Fri Mar 19, 2021 1:55 pm
by cnavarro
Leandro, no es molestia. Es muy sencillo

Code: Select all  Expand view

      :SetCtrlsPnel( { | o, nT, nL, nH, nW, nR | o:SetBrush( oBrush ), ;
                                                                    XBrowsePnel( o, cArt, nR + 110, nL, nH - 158, nW ) } )

      :Activate()
 

Re: Brush en TDockPnel

PostPosted: Tue Mar 23, 2021 4:53 pm
by leandro
Amigo, muchas gracias por responder.

Funciona de maravilla, era lo que necesitaba.

Pero ahora me surge otra pregunta :D

Puedo también emular de alguna manera el ON INIT de un dialogo, en un TDockPnel?

De antemano gracias.

Re: Brush en TDockPnel

PostPosted: Tue Mar 23, 2021 5:05 pm
by cnavarro
Leandro, prueba con esto a ver

Code: Select all  Expand view

      :SetCtrlsPnel( { | o, nT, nL, nH, nW, nR | o:bInit := { || MyFunction() }, ;
                                                                    XBrowsePnel( o, cArt, nR + 110, nL, nH - 158, nW ) } )

      :Activate()