on 09-10-2008 11:21 AM
Hi All,
I used a internal PopUp window in the application, But the problem is that internal window is not movable????
while creating the window i had set the size and position.
Is there any setting to move the window.
Please help me
Thanks
-
Nagaraju
Hi,
you cannot move popup. but you can achieve this feature by creating some actions and set the positions dynamically.
in popup wondow view(popup view)
create buttons like moveleft and moveright . create left and right actions and assign to those buttons.
create two attributes left and right in controller, map to both views.
left(){
IWDWindow window=wdContext.currentContextElement().getWindow();
wdContext.currentContextElement().setLeft(wdContext.currentContextElement().getLeft()-10);
window.setWindowPosition(wdContext.currentContextElement().getLeft(),wdContext.currentContextElement().getRight());
}
right(){
IWDWindow window=wdContext.currentContextElement().getWindow();
wdContext.currentContextElement().setLeft(wdContext.currentContextElement().getLeft()+10);
window.setWindowPosition(wdContext.currentContextElement().getLeft(),wdContext.currentContextElement().getRight());
}
Regards,
Naga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nagaraju,
I got information from this [thread |https://www.sdn.sap.com/irj/sdn/thread?forumID=52&threadID=1037758] that new API is available for handling popup windows in version 7.1.
If you are using 7.0 only, then try like this:
Create window as I said in the above thread.
Create a button 'Move' and two InputFileds (X,Y) in the popup Window.
In onActionMove() implementation do like this.
{
IWDWindow window=wdContext.currentContextElement().getWindow();
IWDWindow.setPosition(wdContext.currentContextElement().getX(),wdContext.currentContextElement().getY());
}
Let me know if there is any issue in implementation
Regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nagaraju,
You cannot the move the pop window, it is fixed. You just need to set the position according to your requirement.
Thanks & Regards,
Jhansi Miryala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.