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

Table Control - Do not want verticle scroll bar

Former Member
0 Likes
974

I have a table control in a subscreen that I want to limit to a maximum of 4 rows of data. The table control is currently displaying 4 rows on the screen, so the appearance of the table control is the way I want it, with the exception of the verticle scroll bar. I would like to eliminate it.

While I can control the number of entries the customer makes in the control table by returning an error message if they enter more than four, I would prefer to not allow them to enter more than four rows in the first place. The verticle scroll bar seems to be a permanent fixture to the table control, and appears no matter how many rows of the table control have data in them.

For example, even if the "DESCRIBE TABLE internal_table LINES table_control-lines" statement in the PBO has a value of zero, I still have the verticle scroll bar.

In another forum entry I noticed the suggestion to use the "SET PF-STATUS 'STAT'" statement. However, the parent screen already has SET PF-STATUS statements that cannot be changed without messing up some of the other subscreens, so that doesn't appear to be an option.

Any other suggestions? Thank you.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
883

HI,

check this link..[Removing of vertical scroll bar in table control |]

I have a table control in a subscreen that I want to limit to a maximum of 4 rows of data. The table control is currently displaying 4 rows on the screen, so the appearance of the table control is the way I want it, with the exception of the verticle scroll bar. I would like to eliminate it.

While I can control the number of entries the customer makes in the control table by returning an error message if they enter more than four, I would prefer to not allow them to enter more than four rows in the first place. The verticle scroll bar seems to be a permanent fixture to the table control, and appears no matter how many rows of the table control have data in them.

For example, even if the "DESCRIBE TABLE internal_table LINES table_control-lines" statement in the PBO has a value of zero, I still have the verticle scroll bar.

In another forum entry I noticed the suggestion to use the "SET PF-STATUS 'STAT'" statement. However, the parent screen already has SET PF-STATUS statements that cannot be changed without messing up some of the other subscreens, so that doesn't appear to be an option.

Any other suggestions? Thank you.

5 REPLIES 5
Read only

Former Member
0 Likes
884

HI,

check this link..[Removing of vertical scroll bar in table control |]

Read only

0 Likes
883

Avinash,

Thank you for your reply. I tried the suggestions in the link, and while some of them altered the appearance of the table control itself, none of them altered the scroll bar.

Read only

former_member194669
Active Contributor
0 Likes
883

Try this way in PBO


      tabcntl-lines = 4.  " Make the default to 4

Read only

0 Likes
883

Changing the table_control-lines to 4 did not get rid of the scroll bar, but it did give me the idea to try setting it to 0.

Doing that did not remove the scroll bar itself, but did disable it, so the table control is unable to scroll.

In an ideal world I'd like to see the scroll bar disappear completely, but since its functioning the way I want it to I'll go with that for now.

Thank you.

Also, I found that I could allow the program logic do whatever it needed to do with table_control-lines in the PBO, to format the table control the way I wanted it. Then right before exiting the PBO, I set table_control-lines to zero, which disabled the vertical scroll bar.

Edited by: Dick Fischer on Mar 5, 2009 2:43 PM

Read only

0 Likes
883

Also, I found that I could allow the program logic do whatever it needed to do with table_control-lines in the PBO, to format the table control the way I wanted it. Then right before exiting the PBO, I set table_control-lines to zero, which disabled the vertical scroll bar.

Thanks for sharing info.