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

i have issue screen resolution in oops program

Former Member
0 Likes
606

i create report using oops g_custom_container and

call method grid->set_table_for_first_display

i have issue screen resolution when i run program in wide screen its perfect when iam running in small screen its out put size is big how to resolve this issue i want screen resolution should set automatically .

4 REPLIES 4
Read only

Former Member
0 Likes
565

As far as i know there is no way to determine in runtinme the best resolution. There are some threads that threats with the same problem, like this http://scn.sap.com/thread/1954252 or http://scn.sap.com/thread/542761

One aproximattion could  be to use a docking container and allocate the size.

Regards.

Read only

Private_Member_49934
Product and Topic Expert
Product and Topic Expert
0 Likes
565

Determining screen resolution may be not be possible.

But what you can do is to use the docking container instead of customer container. and use cl_gui_container=>screen0 to instantiate it.  It will not depenent on the size coustom controller on the screen.

create object go_dock
          exporting
            parent = cl_gui_container=>screen0
            ratio  = 90.

Then you can pass this as parent which create the object for ALV grid.

       create object ref_alv
        exporting
          i_parent = go_dock.

Regarding ALV I love one thread

http://scn.sap.com/people/uwe.schieferstein/blog/2010/10/12/against-all-odds--programming-of-communi...

Read only

0 Likes
565

Or shorter way:

create object ref_alv
        exporting
          i_parent = cl_gui_container=>screen0.

Kr,

Manu.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
565

Usual solution are
- use of docking containers
- creation of very wide re-sizeable area in screen editor : customer control with 200x255 and resizing boxes checked..

Regards,
Raymond