Thread: Modifying WindowClass
-
July 14th, 2019, 06:21 #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
-
July 14th, 2019, 06:41 #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.
-
July 14th, 2019, 06:46 #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
-
July 14th, 2019, 06:49 #4---
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.
-
July 14th, 2019, 07:18 #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