Re: OpenPictureDialog Problems
- From: cybatech@xxxxxxxxxxxxx
- Date: Mon, 25 Jul 2005 07:03:34 GMT
This is the code I am trying. It works fine with Tshape!
The component is here
http://downloads.delphi32.com/740/1221/manysh.zip
procedure TForm1.BitBtn1Click(Sender: TObject);
var OpenPicDlg : TOpenPictureDialog;
Bitmap: TBitmap;
begin
Bitmap := TBitmap.Create;
OpenPicDlg := TOpenPictureDialog.Create(Self);
if OpenPicDlg.Execute then
begin
bitmap.LoadFromFile(OpenPicDlg.FileName);
manyshape1.Image := Bitmap;
end;
OpenPicDlg.Free;
end;
On Mon, 25 Jul 2005 08:59:54 +1000, "Henry Bartlett"
<hambar@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
><cybatech@xxxxxxxxxxxxx> wrote in message
>news:20r5e114gr4i03ikisi76ungv52tivs5r9@xxxxxxxxxx
>> Thanks Guys but I'm still getting accessvoilation.
>
>Show us the full code you are currently using for the method in which
>you are getting the AV
>
>---
>Henry Bartlett
>Delphi Links Page:
>( http://www.hotkey.net.au/~hambar/habit/delflink.htm )
>
>
>
>
>
>
.
- Follow-Ups:
- Re: OpenPictureDialog Problems
- From: Henry Bartlett
- Re: OpenPictureDialog Problems
- From: cybatech
- Re: OpenPictureDialog Problems
- References:
- OpenPictureDialog Problems
- From: cybatech
- Re: OpenPictureDialog Problems
- From: Maarten Wiltink
- Re: OpenPictureDialog Problems
- From: cybatech
- Re: OpenPictureDialog Problems
- From: Henry Bartlett
- Re: OpenPictureDialog Problems
- From: Rob Kennedy
- Re: OpenPictureDialog Problems
- From: Henry Bartlett
- Re: OpenPictureDialog Problems
- From: cybatech
- Re: OpenPictureDialog Problems
- From: Henry Bartlett
- OpenPictureDialog Problems
- Prev by Date: Re: OpenPictureDialog Problems
- Next by Date: Re: Accessing Gmail with Delphi
- Previous by thread: Re: OpenPictureDialog Problems
- Next by thread: Re: OpenPictureDialog Problems
- Index(es):
Relevant Pages
|