OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Slavko Ivanovic on November 18, 2010, 05:04:01 AM

Title: Grid restriction or bug?
Post by: Slavko Ivanovic on November 18, 2010, 05:04:01 AM
There is a undocumented restriction or bug for grid control (methods for adding rows).

If I define colums IN RUNTIME using
...(dcl_Grid_AddColumns GridCtrl ((Caption Justification ColumnWidth ColumnImageIndex) ...)),
...and after add rows with
...dcl_Grid_AddString, dcl_Grid_AddRow or dcl_Grid_InsertRow,
...new cells WILL NOT inherit the ColumnImageIndex and Justification from their columns.

Is this true, and why?
...and if it is true, what is the point of arguments Justification and ColumnImageIndex
in Grid_AddColumns method?

Thanx.

Slavko
Title: Re: Grid restriction or bug?
Post by: owenwengerd on November 18, 2010, 09:17:33 AM
Those values are for the column header itself, not the grid rows. The various "column default" properties are different and independent of the column header.
Title: Re: Grid restriction or bug?
Post by: Slavko Ivanovic on November 18, 2010, 10:40:51 AM

So, in run-time i can not create and set , for example third column to be justified Right.
Justification of columns must be defined in studio (project)?

Is this true?
Title: Re: Grid restriction or bug?
Post by: owenwengerd on November 18, 2010, 02:32:51 PM
Default alignments are defined in a separate property (that is not shown in the property pane):
http://www.opendcl.com/HelpFiles/index.php?page=Reference/Property/ColumnAlignmentList.htm (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Property/ColumnAlignmentList.htm)
Title: Re: Grid restriction or bug?
Post by: Slavko Ivanovic on November 19, 2010, 05:36:53 AM

:-[
I'm a square.


Usually i was using predefined grid columns.
This was the first time that i needed dynamic change of many grid properties.
Also I'm aware now , that i can not instantly find all needed properties that OpenDCL offer, even if i
liked to think so, and also, that i am becoming very lazy  :D.

Thanx Owen.

Slavko