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

Dynpro problem with positioning checkboxes

Former Member
0 Likes
1,716

When trying to position a checkbox, I run into the following problem:

I have the checkbox with the button on the right side and the text on the left

text................. []

In the Screen Painter I can align the button so that it starts exactly under the field above.

However, when using the dynpro in the application, the button is always more to the left and not aligned anymore.

text []

Is there any way to fix this without separating the text from the checkbox? I know I can just put a text field there and have the button without text - but that breaks the connection between the text and the data dictionary.

Thanks.

Alex Nicolovius

3 REPLIES 3
Read only

kathryn_mcgallicher
Active Participant
0 Likes
826

Hello,

Can you either:

1) put the text on the right so that it doesn't shift the checkbox?

2) add underscores to the end of the text value so that it "pushes" the checkbox into place? For example: "Request_reason_". The underscore at the end ensures that the entry box that follows is still aligned with the entry boxes above

and below it. I've done that with standard fields, but have not tried it with checkboxes.

K--

Read only

0 Likes
826

Hi Kathryn,

thanks for replying.

As for your suggestions:

1) No, I do not want to put the text on the right, our customer wants it on the left.

2) Underscores and spaces do not change anything about the position of the checkbox. If I do add letters, I can almost get it there - like this:

textGGGGGGGG[]

[] being the checkbox itself.

But you can imagine that this looks ridiculous!

As far as standard fields go: When you get the field (and its description) from the dictionary and just change the visible length, you do not have to do anything else to get more distance between the text and the field.

Thanks for trying though.

Alex

Read only

kathryn_mcgallicher
Active Participant
0 Likes
826

Sorry Alex!

I overlooked the part about not breaking the connection between the data dictionary and the text. I'm new at dialog programming, so I probably didn't fully understand your question.

Thanks for the clarification!

Kathy