on 09-22-2008 3:46 AM
Hi all,
I use the following code to create a popup modal window. When i embed only one view, it works fine, but when i embed a viewset, and put multiple views into the viewset, it can only pop up a tiny little area with nothing in it.
is there a reason for this? what do i do to pop up a window with viewset?
Thanks!
IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("OneWindow");
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
window.setWindowPosition (300, 150);
window.show();
Hi
I'm opening popup window using viewSet. and its working fine,
You need to set the window position, so that it can be viewed properlty.
public void openPopUpWindow( )
{
//@@begin openPopUpWindow()
IWDWindowInfo winfo=wdComponentAPI.getComponentInfo().findInWindows("Popwindow");
IWDWindow window1=wdComponentAPI.getWindowManager().createModalWindow(winfo);
window1.setWindowPosition(10,280);
window1.show();
//@@end
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Set Window size explicitly. Otherwise the window is rendered with default wodth & height. You can set Window size explicitly like this.
window.setWindowPosition (300, 150);
window.setWindowSize(450, 400);
window.show();
Regards,
SIVA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.