0
I have in my form a component TOpenPictureDialog
to open the Images on a system, only instead of it taking the full path of the image file it only takes the alias.
Ex
- How I need : 'C: Users User-03 Pictures.jpg file'
- As he is coming: 'Images LOGO CMR.Jpg'
I’ve tried to see all the options in Vcl.Dialogs.Topenoptions and Vcl.Dialogs.Topenoptionsex and found nothing... How can I do it?
procedure TfrmManutencaoParametros.opdParametrosSelectionChange(Sender: TObject);
begin
// Muda a imagem no Quadro de imagens
if opdParametros.FileName <> '' then
begin
inherited;
...
...
...
ImgLogo.Picture.LoadFromFile(opdParametros.FileName);
end;
end;
Are you trying to extract the path with which property? Using
OpenPictureDialog1.FileName
in Delphi 7 (version I have), returns the whole path as you need + the file name... If it works on your version, just extract the file name...– Melissa
Enter your code for more details.
– Roberto de Campos
@Melissa, I’m using Openpicturedialog1.Filename
– Edu Mendonça
Edu, put in the full code
– Roberto de Campos
@Robertodecampos here the complete code...
– Edu Mendonça
Have you ever tried to build a simple project to see if it gives the same problem? Because only with this code request you can’t verify where the error is. And putting more code will only leave your question polluted.
– Roberto de Campos
Yes, and I’ve also checked the forums to see if I can find an answer and nothing. http://www.activedelphi.com.br/forum/viewtopic.php?t=85939&sid=ff049e947038cab60a0cab989c285b4a
– Edu Mendonça