Using ColorBook color in grid cells using style 31

Started by Fred Tomke, March 17, 2010, 08:39:54 AM

Previous topic - Next topic

Fred Tomke

Hello,

I do remember that we already discussed this  but I cannot find it anymore: If I select a new color using the color selector from a colorbook, the selected color is shown in the preview of the grid cell. Do I set the CellText ColorBookName$ColorName the preview of the grid cell stays black. What do I have to do that the real color of the colorbook color is shown in the preview of the cell? Maybe I can give something like an OleColor value to show in the preview. I hope you can see it from the video, what I mean...

Is it correct that the event BeginLabelEdit is only fired after the color selector was finished by OK?

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

The code displays a color book color based on the cell text if the cell image is -2, so for your preview, save the cell image as well as the cell text. The timing of BeginLabelEdit depends on the EventInvoke property.
Owen Wengerd (Outside The Box) / ManuSoft

Fred Tomke

Owen, thanks for your reply. That is really bad: in the German help file for SetCellImages I have already described that case. Shame on me that I've forgotten.

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]