1. #1

    Buttons to the left?

    I want my shortcut buttons to the left... lets take traits from 3.5

    If its on the right it automatically shortens the list.
    If its on the left it overlaps and looks hideous and doesn't function correctly.

    What am I doing wrong?

    I have tried offsetting the list and that doesn't seem to work. It seems that list will spread out over all of the frame regardless of any setting I put on it.

    sorry for being such a newbie. Good news is I am making good progress on the VtM ruleset. If I could figure this out....


    <frame_char name="traitframe">
    <anchored position="insidebottomleft" offset="29,20">
    <right anchor="center" offset="-140" />
    <top anchor="center" offset="60" />
    </anchored>
    </frame_char>
    <label_frametop>
    <anchored to="traitframe" />
    <static textres="char_label_traits" />
    </label_frametop>
    <list_charabilities name="traits">
    <anchored to="traitframe">
    </anchored>
    <datasource>.traitlist</datasource>
    <class>char_ability_race</class>
    </list_charabilities>
    <scrollbar>
    <anchored to="traits" />
    <target>traits</target>
    </scrollbar>
    <button_iedit name="traits_iedit">
    <anchored to="traits" position="aboveright" offset="5,5" />
    <target>traits</target>
    </button_iedit>
    <button_iadd name="traits_iadd">
    <anchored to="traits" position="aboveleft" offset="5,5" />
    <target>traits</target>
    </button_iadd>


    <windowclass name="char_ability_race">
    <margins control="0,0,0,2" />
    <sheetdata>
    <genericcontrol name="rightanchor">
    <anchored height="0" width="0">
    <top />
    <right />
    </anchored>
    </genericcontrol>
    <button_idelete name="idelete">
    <anchored>
    <top offset="2" />
    <right parent="rightanchor" anchor="left" relation="relative" offset="-5" />
    </anchored>
    </button_idelete>
    <genericcontrol name="leftanchor">
    <anchored height="0" width="0">
    <top />
    <left />
    </anchored>
    </genericcontrol>
    <linkcontrol name="shortcut">
    <anchored width="20" height="20">
    <top offset="2" />
    <right parent="rightanchor" anchor="left" relation="relative" offset="-5" />
    </anchored>
    <class>referencediscipline</class>
    <description field="name" />
    <readonly />
    </linkcontrol>
    <string_textlistitem name="name">
    <anchored>
    <top offset="2" />
    <left offset="5" />
    <right parent="rightanchor" anchor="left" relation="relative" offset="-5" />
    </anchored>
    <multilinespacing>20</multilinespacing>
    </string_textlistitem>
    </sheetdata>
    </windowclass>

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Denver, Colorado, USA (for a bit)
    Posts
    22,599
    You’ll need to read up on anchoring and relative anchoring. https://www.fantasygrounds.com/wiki/...face#Anchoring

    But, in the above XML you post, the control positions are built from the right to the left (using relative anchoring on right side of each control and a "rightanchor" control). So try moving the XML of the "shortcut" control to after the XML of the "name" control.


    FG Product Development status: Pathfinder Playtest Ruleset and add-ons: In development. Pathfinder Bestiary, Pathfinder Bestiary 2, Pathfinder Bestiary 3 (in store).

    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!

  3. #3
    Quote Originally Posted by Trenloe View Post
    You’ll need to read up on anchoring and relative anchoring. https://www.fantasygrounds.com/wiki/...face#Anchoring

    But, in the above XML you post, the control positions are built from the right to the left (using relative anchoring on right side of each control and a "rightanchor" control). So try moving the XML of the "shortcut" control to after the XML of the "name" control.

    Thank you so much!!

Thread Information

Users Browsing this Thread

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

Posting Permissions

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

Log in

Log in