Changeset 23 for trunk/Application


Ignore:
Timestamp:
Jun 17, 2011, 9:52:46 AM (13 years ago)
Author:
george
Message:
  • Modified: Selection form set selected item id.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/UDataTypes.pas

    r22 r23  
    1414  TDataType = class
    1515    CustomType: Integer;
     16    Control: TWinControl;
    1617    function CreateControl(Owner: TComponent): TWinControl; virtual;
    1718    procedure SetupControl(Control: TWinControl); virtual;
     
    256257  ItemSelectForm.ObjectId := ObjectId;
    257258  ItemSelectForm.ShowModal;
     259  TEditButton(Control).Text := IntToStr(ItemSelectForm.SelectedId)
    258260end;
    259261
     
    264266  TEditButton(Result).Button.Enabled := True;
    265267  TEditButton(Result).Button.OnClick := ButtonClickExecute;
     268  Control := Result;
    266269end;
    267270
Note: See TracChangeset for help on using the changeset viewer.