Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

How to determine the size (in pixels) of the current mode

Former Member
0 Kudos


I am looking for a was to determine the size (horizontal and vertical pixels) of the current mode (SAPGUI window). I have already looked through the methods provided by class CL_GUI_CFW...

CL_GUI_CFW=>GET_METRIC_FACTORS provides the size of you display (i.e. 1600 x 1200 pixels) and some other information I am not able to interprete.

Futhermore I have had a look at the Methods CL_GUI_CFW=>COMPUTEPIXEL, but I don´t know how to use them.

Has anybody of you any experiences in this topic? I would be grateful ...



Former Member
0 Kudos

Have look at this program; It may help you Out




0 Kudos

Sorry Manoj,

but i didn´t find out, why these programs should be able to solve my issue. They just display a picture using the CL_GUI_PICTURE control.

I am looking fo a way to resize a given control to the very maximum, so that it fills the whole SAPGUI window!

Thanks anyway...