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
Post a Comment