Ignore:
Timestamp:
Nov 15, 2012, 8:59:57 PM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Modul, který bude obsahovat implementaci komunikace s přístupovými terminály firmy Chiyu.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormList.pas

    r16 r20  
    1111
    1212type
     13  TColumnControlType = (ctText, ctReference, ctBoolean);
     14
    1315  TDbColumn = class
    1416    Caption: string;
     
    1618    Visible: Boolean;
    1719    Width: Integer;
     20    ControlType: TColumnControlType;
     21    ReferencedTable: string;
    1822  end;
    1923
     
    2125
    2226  TListDbColumn = class(TListObject)
    23     procedure AddItem(Caption, Name: string; Visible: Boolean; Width: Integer);
     27    function AddItem(Caption, Name: string; Visible: Boolean; Width: Integer): TDbColumn;
    2428  end;
    2529
     
    128132{ TListColumns }
    129133
    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);
     134function TListDbColumn.AddItem(Caption, Name: string; Visible: Boolean;
     135  Width: Integer): TDbColumn;
     136begin
     137  Result := TDbColumn.Create;
     138  Result.Caption := Caption;
     139  Result.Name := Name;
     140  Result.Visible := Visible;
     141  Result.Width := Width;
     142  Add(Result);
    141143end;
    142144
Note: See TracChangeset for help on using the changeset viewer.