OpenPictureDialog Problems
- From: cybatech@xxxxxxxxxxxxx
- Date: Fri, 22 Jul 2005 04:45:26 GMT
Can some please tell me why this won't work?
procedure TForm1.Button1Click(Sender: TObject);
var OpenPicDlg : TOpenPictureDialog;
Bitmap: TBitmap;
NewShape : TManyShape;
begin
Bitmap := TBitmap.Create;
OpenPicDlg := TOpenPictureDialog.Create(Self);
if OpenPicDlg.Execute then
begin
bitmap.LoadFromFile(OpenPicDlg.FileName);
Newshape.Image :=Bitmap;
end;
OpenPicDlg.Free;
end;
.
- Follow-Ups:
- Re: OpenPictureDialog Problems
- From: Maarten Wiltink
- Re: OpenPictureDialog Problems
- Prev by Date: Re: Help reading structured binary files
- Next by Date: Re: OpenPictureDialog Problems
- Previous by thread: TMemo: How can i get the caret x/y pos. into client x/y pos. ?
- Next by thread: Re: OpenPictureDialog Problems
- Index(es):