5E Product Walkthrough Playlist
  1. #1

    Modifying WindowClass

    I'm guessing there is no way to programmatically change parameters of a windowclass.

    Can anyone confirm?


    Classic & Unity Ultimate License Holder


  2. #2
    You can add/remove/adjust controls within the windowclass... alter shape/size/anchors/etc.

    This might be helpful.

    https://www.fantasygrounds.com/refdo...owinstance.xcp
    https://www.fantasygrounds.com/refdoc/windowcontrol.xcp

    What are you wanting to do?
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

  3. #3
    I'm attempting to combine two extensions into one. Both extensions add buttons to the chat window (vs. the sidebar anchor). One extension uses buttons that are 100 pixels wide and the other uses icons that are 25 pixels wide. In order to make it work, I'd need to be able to make changes to the windowclass offsets for the chat window and the sidebar subwindow within the chat window, based on the user selecting a display option under Options. I've got the option working, I can change out the icons based on the selection, but I can't figure out how to change the offsets in the windowclass.


    Classic & Unity Ultimate License Holder


  4. #4
    Quote Originally Posted by swbuza View Post
    I'm attempting to combine two extensions into one. Both extensions add buttons to the chat window (vs. the sidebar anchor). One extension uses buttons that are 100 pixels wide and the other uses icons that are 25 pixels wide. In order to make it work, I'd need to be able to make changes to the windowclass offsets for the chat window and the sidebar subwindow within the chat window, based on the user selecting a display option under Options. I've got the option working, I can change out the icons based on the selection, but I can't figure out how to change the offsets in the windowclass.
    setAnchor() is might be what you're looking for.

    If it's pre-runtime you can replace those bits with merge/replace in XML more than likely.
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

  5. #5
    Thanks for the tip. Might be what I want.

    Also setAnchoredWidth seems like it might help.


    Classic & Unity Ultimate License Holder


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
  •  
DICE PACKS BUNDLE

Log in

Log in