1. #1
    swbuza's Avatar
    Join Date
    Jan 2017
    Location
    Omaha, Nebraska
    Posts
    245

    Modifying WindowClass

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

    Can anyone confirm?


    Ultimate License Holder


    Using:
    Pathfinder Official Core Rules
    Pathfinder Official Advanced Players' Guide
    Pathfinder Official Bestiary 1
    Pathfinder Official Rise of the Runelords Anniversary Ed.


    Currently Running:
    Group 1: Pathfinder, Rise of the Runelords
    Group 2: Pathfinder, Rise of the Runelords

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

    This might be helpful.

    http://www.fantasygrounds.com/refdoc/windowinstance.xcp
    http://www.fantasygrounds.com/refdoc/windowcontrol.xcp

    What are you wanting to do?
    ---
    DM/Play: AD&D (any flavor)
    Coding the Official AD&D Ruleset

  3. #3
    swbuza's Avatar
    Join Date
    Jan 2017
    Location
    Omaha, Nebraska
    Posts
    245
    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.


    Ultimate License Holder


    Using:
    Pathfinder Official Core Rules
    Pathfinder Official Advanced Players' Guide
    Pathfinder Official Bestiary 1
    Pathfinder Official Rise of the Runelords Anniversary Ed.


    Currently Running:
    Group 1: Pathfinder, Rise of the Runelords
    Group 2: Pathfinder, Rise of the Runelords

  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.
    ---
    DM/Play: AD&D (any flavor)
    Coding the Official AD&D Ruleset

  5. #5
    swbuza's Avatar
    Join Date
    Jan 2017
    Location
    Omaha, Nebraska
    Posts
    245
    Thanks for the tip. Might be what I want.

    Also setAnchoredWidth seems like it might help.


    Ultimate License Holder


    Using:
    Pathfinder Official Core Rules
    Pathfinder Official Advanced Players' Guide
    Pathfinder Official Bestiary 1
    Pathfinder Official Rise of the Runelords Anniversary Ed.


    Currently Running:
    Group 1: Pathfinder, Rise of the Runelords
    Group 2: Pathfinder, Rise of the Runelords

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