-
scrolling
I'm trying to create some kind of window inside my main UI. I want the inner window to be fairly large, and to be scrollable and/or dragable as needed.
I don't need anything fancy.
I've tried several approaches, but nothing has worked so far.
Can anyone point me to an example? Thanks!
-
What's wrong with just creating a window via a windowclass? Default behavior will be draggable, resizable, and maybe? scrollable if the contents grow.
<windowclass name="NewWindow">
<placement>
<size height="300" width="300" />
</placement>
<sheetdata />
</windowclass>
-
Only certain controls support scrolling - which will be using the mousewheel, unless a scrollbarcontrol is attached - see info here: https://fantasygroundsunity.atlassia...rollbarcontrol
For examples, unzip CoreRPG (not in the rulesets directory) and do a find in files for scroll
-
I can get vertical scrolling to work. The mouse-wheel scrolls automatically.
If I add scrollbar_list controls, the vertical scroll bar shows up.
No luck with horizontal yet.
Code:
<scrollbar_list>
<anchored to="content" />
<target>content</target>
</scrollbar_list>
<scrollbar_list>
<anchored to="content" />
<target>content</target>
<horizontal />
</scrollbar_list>
-
As indicated in the scrollbarcontrol API page I linked: "A scrollbarcontrol creates a vertical scrollbar control." There is no <horizontal/> option in the Definition section of that page.
Only an image control can "pan" (move horizontally and vertically) as detailed here: https://fantasygroundsunity.atlassia...crollercontrol
-
Ah, okay, thanks.
I don't think I want to go that route at the moment. Currently, they can resize the window so it's large enough for my needs; that should be fine for now.