on 05-10-2005 1:49 PM
Hi All
I would like to positioning popup window relativ to a GUI element (InputField). How can I read the element position?? That is possible, the generic value helper are positioned relativ to linked element. I would like pisitioning my popup window similiary but i dont know how
Hi,
you can try following:
IWDWindowInfo _windowInfo = wdComponentAPI.getComponentInfo().findInWindows("<WINDOW_NAME>");
IWDWindowManager manager = wdComponentAPI.getWindowManager();
IWDWindow _window = manager.createWindow(_windowInfo, true);
((IWindow)_window).setWindowPositionControl( "<CONTROL_ID>" );
<CONTROL_ID> - "<COMPONENT_ID>.<VIEW_NAME>.<UI_CONTROL_ID>" (for example "PFCBCNPF.POSearchCriteriaCV.SearchButton")
To get it you need to view HTML sources of your generated view in browser, for example "<a ... id="PFCBCNPF.POSearchCriteriaCV.SearchButton"...>"
pay attention that it is NOT documented feature (setWindowPositionControl method) and you are using it at your own risk.
Regrads, Maxim R.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot:)
I have to exactly read.
That really works:)
regards Bogdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your help:)
unfortunately IWDWindow interface have not method setWindowPositionControl May be I have old version?
Best regards Bogdan R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.