Topic: Image Type Filter

Is there a way of setting filter for DBImage OpenDialog button? The reason is that I want to allow jpg|jpeg pictures only.

I know I can create my own button with something like the code below but would like to set the filter directly in the DBImage button.
Thanks for helping.


var
    OpenDialog: TOpenDialog;
begin
    OpenDialog := TOpenDialog.Create(OpenDialog);
    OpenDialog.Filter:= 'Files jpg|*.jpg';

Re: Image Type Filter

Hello.


Please download latest beta version
https://www.dropbox.com/s/mb8hyuevvu8x5 … a.zip?dl=0


Now you can change filter for DBImage using script, example:

procedure Form1_OnShow (Sender: TObject; Action: string);
begin
    Form2.DBImage.OpenDialogFilter := 'JPEG files (*.jpg;*.jpeg)|*.jpg;*.jpeg';
end;
Dmitry.

Re: Image Type Filter

DriveSoft wrote:

Hello.


Please download latest beta version
https://www.dropbox.com/s/mb8hyuevvu8x5 … a.zip?dl=0


Now you can change filter for DBImage using script, example:

procedure Form1_OnShow (Sender: TObject; Action: string);
begin
    Form2.DBImage.OpenDialogFilter := 'JPEG files (*.jpg;*.jpeg)|*.jpg;*.jpeg';
end;

Thank you very much!!