View previous topic :: View next topic |
Author |
Message |
DaveR Valued Contributor
Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Wed Dec 31, 2008 2:00 pm Post subject: filedlg multi style bug |
|
|
Once you've used the multi style on a filedlg all future filedlgs also have the multi style set
Contrary to the help file stating that: "These options are mutually exclusive: you cannot select multiple files to save." you can effectively end up with both save and multi set at the same time.
Code: | DIALOG CREATE,New Dialog,-1,0,240,160
DIALOG HIDE
%A = @filedlg(,,,multi)
# BUG! multi style is still active
%A = @filedlg(,,,save)
# BUG! multi style is still active
%A = @filedlg()
|
Once the multi style has been used there does not seem to be a way to turn it off for future filedlgs
The same bug applies to setting a title:
Code: | DIALOG CREATE,New Dialog,-1,0,240,160
DIALOG HIDE
%F = @filedlg(,choose file,,)
# BUG! choose file title still active
%A = @filedlg(,,,SAVE)
# BUG! choose file title still active
%A = @filedlg(,,,)
|
_________________ cheers
Dave |
|
Back to top |
|
|
vdsalchemist Admin Team
Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Fri Jan 02, 2009 12:24 am Post subject: |
|
|
Dave,
I have never noticed this issue before and that is probably because I have always filled out all of the arguments for this function. However I have noticed the threads that the @filedlg opens do not close right when the dialog closes. This leaves me to believe that the original File dialog is still in memory and it would stand to reason that it's settings are still there too. Sorry I cannot be of much help but my comments may give CR a clue as to were to look for this bug. _________________ Home of
Give VDS a new purpose!
|
|
Back to top |
|
|
Aslan Valued Contributor
Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Fri Jan 02, 2009 1:00 am Post subject: |
|
|
I think VDS is just caching the flags. You can however overwrite the flags.
Unfortunately, NULL won't clear a non-Null flag.
eg:
Code: | DIALOG CREATE,New Dialog,-1,0,240,160
DIALOG HIDE
%A = @filedlg(,Choose File,,)
%A = @filedlg(,Open File,,Open)
%A = @filedlg(,Save File,,Save)
exit |
As for the MULTI style there is no anti-style for this.
I wonder if this might not even be a VDS bug, and perhaps a Delphi one. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|