Fantasy Grounds Merchandise

Thread: scrolling

  1. #1

    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!
    DISCORD / EXTENSIONS:
    Combat: Crit Dmg Options, Enlarge/Reduce, Flavorful Names, Hidden Death Saves, Lingering Injuries (PL), Major Injuries (DK), Special Dmg FX, Summoner, Weapon Dmg Props
    Skills: Crits & Fumbles, Fail Forward, Toolkit Actions
    DM Tools: DB Search, Dynamic Pricing, Party Info, Redacted Table Fields
    Just For Fun: Achievement Tracker, Boar Riding, Dragon Cards, Drink & Sink, Fishing Fun, Seven Seas, Tarot, Turtle Race
    Puzzles: Cryptex, Volvelle, Word Key

  2. #2
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    18,972
    Blog Entries
    9
    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>

    Problems? See; How to Report Issues, Bugs & Problems
    On Licensing & Distributing Community Content
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
    Note, I am not a SmiteWorks employee or representative, I'm just a user like you.

  3. #3
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    34,690
    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
    FG Wiki: How to Compile the FG Logs

    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  4. #4
    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>
    DISCORD / EXTENSIONS:
    Combat: Crit Dmg Options, Enlarge/Reduce, Flavorful Names, Hidden Death Saves, Lingering Injuries (PL), Major Injuries (DK), Special Dmg FX, Summoner, Weapon Dmg Props
    Skills: Crits & Fumbles, Fail Forward, Toolkit Actions
    DM Tools: DB Search, Dynamic Pricing, Party Info, Redacted Table Fields
    Just For Fun: Achievement Tracker, Boar Riding, Dragon Cards, Drink & Sink, Fishing Fun, Seven Seas, Tarot, Turtle Race
    Puzzles: Cryptex, Volvelle, Word Key

  5. #5
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    34,690
    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
    FG Wiki: How to Compile the FG Logs

    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  6. #6
    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.
    DISCORD / EXTENSIONS:
    Combat: Crit Dmg Options, Enlarge/Reduce, Flavorful Names, Hidden Death Saves, Lingering Injuries (PL), Major Injuries (DK), Special Dmg FX, Summoner, Weapon Dmg Props
    Skills: Crits & Fumbles, Fail Forward, Toolkit Actions
    DM Tools: DB Search, Dynamic Pricing, Party Info, Redacted Table Fields
    Just For Fun: Achievement Tracker, Boar Riding, Dragon Cards, Drink & Sink, Fishing Fun, Seven Seas, Tarot, Turtle Race
    Puzzles: Cryptex, Volvelle, Word Key

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Starfinder Playlist

Log in

Log in