CommonFileDialog problem when want to show it
Posted: Tue Oct 02, 2012 14:28
I need some help with CommonFileDialog because when through event call this code:
CEGUI::Window* mainWindow = CEGUI::WindowManager::getSingleton().getWindow((CEGUI::utf8*)"Root");
mainWindow->addChildWindow(CEGUI::CommonFileDialog::getSingleton().getWindow());
CEGUI::CommonFileDialogInput input;
input.setHandle (1); // Set the handle to determine the originator
input.setFilter ("Archive (*.jpg)|*.jpg|"); // Extensions
input.setOpenFileDialog (true); // Load mode
input.setDefaultExtension ("*.jpg"); // jpg is the first one to display
CEGUI::CommonFileDialog::getSingleton().openDialog(input); // Open the common file dialog
And I don't view any window and give an internal runtime error. I debug the code and all it's good, but when pass through :
_mWindow->show();
in CommonFileDialog constructor don't show the window. I appreciate any help with it to can terminate the app in which I'm working right now.
Thanks in advance.
CEGUI::Window* mainWindow = CEGUI::WindowManager::getSingleton().getWindow((CEGUI::utf8*)"Root");
mainWindow->addChildWindow(CEGUI::CommonFileDialog::getSingleton().getWindow());
CEGUI::CommonFileDialogInput input;
input.setHandle (1); // Set the handle to determine the originator
input.setFilter ("Archive (*.jpg)|*.jpg|"); // Extensions
input.setOpenFileDialog (true); // Load mode
input.setDefaultExtension ("*.jpg"); // jpg is the first one to display
CEGUI::CommonFileDialog::getSingleton().openDialog(input); // Open the common file dialog
And I don't view any window and give an internal runtime error. I debug the code and all it's good, but when pass through :
_mWindow->show();
in CommonFileDialog constructor don't show the window. I appreciate any help with it to can terminate the app in which I'm working right now.
Thanks in advance.