Page 1 of 1
Grid Cell Colors
Posted: Sun Nov 20, 2016 9:16 pm
by Jim
When a cell in a Grid is brought into focus (either by clicking on it or hovering over it) the entire row is grayed. Does anyone know how to turn off this feature so that ONLY the clicked on cell is high lighted? I would also like to be able to dynamically highlight both the the entire ROW and entire COLUMN while leaving the rest of the grid unchanged.
Re: Grid Cell Colors
Posted: Sun Nov 20, 2016 9:35 pm
by mol
Hi!
try with this sample code (you need to change colors to your dependencies):
Code: Select all
CellNavigationColor ( _SELECTEDROW_FORECOLOR, {255,255,255} )
CellNavigationColor ( _SELECTEDROW_BACKCOLOR, {0,196,255} )
CellNavigationColor ( _SELECTEDCELL_BACKCOLOR, {0,0,128} )
CellNavigationColor ( _SELECTEDROW_DISPLAYCOLOR, .t. )
You must set grid to cell navigation
Re: Grid Cell Colors
Posted: Mon Nov 21, 2016 3:20 am
by Jim
No! I want to do two things.
The first is to turn off any color change to the row, just changing the color of the single cell in focus or clicked on. I know the CellNavigationColor() can change the row color. But is there a way to turn this feature completely off when I click on a cell? I could fake it by using the CellNavigationColor() function to change the standard default color the row is turned to when a cell is clicked but all my cells in a given row are not the same color when the program starts.
The second thing is to have the ability to change the color not only in the row but also in the entire column of the cell clicked on. I think this would be easily done if I could disable the row color change first.
If I can't find a way to disable the color change in the row when the cell is clicked, then I will have to completely rethink my approach to my program.
Re: Grid Cell Colors
Posted: Mon Nov 21, 2016 8:54 am
by serge_girard
Hi Jim,
Welcome from Belgium!
Serge
Re: Grid Cell Colors
Posted: Wed Dec 07, 2016 3:24 pm
by andyglezl
Hola, QuizĂ esto te ayude...
----------------------------------
Hi, Maybe this will help ...
\HMG\3.4.3\SAMPLES\Controls\Grid\Grid_Dynamic_Font
Re: Grid Cell Colors
Posted: Wed Dec 07, 2016 4:43 pm
by serge_girard
Anybody can help new-comer Jim with his question?
Serge
Re: Grid Cell Colors
Posted: Thu Dec 08, 2016 3:32 am
by andyglezl
No te sirvio el ejemplo anterior ???
----------------------------------------------
Did not serve you the previous example ???
puedes poner un ejemplo de como lo estas haciendo...
---------------------------------------------------------------------------------
you can give an example of how you are doing ...