on 08-07-2007 4:02 AM
Hello friends,
I designed a layout (for long 2 pages).If i submit ,open a popup dialog box.The pop up dialog will open on center position at layout,But browser captures position on center at second page(in browser)
I have coded like d.setWindowPosition(IWDWindowPos.center)...Is possible to capture layout position and display at center?
Please give me idea for that...
Thanks & Regards
Mathi
Hi Mathi,
Inside the action of the submit button call the popup window.
IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows(
"Put Window Name");
// create the Modal Window
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
// Display window in center
window.setWindowPosition(WDWindowPos.CENTER);
window.setTitle("PopUp window");
window.setWindowSize(100,100);
// Save WindowInstance in Context
wdContext.currentContextElement().setWindowInstance(window);
// and show the window
window.show();
Regards,
Mithu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Mithu
Thanks for ur reply.....My dialog is confirmation popup....
Popup works correctly...My problem is window position.....
window.setWindowPosition(WDWindowPos.CENTER);
I have desiged layout.the layout has two pages above...but the confirmation popup dislayed only on second page
for ex
Issue is
Layout
Page1
-
-
page2
-
dialog box is displyed in this postion i dont want like this
-
submit | close |
I want like this
Layout
Page1
-
-
dialog box is displyed in this postion(this is center correct)
Page2
-
-
submit | close |
Hi Mathi,
Try This
String dialog = "Put Dailog Message";
IWDConfirmationDialog confDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialog,wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("Ok"),"OK");
IWDEventHandlerInfo CancelEventInfo = wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("Cancel");
confDialog.addChoice(CancelEventInfo,"Cancel");
confDialog.setTitle("My Pop Up Window");
<b> confDialog.setWindowPosition(350,150);//Change x,y as you want
confDialog.setWindowPosition(WDWindowPos.LEFT);</b>
confDialog.show()
Regards,
Mithu
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.