[SOLVED] dlgOpenPicture Filter Property, how to restrict file extensions. lazarus / 31-LCL ---------------------------------------------------------------------- Elmug · 2012-08-02 20:38 Hi everyone, Windows 7, Lazarus 32 bit. I am not getting to have the dlgOpenPicture to show only .bmp ,  .jpg, and .jpeg files only for loading an image into a TImage box. By default I can load them just fine. But I want to refine the application so only the three above file types show. I have tried at filter, using the Filter editor: Filter name = Graphic(*.bmp, *.jpeg, *.jpg) Filter = *.bmp, *.jpeg, *.jpg which loads into the Filter Property this: ---------------------------------------------------------------- Graphic (*.bmp, *.jpeg, *.jpg)|*.bmp, *.jpeg, *.jpg ---------------------------------------------------------------- When the dialog runs, actually no files at all show, only subfolders. Any help on this will be appreciated. Thanks ---------------------------------------------------------------------- Elmug · 2012-08-02 20:56 SOLVED: The delimiters are actually to be semicolons, and not commas. The small letters can throw anyone. If any one needs the same, or similar, here's what to put in the Property box: -------------------------------------------------------------- Graphic (*.bmp; *.jpeg; *.jpg)|*.bmp; *.jpeg; *.jpg -------------------------------------------------------------- Then the dialog will only show subfolders, and files with the above extensions. The word "Graphic" can be whatever. ---------------------------------------------------------------------- eny · 2012-08-02 20:58 Maybe an incompatibility of Lazarus with the windows ListSeparator in your regional settings. I guess yours is set to a comma. Try replacing the comma with the semicolon ( ; ) like so and also remove the spaces (not sure why you have them): Code: [Select]Graphic (*.bmp; *.jpeg; *.jpg)|*.bmp;*.jpeg;*.jpg Maybe that solves it. [[edit]] Note to self: type faster next time.