User talk:Andynuc

From KitwarePublic
Revision as of 17:54, 25 November 2007 by Andynuc (talk | contribs)
Jump to navigationJump to search

I am working with KWWidgets.I want to get the directory path when the user select directory by vtkKWFileBrowserDialog.But i failed, I only get the file path. I don't why. How can i get the directory path by vtkKWFileBrowserDialog?

// this is my code. I don't know what's the trouble

 vtkKWFileBrowserDialog *filebrowser_widget1 = vtkKWFileBrowserDialog::New();
 filebrowser_widget1->SetApplication(app);
 filebrowser_widget1->Create();
 filebrowser_widget1->MultipleSelectionOn();
 index=menu1->AddCommand("&Open File", filebrowser_widget1, "Invoke");
 filebrowser_widget1->OK();

//

How can i get the directory path by filebrowser_widget1 Thanks very much! My E-mail is xulin116@yahoo.com.cn