2009 Jul 22 10:46 AM
Hi everyobdy,
how Do I disable the horizontal Scrollbar in a TableControl?
Best regards,
Hartmut
2009 Jul 22 11:33 AM
Hi,
Alternatively, you can do this.
Goto Layout of your screen -> Click on the Screen Attributes of your table control -> You will find a field for Fixed Columns at the bottom of the attributes. Set that to the number of fields on your table control. For example, if you have 4 fields in your table control set that to 4. Your horizontal scroll bar will be disabled. You can also do what Marcin has suggested. Either ways it works.
Hi,
Alternatively, you can do this.
Goto Layout of your screen -> Click on the Screen Attributes of your table control -> You will find a field for Fixed Columns at the bottom of the attributes. Set that to the number of fields on your table control. For example, if you have 4 fields in your table control set that to 4. Your horizontal scroll bar will be disabled. You can also do what Marcin has suggested. Either ways it works.
2009 Jul 22 10:55 AM
Just open the screen and enlarge the windows which contains your table control. If you enlarge enough there must not be any scrollbar.
2009 Jul 22 11:18 AM
Hi Gungor,
thanks for your answer.
Unfortunately this is not as easy as it seems to be.
Even if i have blank space on the right, that means the columns are less wide than the tablecontrol itselfs, the horizontal scroll bar does not disappear - i am speeking for in SAP Release 4.6C (R/3 Support Package 36).
Help is apreciated....
Best regards,
Hartmut
2009 Jul 22 11:29 AM
Hi,
In PBO of the screen set all columns as fixed ones. They will no longer be scroolable.
CONTROLS tab_control TYPE TABLEVIEW USING SCREEN 0100.
"in PBO
MODULE set_fixed OUTPUT.
tab_control-fixed_cols = 5. "give here number of your columns
ENDMODULE.
Regards
Marcin
2009 Jul 22 11:33 AM
Hi,
Alternatively, you can do this.
Goto Layout of your screen -> Click on the Screen Attributes of your table control -> You will find a field for Fixed Columns at the bottom of the attributes. Set that to the number of fields on your table control. For example, if you have 4 fields in your table control set that to 4. Your horizontal scroll bar will be disabled. You can also do what Marcin has suggested. Either ways it works.
2009 Jul 22 12:52 PM
Marcin, Nitwick, you both hit the bull's eye
you are heros.
Best regards
Hartmut
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |