Changeset 20 for trunk/Forms
- Timestamp:
- Nov 15, 2012, 8:59:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormList.pas
r16 r20 11 11 12 12 type 13 TColumnControlType = (ctText, ctReference, ctBoolean); 14 13 15 TDbColumn = class 14 16 Caption: string; … … 16 18 Visible: Boolean; 17 19 Width: Integer; 20 ControlType: TColumnControlType; 21 ReferencedTable: string; 18 22 end; 19 23 … … 21 25 22 26 TListDbColumn = class(TListObject) 23 procedure AddItem(Caption, Name: string; Visible: Boolean; Width: Integer);27 function AddItem(Caption, Name: string; Visible: Boolean; Width: Integer): TDbColumn; 24 28 end; 25 29 … … 128 132 { TListColumns } 129 133 130 procedure TListDbColumn.AddItem(Caption, Name: string; Visible: Boolean; 131 Width: Integer); 132 var 133 NewItem: TDbColumn; 134 begin 135 NewItem := TDbColumn.Create; 136 NewItem.Caption := Caption; 137 NewItem.Name := Name; 138 NewItem.Visible := Visible; 139 NewItem.Width := Width; 140 Add(NewItem); 134 function TListDbColumn.AddItem(Caption, Name: string; Visible: Boolean; 135 Width: Integer): TDbColumn; 136 begin 137 Result := TDbColumn.Create; 138 Result.Caption := Caption; 139 Result.Name := Name; 140 Result.Visible := Visible; 141 Result.Width := Width; 142 Add(Result); 141 143 end; 142 144
Note:
See TracChangeset
for help on using the changeset viewer.