forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


filedlg multi style bug

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
DaveŽ
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 403
Location: Australia

PostPosted: Wed Dec 31, 2008 2:00 pm    Post subject: filedlg multi style bug Reply with quote

Once you've used the multi style on a filedlg all future filedlgs also have the multi style set Exclamation

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. Shocked

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 Question


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
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Fri Jan 02, 2009 12:24 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Fri Jan 02, 2009 1:00 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
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




Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group