delphi - Why don't the open and save dialogs show files matching the selected filter? -


i want open , save dialogs display xml files. have definition:

// save dialog dlg := tsavedialog.create(nil); dlg.options := [ofoverwriteprompt]; dlg.title := 'seleccione la ubicaciĆ³n del archivo'; dlg.filter := 'xml | *.xml | todo | *.*'; dlg.defaultext := 'xml'; dlg.execute(); // open dialog dlg := topendialog.create(self); dlg.title := 'seleccione la ubicaciĆ³n del archivo'; dlg.filter := 'xml | *.xml | todo | *.*'; dlg.defaultext := 'xml'; dlg.execute(); 

but doesn't show xml files. show xml files in path, need choose "todo" (*.*) filter. why doesn't show files when xml filter selected?

remove spaces around extension. dialog trying filter "*.xml " files, there's none. refer documentation examples.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -