OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Fred Tomke on March 17, 2010, 08:39:54 AM

Title: Using ColorBook color in grid cells using style 31
Post by: Fred Tomke on March 17, 2010, 08:39:54 AM
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
Title: Re: Using ColorBook color in grid cells using style 31
Post by: owenwengerd on March 17, 2010, 10:12:02 AM
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.
Title: Re: Using ColorBook color in grid cells using style 31
Post by: Fred Tomke on March 17, 2010, 11:51:13 AM
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