Grid restriction or bug?

Started by Slavko Ivanovic, November 18, 2010, 05:04:01 AM

Previous topic - Next topic

Slavko Ivanovic

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
***  siCAD Solutions for AutoCAD  ***
ArchiTools l ToolsPlus l LandTools l LBE

owenwengerd

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.
Owen Wengerd (Outside The Box) / ManuSoft

Slavko Ivanovic


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?
***  siCAD Solutions for AutoCAD  ***
ArchiTools l ToolsPlus l LandTools l LBE

owenwengerd

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
Owen Wengerd (Outside The Box) / ManuSoft

Slavko Ivanovic


:-[
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
***  siCAD Solutions for AutoCAD  ***
ArchiTools l ToolsPlus l LandTools l LBE