Changeset 38 for trunk/Forms/UFormContact.pas
- Timestamp:
- Nov 25, 2021, 3:35:59 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.