Ayuda con color en celdas del grid / help with cell color of grid

HMG en Español

Moderator: Rathinagiri

Post Reply
martingz
Posts: 401
Joined: Wed Nov 18, 2009 11:14 pm
Location: Mexico

Ayuda con color en celdas del grid / help with cell color of grid

Post by martingz »

Hace tiempo desarrolle una aplicacion que me daba el numero de faltas,permisos, etc de personal y dependiendo de estas era el color en que ponia la celda del grid

La ultima compilacion fue con HMG 331 y estaba funcionando bien, instale la 3.4.2 y la 3.4.3 y me da un error es esta rutina, es posible todavia colorear una sola celda del grid en estas versiones, esto es para empezar a investigar , si no pues ver como hacer lo que necesito

dejo una imagen de lo que quiero hacer

saludos


google trad
While it is developing an application that gave me the number of faults, permits, etc, staff and depending on these was the color which placed the cell of the grid

The last compilation was with HMG 331 and was working well, install the 3.4.2 and 3.4.3 and gives me an error is this routine, it is still possible to color a single cell of the grid in these versions, this is to start investigating , if not then see to do what I need

I leave a picture of what I want to do
permisos.jpg
permisos.jpg (118.55 KiB) Viewed 1858 times
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: Ayuda con color en celdas del grid / help with cell color of grid

Post by andyglezl »

Hola martingz

Y el ejemplo para reproducir el error ??? Es difícil adivinar con solo ver la imagen.
Andrés González López
Desde Guadalajara, Jalisco. México.
martingz
Posts: 401
Joined: Wed Nov 18, 2009 11:14 pm
Location: Mexico

Re: Ayuda con color en celdas del grid / help with cell color of grid

Post by martingz »

Andrtes preguntaba por que cambiaron gran parte del codigo del grid
antes cambiaba el color de la celda de esta manera

in es el id del control
r es la fila
t columna


_HMG_SYSDATA [40] [in] [7] [r] [t]:=acolor
_HMG_SYSDATA [40] [in] [8] [r] [t]:=afontcolor


y si compilo con el 3.4.2 o el 3.4.3 me da error en esta linea y este es el error

Date:09/11/2016 Time: 17:17:11
Error BASE/1068 Argument error: array access

estoy revisando el codigo del grid y vi que cambio, lo que pregunto es si se puede aun, si no para no invertir tanto tiempo y buscar otra solucion

_HMG_SYSDATA [ 40 ] [ K ] [ 3 ] := dynamicbackcolor
_HMG_SYSDATA [ 40 ] [ K ] [ 4 ] := dynamicforecolor

asi esta ahorita, pero no me acepta ni r ni t, las quito y no me da error, pero no colorea


saludos
Post Reply