User talk:Andynuc

From KitwarePublic
Revision as of 17:47, 25 November 2007 by Andynuc (talk | contribs) (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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