Modal Dialog IlvFileBrowser

33 views Asked by At

I am using Save As dialog of IlvFileBrowser as below

IlvFileBrowser dialog(SIDGetDisplay(),
    SIDGetSystemView(),
    NULL,
    1,
    extensions,
    descriptions);
dialog.setType(IlvFileSelectorSave);
dialog.setDirectory(lpStrDir);
dialog.setFileName(doc->getFilename());
dialog.setIndex(0);
dialog.moveToScreen();

If any other screen/ dialog from rogue-wave is open, the save-as dialog becomes non modal. Very strange. Any ideas why this would happen?

1

There are 1 answers

3
Amadeusz On

You can use virtual void IlvFileBrowser::show() function to display dialog which is described as modal in the documentation. I can't see how IlvFileBrowser::moveToScreen() makes your IlvFileBrowser to display as modal dialog.