Changeset 18 for trunk/Forms/UItemAdd.pas
- Timestamp:
- Jun 13, 2011, 2:41:33 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UItemAdd.pas
r15 r18 129 129 130 130 DataType := TReportColumn(Report.Columns[I]).CustomType; 131 NewControl := DataType.CreateControl(Panel1); 132 DataType.SetDefault; 133 DataType.SetupControl(NewControl); 134 NewControl.Parent := Panel1; 135 NewControl.Top := LastTop; 136 NewControl.Left := Column * Width div ColumnCount + (Width div ColumnCount) div 2; 137 NewControl.Width := (Width div ColumnCount) div 2 - 20; 138 ControlList.Add(NewControl); 131 if not (DataType is TDataTypeRelationMany) then begin 132 NewControl := DataType.CreateControl(Panel1); 133 DataType.SetDefault; 134 DataType.SetupControl(NewControl); 135 NewControl.Parent := Panel1; 136 NewControl.Top := LastTop; 137 NewControl.Left := Column * Width div ColumnCount + (Width div ColumnCount) div 2; 138 NewControl.Width := (Width div ColumnCount) div 2 - 20; 139 ControlList.Add(NewControl); 139 140 140 Column := (Column + 1) mod 2; 141 if Column = 0 then LastTop := LastTop + NewControl.Height + 4; 141 Column := (Column + 1) mod 2; 142 if Column = 0 then LastTop := LastTop + NewControl.Height + 4; 143 end; 142 144 end else ControlList.Add(nil); 143 145 end;
Note:
See TracChangeset
for help on using the changeset viewer.