FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OpenFileDialog

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
hartung



Joined: 19 Jan 2008
Posts: 4
Location: Brazil

PostPosted: Sat Jan 19, 2008 10:31 pm    Post subject: OpenFileDialog Reply with quote

Hello...

I have a function like this:

Code:
package void abrirClick(Object sender, EventArgs ea)
    {
        scope fileDlg = new OpenFileDialog();
       
        with(fileDlg)
        {
            filter = FILTRO_ABRIR;
            multiselect = true;
           
            if(showDialog() == DialogResult.OK)
            {
                foreach(string f; fileNames)
                {
               msgBox(f);
                  
               // ...
                }
            }
        }
    }

It shows a new File Dialog, with multiselect.

If I select one file, it's OK (the path and file name are shown). But when more files are selected, it shows only de file names, without the path. I'm using DFL 0.9.6.01 with DMD 1.024 and Tango 0.99.4.

Is it a bug? Am I doing something wrong?
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Mon Feb 18, 2008 2:27 am    Post subject: Re: OpenFileDialog Reply with quote

You're right, it looks like Tango changed the FilePath.join function over time; I'll have it fixed in the next snapshot.
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Mon Feb 18, 2008 5:43 pm    Post subject: Re: OpenFileDialog Reply with quote

Fixed
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
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


Powered by phpBB © 2001, 2005 phpBB Group