User talk:Andynuc: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(New page: 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 g...)
 
No edit summary
Line 11: Line 11:


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

Revision as of 17:54, 25 November 2007

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