Changeset 17 for trunk/Forms
- Timestamp:
- Nov 15, 2012, 2:56:05 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormEdit.pas
r16 r17 139 139 W := 130; 140 140 H := 24; 141 for I := PanelControls.ControlCount - 1 downto 0 do 142 PanelControls.Controls[I].Free; 141 143 for I := 0 to View.Items.Count - 1 do 142 144 with TFormItem(View.Items[I]) do begin … … 232 234 NewControl := TDateEdit.Create(Self); 233 235 NewControl.Parent := PanelControls; 234 TDateEdit(NewControl).Date := SQLToDate Time(Values.Values[Name]);236 TDateEdit(NewControl).Date := SQLToDate(Values.Values[Name]); 235 237 NewControl.SetBounds(Rect.Left * W, Rect.Top * H, 236 238 (Rect.Right - Rect.Left) * W - TEditButton(NewControl).Button.Width, (Rect.Bottom - Rect.Top) * H); … … 269 271 with TFormItem(View.Items[I]) do begin 270 272 case ControlType of 271 ctSpinEdit, ctDate, ctTime, ctDateTime, ctReference: Values.Add(Name, '0'); 273 ctCheckBox, ctSpinEdit, ctReference: Values.Add(Name, '0'); 274 ctDateTime: Values.Add(Name, '0000-00-00 00:00:00'); 275 ctDate: Values.Add(Name, '0000-00-00'); 276 ctTime: Values.Add(Name, '00:00:00'); 272 277 else Values.Add(Name, ''); 273 278 end;
Note:
See TracChangeset
for help on using the changeset viewer.