Varsuuk
May 21st, 2018, 01:45
<windowclass name="..." >
<frame > ... </frame> The bitmap frame resource name used for rendering the window background frame
<margins > Display margin definition
<control > ... </control> A comma separated list of four numbers specifying the pixel margins applied to the window before controls are placed. Can be used to offset all controls right and/or down (i.e. left/top margins), or create margins on the right/bottom.
</margins>
...
So, I assume is no "margins" element is supplied, placing a control offset 0,0 from topleft means it would be offset 0,0 from top left edge of the Window (the physical 0,0 point - regardless of appearance as the window may be "margined" in the graphic already)
If one was supplied like 0,0,0,2 (as appears in CoreRPG some places), it means if I place it offset at right edge, it would be against right edge (0) but it is adjusted upwards from bottom edge (2)?
Yeah, I am clueless with graphics and spatial geometry :(
So glad started on the Lua finally after getting first tab setup... I didn't use "margins" but saw some in Core and 5E and wanted to grok WHEN you would want to use it and why?
<frame > ... </frame> The bitmap frame resource name used for rendering the window background frame
<margins > Display margin definition
<control > ... </control> A comma separated list of four numbers specifying the pixel margins applied to the window before controls are placed. Can be used to offset all controls right and/or down (i.e. left/top margins), or create margins on the right/bottom.
</margins>
...
So, I assume is no "margins" element is supplied, placing a control offset 0,0 from topleft means it would be offset 0,0 from top left edge of the Window (the physical 0,0 point - regardless of appearance as the window may be "margined" in the graphic already)
If one was supplied like 0,0,0,2 (as appears in CoreRPG some places), it means if I place it offset at right edge, it would be against right edge (0) but it is adjusted upwards from bottom edge (2)?
Yeah, I am clueless with graphics and spatial geometry :(
So glad started on the Lua finally after getting first tab setup... I didn't use "margins" but saw some in Core and 5E and wanted to grok WHEN you would want to use it and why?