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

Restrict resizing while using Docking Container

former_member194669
Active Contributor
0 Likes
1,641

All,

How can we restrict the resizing the docking container with class GL_CUI_DOCKING_CONTAINER. Currently it is displaying in full screen. but donot want user to resize the SCREEN.


 create object g_docking_container
    exporting
      repid     = g_repid
      dynnr     = '300'
      extension = 99999
      side      = cl_gui_docking_container=>dock_at_right.

a®

1 ACCEPTED SOLUTION
Read only

mvoros
Active Contributor
0 Likes
1,137

Hi,

you can control size using parameter EXTENSION. The value 99999 is too big for any screen hence the container is displayed in fullscreen.

Cheers

6 REPLIES 6
Read only

mvoros
Active Contributor
0 Likes
1,138

Hi,

you can control size using parameter EXTENSION. The value 99999 is too big for any screen hence the container is displayed in fullscreen.

Cheers

Read only

0 Likes
1,137

Thanks for your reply.

My question is the Docking container will display in full screen. But i wanted to restrict the resizing of the screen.

a®

Read only

mvoros
Active Contributor
0 Likes
1,137

I am sorry. I did not read your question carefully. I don't know answer but have you tried to use event SIZE_CONTROL? Basically, you would always resize container to original size in this event. I am not sure how it will look. BTW have you seen any standard SAP transaction with disabled resizing?

Cheers

Read only

0 Likes
1,137

I have try with method REG_EVENT_SIZE_CONTROL, but its not working , still user can resize the screen, using DRAGGING.

I could not find any SAP standard programs with resizing restricted.

Any Info ?

.

a®

Read only

MarcinPciak
Active Contributor
0 Likes
1,137

Hi,

Don't know how to do this for docking container but you can use splitter container instead and remove the option for resizing it.


r_split_container->set_row_sash( id    = 1
                                           type  = me->r_split_container->type_movable
                                           value = me->r_split_container->false ).

Regards

Marcin

Read only

0 Likes
1,137

Thanks Marcin,

You hint got worked out. I have used Splitter container instead of Docking container.

Thanks

a®