mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 15:40:30 +02:00
use FileDialog FilterIndex
git-svn-id: trunk@7031 -
This commit is contained in:
parent
6b37b5ba28
commit
2a8cf12022
@ -251,6 +251,7 @@ begin
|
||||
hWndOwner := GetOwnerHandle(AOpenDialog);
|
||||
hInstance := System.hInstance;
|
||||
lpStrFilter := StrAlloc(Length(FFilter)+1);
|
||||
nFilterIndex := AOpenDialog.FilterIndex;
|
||||
Move(PChar(FFilter)^, lpStrFilter^, Length(FFilter)+1);
|
||||
lpStrFile := FName;
|
||||
lpStrTitle := PChar(AOpenDialog.Title);
|
||||
@ -312,6 +313,7 @@ begin
|
||||
Files.Clear;
|
||||
if UserResult then
|
||||
begin
|
||||
AOpenDialog.FilterIndex := OpenFile.nFilterIndex;
|
||||
if not (ofOldStyleDialog in Options) then // Win32 returns diferent types of strings
|
||||
SetFilesProperty(Files)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user