OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Fred Tomke on August 16, 2007, 07:55:04 AM

Title: FlexGrid SetColor
Post by: Fred Tomke on August 16, 2007, 07:55:04 AM
Hello,

I've noticed that there are new methods for accessing colors in grid control. I'm not very familiar with FlexGrid so my question is, if there's somebody who can tell me if it is possible to define different backcolors for different cells in one grid control. I didn't find something in the samples folder.

Method flexgrid_setcolor as Integer

Regards, Fred
Title: Re: FlexGrid SetColor
Post by: owenwengerd on August 16, 2007, 08:46:07 AM
Quote from: Fred Tomke on August 16, 2007, 07:55:04 AM
... tell me if it is possible to define different backcolors for different cells in one grid control.

I'm not very familiar with these either, but I believe David Robison added those "special" methods only for the ComponentOne grid control that some are using. I do think you can change background colors of individual cells in the MS FlexGrid control using the "normal" color functions, but I don't know how offhand.
Title: Re: FlexGrid SetColor
Post by: Fred Tomke on August 16, 2007, 11:59:21 AM
Thanks, Owen,

just for my knowledge: who added the FlexGrid SetColor to the OpenDCL grid control and what advantages has it?
I mean: Does the OpenDCL grid control use the installed flex grid control?

Regards, Fred
Title: Re: FlexGrid SetColor
Post by: owenwengerd on August 16, 2007, 02:43:15 PM
Quote from: Fred Tomke on August 16, 2007, 11:59:21 AM
just for my knowledge: who added the FlexGrid SetColor to the OpenDCL grid control and what advantages has it?
I mean: Does the OpenDCL grid control use the installed flex grid control?

I believe David Robinson added those functions.  OpenDCL does not use the MS FlexGrid, but both are based on the Windows ListView common control.
Title: Re: FlexGrid SetColor
Post by: jmaeding on August 17, 2007, 03:49:02 PM
I use the MS Flexgrid exclusivly, because you can select multiple rows.
I may be old in my info, but I think the built-in grid does not.
The MS grid also has a lot more props and options but is missing some cool functionality of the ODCL one.
In particular, you must handle the editing actions yourself, like the VB people do by showing and moving a textbox into place to fake the edit capability.
It works great but takes a bit to figure out.
Title: Re: FlexGrid SetColor
Post by: Fred Tomke on September 04, 2007, 11:13:34 PM
Thanks for your answer.
Until now I had no need to select multiple rows.
What I want to do is to make a raster of planting. In each cell I want to place a different plant from a selection list.
Select a plant in a list and click in several grid cell items to place the plant. To make the changes visible the flower color shall be shown as CellBackColor.
There's a little hope that this will be possible after rewriting grid control.

Fred