Notes |
(0008013)
shicola2 (reporter)
2005-10-11 00:40
|
Sorry, I mean TJvOpenDialog and TJvSaveDialog. |
|
(0008023)
remkobonte (developer)
2005-10-13 15:26
|
I can not reproduce this bug. So please make a demo program that shows the error and upload it to this bug report) |
|
(0008026)
shicola2 (reporter)
2005-10-13 23:27
|
sorry for some mistakes.
i don't have version 3.0 currently installed but i post demo from version 2.10 with TJvOpenDialog2000 where is the same bug.
And i allways get filterindex 1 not 0.
sample from demo (jvcl 2.10):
procedure TForm1.Button1Click(Sender: TObject);
begin
JvOpenDialog20001.filter := 'ext 1|*.1|ext 2|*.2|ext 3|*.3';
if JvOpenDialog20001.execute then
showmessage(inttostr(JvOpenDialog20001.filterindex));
end;
in jvcl 3.0 is JvOpenDialog20001 deprecated and can be used JvOpenDialog which has the same bug. |
|
(0008027)
shicola2 (reporter)
2005-10-13 23:42
|
Finally note:
TOpenDialog - OK
TJvOpenDialog 2.10 - OK
TJvOpenDialog2000 2.10 - bug
TJvOpenDialog 3.0 - bug
I tested it on D5 Ent. WinXP. |
|
(0008051)
shicola2 (reporter)
2005-10-23 22:46
|
I fix it in JvDialog.pas, in function TJvOpenDialog.TaskModalDialog:
...
DialogData2000.FlagsEx := PlacesBar[FShowPlacesBar];
Result := inherited TaskModalDialog(DialogFunc, DialogData2000);
//ShiCola add - bug with FilterIndex
TOpenFileName(DialogData).nFilterIndex := DialogData2000.OpenFileName.nFilterIndex;
{$ELSE}
...
bye ShiCola |
|
(0008119)
AHUser (developer)
2005-11-22 06:12
|
Fixed in CVS |
|