# Retrieve Project Properties "Client/General/Touch Screen/Scrollbar Width"

**URL:** <https://forum.inductiveautomation.com/t/retrieve-project-properties-client-general-touch-screen-scrollbar-width/17280>\
**Category:** Ignition\
**Created:** [March 8, 2018, 6:20pm UTC](https://forum.inductiveautomation.com/t/retrieve-project-properties-client-general-touch-screen-scrollbar-width/17280 "2018-03-08T18:20:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BillS](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@BillS](https://forum.inductiveautomation.com/u/BillS)\
**Post date:** [March 8, 2018, 6:20pm UTC](https://forum.inductiveautomation.com/t/retrieve-project-properties-client-general-touch-screen-scrollbar-width/17280/1 "2018-03-08T18:20:00Z")

</div>

Hello,

Can somebody tell me the property path to use in system.util.getProperty to retrieve the current scrollbar width setting please?

If it’s not retrievable using that function, please inform me how to retrieve it. There is a system.gui.isTouchscreenModeEnable method that retrieves the check box value above it, but I don’t see a way to retrieve the scrollbar width.

I want to use that value when setting up the spinner width on fields. The spinners are rather small for a touch screen enabled application. I did find a reference to how to hack a width change which has to be implemented on EVERY spinner field, but I don’t want to have to go back and change EVERY one when (not if) the client decides that the icons need to be a different width. Since the project wide settings for the scroll bar width is likely a good value for the spinners I’d REALLY like to use that.

Thank you,

Bill

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [March 8, 2018, 8:31pm UTC](https://forum.inductiveautomation.com/t/retrieve-project-properties-client-general-touch-screen-scrollbar-width/17280/2 "2018-03-08T20:31:11Z")

</div>

> [@Table Scrollbar Size](http://forum.inductiveautomation.com/t/table-scrollbar-size/2235):
>
> Is there a way to increase the width of the vertical scrollbars on tables. My clients are touchscreens and it is very difficult for the users to click on the small up and down arrows on the scrollbars. Typically I have just set the scrollbar size in the OS and the application inherits that. However, that doesn’t work with Ignition. I am assuming that the JAVA runtime must have some type of properties to set the scrollbar size, maybe? Thanks

Shows how to set it for ALL scroll bar widths.

---

<div class="post-metadata">

**Author:** ![BillS](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@BillS](https://forum.inductiveautomation.com/u/BillS)\
**Post date:** [March 8, 2018, 9:09pm UTC](https://forum.inductiveautomation.com/t/retrieve-project-properties-client-general-touch-screen-scrollbar-width/17280/3 "2018-03-08T21:09:27Z")

</div>

Thank you for taking the time to answer my question.

However, I know about how to set the scrollbar width for a project globally. If you read the question I was inquiring how to RETRIEVE the setting from a script so I can use that value for the width of the SPINNER component buttons.

Bill

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [March 9, 2018, 1:35pm UTC](https://forum.inductiveautomation.com/t/retrieve-project-properties-client-general-touch-screen-scrollbar-width/17280/4 "2018-03-09T13:35:03Z")

</div>

```auto
from javax.swing import UIManager
UIManager.get("ScrollBar.width")

```

😉

---

<div class="post-metadata">

**Author:** ![BillS](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@BillS](https://forum.inductiveautomation.com/u/BillS)\
**Post date:** [March 9, 2018, 4:43pm UTC](https://forum.inductiveautomation.com/t/retrieve-project-properties-client-general-touch-screen-scrollbar-width/17280/5 "2018-03-09T16:43:37Z")

</div>

Thank you again. That does retrieve the value I was looking for.

It would be nice if at minimum the spinners would do something like the drop down does with the built in arrow icons.

Oh, and just in case I wasn’t clear… The documented(non-kluge) way to set the scrollbar width for touch screen enabled projects is the setting in the project properties, not the UIManager.put(“ScrollBar.width”) method. So I was hoping that the system.util.getProperty method would be able to retrieve the configured scrollbar width and I just didn’t know the correct property name to retrieve. The don’t seem to have a complete list of property keys that method can operate on. There is a sample list in the method documentation, but that documentation leaves open the fact that there could be other property keys.

Bill
