on 09-16-2005 12:53 PM
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
Aayush Dubey
final IWDWindow myPopupWindow = <>;
/* EM is relative to font size */
/* so result is better then with PX */
myPopupWindow.setWindowSize
(
new WDCssSize(200, WDWindowUnitOfLength.EM),
new WDCssSize(100, WDWindowUnitOfLength.EM)
);
Play with WDWindowUnitOfLength: there are also PER_CENT constant, but I've never try it for windows.
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aayash,
I dont think it can be done .You will have to specify using pixels
Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.