cancel
Showing results for 
Search instead for 
Did you mean: 

maximize external window

Former Member
0 Kudos

does anyone know how to maximize external window to fit the screen.

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member199223
Participant
0 Kudos

hi Oscar,

you try this ,

If ur using <b>window name.setwindowsize() </b> by default the size is fit the screen.but u have to give some values like i have given below..

IWDWindow window=wdComponentAPI.getWindowManager().

.createExternalWindow("http://www.google.de","Google-search for an email address",false);

window.setWindowSize(50,50);

window.open();

thanks,

Former Member
0 Kudos

Hi boopathi,

setwindowsize() must fill by width and height, and that is mandatory. but if i don't setwindowsize then it will fit the screen, thanks for inspired me an answer.

i already award you points

Former Member
0 Kudos

Hi,

You can set your windowsize in 2 different integer virables and pass them as parameters to this method..

Thanks and Regards

Avijit

Former Member
0 Kudos

Mithu Ghosh , thanks for the reply. set window size to 100,100 won't fit all window screen.

do you know what object that i can use for define current screen resolution?

former_member751941
Active Contributor
0 Kudos

Hi Oscar,

Try This.

String url = "http://help.sap.com";

String title = "Device Details";

IWDWindow window=wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,title);

window.setWindowPosition(WDWindowPos.CENTER);

window.setWindowSize(100, 100);

Regards,

Mithu