Changeset 321 for trunk/Forms/FormItem.pas
- Timestamp:
- Jun 25, 2024, 1:00:56 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormItem.pas
r318 r321 14 14 ButtonOk: TButton; 15 15 ButtonCancel: TButton; 16 ScrollBox1: TScrollBox; 16 17 procedure ButtonOkClick(Sender: TObject); 17 18 procedure FormCreate(Sender: TObject); … … 84 85 Fields := Item.GetFields; 85 86 for I := 0 to Fields.Count - 1 do 86 with TItemField(Fields[I])do begin87 with Fields[I] do begin 87 88 Control := DataControls[I]; 88 89 if DataType = dtInteger then TSpinEdit(Control).Value := Item.GetValueInteger(Index) … … 129 130 Fields := Item.GetFields; 130 131 for I := 0 to Fields.Count - 1 do 131 with TItemField(Fields[I])do begin132 with Fields[I] do begin 132 133 Control := DataControls[I]; 133 134 if DataType = dtInteger then Item.SetValueInteger(Index, TSpinEdit(Control).Value) … … 159 160 Fields := Item.GetFields; 160 161 for I := 0 to Fields.Count - 1 do 161 with TItemField(Fields[I])do begin162 NewLabel := TLabel.Create(S elf);162 with Fields[I] do begin 163 NewLabel := TLabel.Create(ScrollBox1); 163 164 NewLabel.Left := Scale96ToScreen(8); 164 165 NewLabel.Top := Y; 165 NewLabel.Parent := S elf;166 NewLabel.Parent := ScrollBox1; 166 167 NewLabel.Caption := Name + ':'; 167 168 NewLabel.Visible := True; … … 200 201 NewControl.Left := Scale96ToScreen(150); 201 202 NewControl.Top := Y; 202 NewControl.Parent := S elf;203 NewControl.Parent := ScrollBox1; 203 204 TFormEx.Translator.TranslateComponent(NewControl); 204 205 TFormEx.ThemeManager.ApplyTheme(NewControl); … … 219 220 try 220 221 for I := 0 to Fields.Count - 1 do 221 with TItemField(Fields[I])do begin222 with Fields[I] do begin 222 223 if VisibleIfIndex > 0 then begin 223 if TItemField(Fields[VisibleIfIndex]).DataType = dtEnumeration then begin224 if Fields[VisibleIfIndex].DataType = dtEnumeration then begin 224 225 Condition := TComboBox(DataControls[VisibleIfIndex]).ItemIndex > 0; 225 226 end else Condition := False;
Note:
See TracChangeset
for help on using the changeset viewer.