In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Change background color of a TArray Cell

Xailer English public forum
Responder
julianocf
Mensajes: 15
Registrado: Jue Jun 02, 2011 9:26 pm

Change background color of a TArray Cell

Mensaje por julianocf »

Hello,
I need to know a way to change the color of individuals cells in a TArrayBrowse.
e.g.: I need to change the background color of the line 1, 3 and 5
of the column in the TArrayBrowse...
Anyone knows a way that I can do that?
Thanks,
Juliano
Saludos!
Juliano Canova
Martin Del Angel
Mensajes: 360
Registrado: Mié Dic 03, 2008 5:05 am

Change background color of a TArray Cell

Mensaje por Martin Del Angel »

On 7/19/2011 2:14 PM, Juliano wrote:
> Hello,
>
> I need to know a way to change the color of individuals
> cells in a TArrayBrowse.
>
> e.g.: I need to change the background color of the line 1,
> 3 and 5 of the column in the TArrayBrowse...
>
> Anyone knows a way that I can do that?
>
> Thanks,
> Juliano
Juliano:
Try with this :
WITH OBJECT ::oBrowInvoices
:nBorderStyle := bvBUMP
:nRowDividerStyle := blDARKGRAY
:nColDividerStyle := blDARKGRAY
:nMarqueeStyle := bmHIGHLROWRC
:nHeaderHeight := 40
:nClrAltPane := cl3DLight
:nClrSelFocusPane := clHighlight
:nClrSelPane := clHighlight
:nClrSelText := clWhite
END
Regards...
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9443
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Change background color of a TArray Cell

Mensaje por ignacio »

julianocf escribió el mar, 19 julio 2011 21:14Hello,
I need to know a way to change the color of individuals cells in a TArrayBrowse.
e.g.: I need to change the background color of the line 1, 3 and 5
of the column in the TArrayBrowse...
Anyone knows a way that I can do that?
Thanks,
Juliano
Check the event TBrwColumn:OnDrawCell
Regards,
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
julianocf
Mensajes: 15
Registrado: Jue Jun 02, 2011 9:26 pm

Change background color of a TArray Cell

Mensaje por julianocf »

Thank you Martin and Ignacio, i've managed to solve the problem. =)
Saludos!
Juliano Canova
Responder