Minty23185Fresh
January 31st, 2018, 20:02
The dialogs used by the Library are based on the <masterindex> windowclass. One of the controls on the form is a <windowlist> named "list". When the user resizes the form (a.k.a. window) the list resizes to occupy any created "empty space" or contracts to accommodate shrinking space.
My Field Filters for all Libraries extension (https://www.fantasygrounds.com/forums/showthread.php?40954-Field-Filters-for-All-Libraries) has two <windowlist> controls on it. How come the <resize> control preferentially picks the original "list" instead of my "filterlist" to be the control to expand or to shrink as the form resizes?
I know that the "preferred" control or control's can be chosen; it's not arbitrary, nor first-defined-first-served, nor random. The party sheet does a real cool resizing of four text based controls as the form resizes.
Two other threads ("How to resize..." (https://www.fantasygrounds.com/forums/showthread.php?37199-How-to-Resize-a-Window) and "... multiple scrollbars" (https://www.fantasygrounds.com/forums/showthread.php?41129-Resizable-Form-Containing-Multiple-Scrollbars)) both hint at the answer, but don't quite get there. I've looked at the <resize> control and it's based on <genericcontol>. I don't see code specific to resizing making me believe the functions are "builtin" and not exposed for my enjoyment.
As I write this it has dawned on me that the answer might be due to control anchoring. Controls that are anchored to the edges of the form (specifically the right and bottom edges) would probably shrink or expand when the window does. Please confirm. Is this how it is actually effected?
Thank you.
My Field Filters for all Libraries extension (https://www.fantasygrounds.com/forums/showthread.php?40954-Field-Filters-for-All-Libraries) has two <windowlist> controls on it. How come the <resize> control preferentially picks the original "list" instead of my "filterlist" to be the control to expand or to shrink as the form resizes?
I know that the "preferred" control or control's can be chosen; it's not arbitrary, nor first-defined-first-served, nor random. The party sheet does a real cool resizing of four text based controls as the form resizes.
Two other threads ("How to resize..." (https://www.fantasygrounds.com/forums/showthread.php?37199-How-to-Resize-a-Window) and "... multiple scrollbars" (https://www.fantasygrounds.com/forums/showthread.php?41129-Resizable-Form-Containing-Multiple-Scrollbars)) both hint at the answer, but don't quite get there. I've looked at the <resize> control and it's based on <genericcontol>. I don't see code specific to resizing making me believe the functions are "builtin" and not exposed for my enjoyment.
As I write this it has dawned on me that the answer might be due to control anchoring. Controls that are anchored to the edges of the form (specifically the right and bottom edges) would probably shrink or expand when the window does. Please confirm. Is this how it is actually effected?
Thank you.