Hello All,
I have two windows
1. LaunchPad Window
2. PopUpWindow
I need to set the height & width of PuPUpWindow to be some percentage of main window. How this can be done?
I dont want to use absolute integers because different computers may have different resolutions...
<b>Here is my code:</b>
IWDWindowInfo myWinInfo = wdComponentAPI.getComponentInfo().findInWindows("PopUpWindow"); final IWindow wndMain = TaskBinder.getCurrentTask().getApplicationWindow(); IWDWindow myPopupWindow = wdComponentAPI.getWindowManager().createModalWindow(myWinInfo); myPopupWindow.setWindowPosition(WDWindowPos.CENTER); myPopupWindow.setWindowSize(800,500); myPopupWindow.show();
Regards,
Aayush