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.
cancel
Showing results for 
Search instead for 
Did you mean: 

Tabstrip cropped

oliver_am
Participant
0 Kudos

Hi all,

I have a module-pool in wich I'am displaying several fields and a tabstrip with several subscreens.

I have a button to check for errors. Right now I'm displaying a popup with the messages like this:

I want to replace this popup by a message area, like in webdynpros.

For that purpose I've created a subscreen for the messages, enlarged the dynpro and displaced all the components downwards.

Like this:

When threre is no messages I'm calling an empty subscreen in this area, so all the other components are displayed above.

But the tabstrip is getting cropped. Showing a scrollbar. I don't know what can be the problem.

In the dynpro there is enough space for all the components.

Do you know what I can do to solve this?

I've tried creating another subscreen to place all the rest of components, but Im getting an error because you cannot call a subscreen from another subscreen.

Thanks in advance.

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

In the subscreen area below the tabstrip, make sure you have set the attribute "vertical resizing" flag.

11 REPLIES 11

former_member400468
Active Participant

Hi!

I've also faced with such screen behavior few months ago, and I solved it like it was done in the standard ME23N transaction:

You should create one screen with which will have subscreen with message area and one subscreen without it. And If you have no messages, you should substitute the first screen with the second one.

Hope it will be helpful.

Evgeny

0 Kudos

Hi, thanks for answer.

If there aren't other chances I'll try this workaround.

raymond_giuseppi
Active Contributor

If the area contain a control like an ALV, consider replacing the subscreen area with a docking container?

0 Kudos

But how to set concrete size in lines of the docking container? It will differ for different screen sizes.

You set the size of a docking container via the parameter EXTENSION of the constructor, and you may change it later via the method SET_EXTENSION.

0 Kudos

Hi,
I've tried using a container, but the components are displayed below the screen with a gap for the container;

I don't see any parameter EXTENSION or method SET_EXTENSION in class cl_gui_custom_container.

I've tried with method set_height but nothing happens.

Sandra_Rossi
Active Contributor

In the subscreen area below the tabstrip, make sure you have set the attribute "vertical resizing" flag.

0 Kudos

Hi, This was the problem. If I check "vertical resizing" then all the things are displayed ok.

EDIT: Nope, this is not the problem...

It seems that depends on the screen resolution. I have two monitors, my laptop screen and anoother, if I execute the program in my laptop is displayed wrong, but if I move the window to the other monitor then is automatically displayed well...

This didn't happen before adding the subscreen...

oliver_am
Participant
0 Kudos

It seems that depends on the screen resolution. I have two monitors, my laptop screen and another, if I execute the program in my laptop is displayed wrong, but if I move the window to the other monitor then is automatically displayed well...

This didn't happen before adding the subscreen...

0 Kudos

Hi!

This happened because runtime properties of the screen are set based on the subscreen area size, not a subscreen. So you can use two solutions described above:

1) Docking container with ALV

2) Two main screens with and withot subscreen

oliver_am
Participant
0 Kudos

Ok, solved.
This was really easy... 🙂

I only needed to unckeck the property "vertical resizing" in the subscreen there is whitin the tabstip...