TheSwamp

Code Red => Visual DCL Programming => AutoLISP (Vanilla / Visual) => OpenDCL => Topic started by: paul_s on August 24, 2009, 02:20:03 PM

Title: Dcl_Grid_SetItemStyle
Post by: paul_s on August 24, 2009, 02:20:03 PM
Hello,

Its been a while since I downloaded opendcl. I notice "Dcl_Grid_SetItemStyle" is
now "dcl_Grid_SetCellStyle ".

syntax:
(dcl_Grid_SetCellStyle LayerX_LayerAll_Grid1 Row [as Long] Column [as Long] Style [as Integer])

For style I use 30 (Autocad colors)...All my existing odcl projects that shows the colors
of drawing layers has weird colors. Is this a bug?
Title: Re: Dcl_Grid_SetItemStyle
Post by: owenwengerd on August 24, 2009, 02:29:29 PM
Can you be a little bit more descriptive? What exactly do you mean by "weird colors"?
Title: Re: Dcl_Grid_SetItemStyle
Post by: paul_s on August 24, 2009, 02:35:12 PM
Hi Owen,

Actually, to be more specific it has only three colors..black, blue  and dark blue.
Title: Re: Dcl_Grid_SetItemStyle
Post by: owenwengerd on August 25, 2009, 09:30:41 AM
It sounds to me like the problem is unrelated to the cell style. Check your code that sets the colors, or post a simple sample project that demonstrates the problem so I can have a look at it.
Title: Re: Dcl_Grid_SetItemStyle
Post by: paul_s on August 25, 2009, 01:43:18 PM
Hi Owen,

Here is a sample project. It will just show the layers in drawing & their colors.
Title: Re: Dcl_Grid_SetItemStyle
Post by: owenwengerd on August 25, 2009, 05:30:29 PM
The code expects the cell text to be a true color in the form "<red>, <green>, <blue>".  I've now added some code to the next build to interpret cell text with no comma as a simple AutoCAD color, so the next build should work as you expect.
Title: Re: Dcl_Grid_SetItemStyle
Post by: Robert_s on August 25, 2009, 06:03:12 PM
Thank you Owen. Thank for all your work!