Vertical Field Scroller Dimensions
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Vertical Field Scroller Dimensions
Hi All,
So I am wondering if there is a property of the "field" object type that designates the width of the scrollbar that pops up inherently. I want to place some headers above categories of information in the field itself, but keep it from looking like the header graphic overlaps the scrollbar.
I have been learning about data grids, and have an intuition that I should just be switching to that instead of a field.
That said, I am still wondering if there is a scrollbar property I can reference when sizing other objects.
Thanks!
Phil E.
So I am wondering if there is a property of the "field" object type that designates the width of the scrollbar that pops up inherently. I want to place some headers above categories of information in the field itself, but keep it from looking like the header graphic overlaps the scrollbar.
I have been learning about data grids, and have an intuition that I should just be switching to that instead of a field.
That said, I am still wondering if there is a scrollbar property I can reference when sizing other objects.
Thanks!
Phil E.
Re: Vertical Field Scroller Dimensions
Hi.
Well, I thought that the "scrollBarWidth" was just the ticket, and it is up to the default width. On a Mac, that is 16 pixels. You can make it narrower.
But to make it wider, and this may be a bug, you get all kinds of odd behavior. The scrollbar will shift with widths up to 38, will change into a small isolated gizmo a bit above that, and will change to a horizontal scrollbar in the 100's.
I don't suppose you only wanted it narrower?
Craig Newman
Well, I thought that the "scrollBarWidth" was just the ticket, and it is up to the default width. On a Mac, that is 16 pixels. You can make it narrower.
But to make it wider, and this may be a bug, you get all kinds of odd behavior. The scrollbar will shift with widths up to 38, will change into a small isolated gizmo a bit above that, and will change to a horizontal scrollbar in the 100's.
I don't suppose you only wanted it narrower?
Craig Newman
Re: Vertical Field Scroller Dimensions
Well.
Make a field with a vertical scrollbar. Make a slider with a max value set to, say, 300. Put this in the slider script:
Well.
Craig Newman
Make a field with a vertical scrollbar. Make a slider with a max value set to, say, 300. Put this in the slider script:
Code: Select all
on scrollbarDrag
set the scrollbarwidth of fld 1 to the thumbposition of me
end scrollbarDrag
Craig Newman
Re: Vertical Field Scroller Dimensions
Hi Craig,
Mostly, I just want to know how to reference the thing, so I can code visually appealing object relations.
Wouldn't setting the scrollBarWidth to the thumbPosition be dynamic, and make the width larger as the thumb is dragged down the stack?
It looks like I can just set the scrollBarWidth property of a given field, right?
Phil E.
Mostly, I just want to know how to reference the thing, so I can code visually appealing object relations.
Wouldn't setting the scrollBarWidth to the thumbPosition be dynamic, and make the width larger as the thumb is dragged down the stack?
It looks like I can just set the scrollBarWidth property of a given field, right?
Phil E.
Re: Vertical Field Scroller Dimensions
Sure.
I made that little gadget just to see how the scrollbar morphed with different values.
You, and everyone, seem to be limited to the default width or less, this value dependent on the platform. For Mac OSX, it is 16 pixels wide. So:
set the scrollbarWidth of fld yourField to yourValue -- like 10, or 16, the max
If I don't hear what I am missing, I will file a bug report, and make a note in the dictionary that the entry for this property has, er, issues.
Craig Newman
I made that little gadget just to see how the scrollbar morphed with different values.
You, and everyone, seem to be limited to the default width or less, this value dependent on the platform. For Mac OSX, it is 16 pixels wide. So:
set the scrollbarWidth of fld yourField to yourValue -- like 10, or 16, the max
If I don't hear what I am missing, I will file a bug report, and make a note in the dictionary that the entry for this property has, er, issues.
Craig Newman
Re: Vertical Field Scroller Dimensions
Sounds like a plan. Thank you for your help!
Phil E.
Phil E.