OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: hvcrou on September 25, 2012, 04:14:34 PM

Title: Recuperar valor de uma celula com estilo
Post by: hvcrou on September 25, 2012, 04:14:34 PM
Hello

How do I retrieve the selected value of a cell of the grid with the following styles:

(dcl_Grid_SetCellStyle grdPadrao CLin 3 20)
(dcl_Grid_SetCellStyle grdPadrao CLin 5 33)
(dcl_Grid_SetCellStyle grdPadrao CLin 7 32)
(dcl_Grid_SetCellStyle grdPadrao CLin 9 21)

Tanks : :-[
Title: Re: Recuperar valor de uma celula com estilo
Post by: owenwengerd on September 25, 2012, 07:30:02 PM
You can use (dcl_Grid_GetCellText) (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Method/Grid/GetCellText.htm) to get the displayed text, or (dcl_Grid_GetCellImages) (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Method/Grid/GetCellImages.htm) to retrieve the ACI color or lineweight value rather than displayed text.
Title: Re: Recuperar valor de uma celula com estilo
Post by: Fred Tomke on September 28, 2012, 01:18:23 PM
Quote(dcl_Grid_GetCellImages) to retrieve the ACI color
Aaah, good to know. It was the hell to parse the text values...

Regards, Fred