Allow only picture files in OpenDialog

Hi,

how can I set an OpenDialog to only accept picture files? The OpenDialog should only allow to open .bmp and .jpg files.
When I set the DefaultExt nothing happens...


thanks
BohneAsked:
Who is Participating?
 
mokuleConnect With a Mentor Commented:
1. You can use OpenPictureDialog
or
2. You should set property
Filter := All (*.*)|*.*|JPEG Image File (*.jpg)|*.jpg|JPEG Image File (*.jpeg)|*.jpeg|Bitmaps (*.bmp)|*.bmp;
0
 
mokuleCommented:
DefultExt property is for adding extension to a file name when entered without extension and period.
0
 
DetiCommented:
Just write that String with mokule wrote in OpenDialog Filter.. in Object Inspector..
0
All Courses

From novice to tech pro — start learning today.