Changeset 38 for trunk/Forms
- Timestamp:
- Nov 25, 2021, 3:35:59 PM (3 years ago)
- Location:
- trunk/Forms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormContact.lfm
r35 r38 15 15 Left = 10 16 16 Height = 576 17 Top = 1017 Top = 8 18 18 Width = 893 19 ActivePage = TabSheet All19 ActivePage = TabSheetGeneral 20 20 Anchors = [akTop, akLeft, akRight, akBottom] 21 21 ParentFont = False 22 TabIndex = 222 TabIndex = 0 23 23 TabOrder = 0 24 24 object TabSheetGeneral: TTabSheet … … 126 126 Left = 240 127 127 Height = 24 128 Top = 264128 Top = 304 129 129 Width = 55 130 130 Caption = 'Notes:' -
trunk/Forms/UFormContact.pas
r35 r38 204 204 JpegImage := TJPEGImage.Create; 205 205 try 206 JpegImage.LoadFromStream(Stream); 207 ImagePhoto.Picture.Bitmap.SetSize(JpegImage.Width, JpegImage.Height); 208 ImagePhoto.Picture.Bitmap.Canvas.Draw(0, 0, JpegImage); 206 try 207 JpegImage.LoadFromStream(Stream); 208 ImagePhoto.Picture.Bitmap.SetSize(JpegImage.Width, JpegImage.Height); 209 ImagePhoto.Picture.Bitmap.Canvas.Draw(0, 0, JpegImage); 210 except 211 end; 209 212 finally 210 213 JpegImage.Free; 211 214 end; 212 215 end else begin 213 ImagePhoto.Picture.Bitmap.LoadFromStream(Stream); 216 try 217 ImagePhoto.Picture.LoadFromStream(Stream); 218 except 219 end; 214 220 end; 215 221 finally … … 222 228 procedure TFormContact.SaveData(Contact: TContact); 223 229 begin 230 Contact.Fields[cfFullName] := EditFullName.Text; 231 Contact.Fields[cfMiddleName] := EditMiddleName.Text; 224 232 Contact.Fields[cfFirstName] := EditFirstName.Text; 225 233 Contact.Fields[cfLastName] := EditLastName.Text; 234 Contact.Fields[cfTitleAfter] := EditTitleAfter.Text; 235 Contact.Fields[cfTitleBefore] := EditTitleBefore.Text; 226 236 Contact.Fields[cfTelCell] := EditCellPhone.Text; 227 237 Contact.Fields[cfTelHome] := EditPhoneHome.Text;
Note:
See TracChangeset
for help on using the changeset viewer.