Olaf Doschke
Programmer
I have a working coloring scheme using DynamicBackColor of Grid columns, which works, but the dyanmicbackcolor is overridden by highlighting the active row when I set Grid.AllowCellSelection = .F.
A right-click on a cell increments a numeric field which in turn changes the backcolor, as that number references a color in the dynamicbackcolor expression. All that works, but the color change can only be seen when I move to another row, that's what makes this highlighting unfortunate.
I have highlight=.f., highlightrow=.f., and I read in "What's new in 8" that it's the AlllowCellSelection=.F. which turns on this highlighting and I can confirm setting that .t. solves the coloring problem, but I get the text cursor into a field that's not intended to be modified.
To solve that I could set the textbox to readony, but when you do that and then type text while such a grid cell has focus you get a sound, I also don't wnat the text cursor to show there. If I prevent the cell to get focus at all with RETURN .F. from When event, that's fine again, but then I can't cuase a change of the numeric field and the backcolor with a right-click as the RighClick() event isn't triggered in that case.
This all is a cascade of problems to which I don't see a nice simple solution, but parhaps one of you?
In short what I need is a display only grid that when I click on a cell should change backcolor without a textcursor appearing.
Bye, Olaf
Olaf Doschke Software Engineering
A right-click on a cell increments a numeric field which in turn changes the backcolor, as that number references a color in the dynamicbackcolor expression. All that works, but the color change can only be seen when I move to another row, that's what makes this highlighting unfortunate.
I have highlight=.f., highlightrow=.f., and I read in "What's new in 8" that it's the AlllowCellSelection=.F. which turns on this highlighting and I can confirm setting that .t. solves the coloring problem, but I get the text cursor into a field that's not intended to be modified.
To solve that I could set the textbox to readony, but when you do that and then type text while such a grid cell has focus you get a sound, I also don't wnat the text cursor to show there. If I prevent the cell to get focus at all with RETURN .F. from When event, that's fine again, but then I can't cuase a change of the numeric field and the backcolor with a right-click as the RighClick() event isn't triggered in that case.
This all is a cascade of problems to which I don't see a nice simple solution, but parhaps one of you?
In short what I need is a display only grid that when I click on a cell should change backcolor without a textcursor appearing.
Bye, Olaf
Olaf Doschke Software Engineering