cancel
Showing results for 
Search instead for 
Did you mean: 

how to get current windows resolution

Former Member
0 Kudos

does anyone know how to get current windows resolution? i want to set height and width to my external window so it will fit the screen.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

I got nearly the same problem.

So how can I get the client resolution?

Former Member
0 Kudos

Does anybody solved the problem to get the size to open the new Window in full size???

Former Member
0 Kudos

Check your mail... already sent... Please reward full points if it helps..

Thanks

Avijit

Former Member
0 Kudos

Hi,

Paste your mail address here... I am sending you one application... How to do it...

Thanks and Regards

Avijit

Former Member
0 Kudos

hi,

please kinsky02@yahoo.com.

i'll reward you if usefull

Former Member
0 Kudos

Hi,

Use the following coding to open external window,

IWDWindow window=wdComponentAPI.getWindowManager().

.createExternalWindow("http://www.sap.com","SAP search website",false);

window.setWindowSize(100,100);

window.open();

Regards,

Suresh T

Former Member
0 Kudos

Hi,

If you wan to create an external window and set it's height and width them you can use the followinfg code

	IWDWindowInfo windowInfo =
	wdComponentAPI.getComponentInfo().findInWindows("DisplayPDFWindow");
	IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
	window.setWindowPosition(WDWindowPos.CENTER);
	window.setWindowSize(500, 500);	
	window.show();
	wdContext.currentWindowElement().setWindowInstance(window);

remember here "DisplayPDFWindow" is the name of your window under which you have your view. And also don't forget to create a context node of type type <b>com.sap.tc.webdynpro.services.session.api.IWDWindow</b> . In my code I have created a value node called WindowElement and under that I have created a value attribute WindowInstance of type <b>com.sap.tc.webdynpro.services.session.api.IWDWindow</b>.

To Close a window you can use the following code:

	IWDWindow window =
	wdContext.currentWindowElement().getWindowInstance();
	window.destroyInstance();

Hope it helps. Please reward points if it helps..

Thanks and Regards

Avijit

Former Member
0 Kudos

dear avijit,

setWindowSize to 500,500 will only create external window with width 500 and height 500,

it doesn't fit the screen (fullscreen). all i want is create external window that fit the screen (fullscreen), do you know how to do this?