author=dayange link=topic=134.msg545#msg545 date=1200394512 wrote:
Thanks Fred, and thanks BazzaCAD.
I have gotten a row's list by (dcl_Grid_GetRowItems).
Moreover, My quesstions are:
1. how to set default value for AcadColor cell in grid?
I set "Red" or other integer number by dcl_Grid_AddString, but the control cannot
display the correct color. What should I do?
2. When I add a ComboBox(type is Colors) in Form, without adding any code, the list program
will shutdown my Autocad 2006 at runtime--No alert, no message. What happened? How to solve it?
#1 Try this:
(dcl_Grid_SetItemStyle Grid_Dcl-1_grid1
nRow [as Integer]
nCol [as Integer]
nStyle [as Integer]
{Optional} nData1 [as Integer]
{Optional} nData2 [as Integer]
{Optional} sString [as Integer])
See the Intelligent Help fro more info...
Note:The style change only governs the behavior of the cell and what happens when the user clicks on the cell.
For example if you set the style 33 - Linetype Cell, the current selection for the linetype must be correctly set in the dcl_Grid_AddString or dcl_Grid_AddRow functions. The item may not be changed to correctly display one of the listed items.
#2, Sound's like a bug, and when I just tried to load the Misc demo in 2006 it did crash (ran fine 2008). Bug reported:
{2}