Hi all,
 
I would like to maximize the window of my MITK-based application at startup. For this, I added this code:
void MyWorkbenchAdvisor::PostStartup()
{
    auto window = berry::PlatformUI::GetWorkbench()->GetActiveWorkbenchWindow();
    window->GetShell()->SetMaximized(true);
}
 
However, the window pointer is null when the function is called. Could someone suggest me where to move this code? Or maybe there is another way to maximize the window?
 
Best,
Sas
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to