Interface feature: onresize
The reason I would like this in is to update the map to detect the window size whenever it is resized, to make the map fit a bit better. the only option of doing this now is either:
A.) Run a check in intervals to detect if the window has been resized.
-or-
B,) Player requesting a sync through verb
ID:111730
Apr 8 2011, 12:28 am
|
|||||||
Resolved
| |||||||
Not that I'm not happy that we're finally getting something, but not sending a command when a change is made via winset() is just plain unintuitive.
|
The reason for not responding to winset() is to avoid infinite loops. Often one of the things you would want to do in on-size is make further size adjustments to other parts of your interface. If you keep receiving commands over and over in response to your changes, you have to put in all kinds of logic to deal with that. But if you're making size changes yourself, then you either already know what the size/splitter adjustments will be or you're already in a position to check the new sizes and make further adjustments.
Some winset() changes will actually impact this, but they're cases like where a pane is placed into a child or tab control. Generally speaking though the sorts of things that trigger on-size are meant to be from the end user only. |
EDIT: However, the former request seems to have disappeared.
To add to yours, onMove, onMaximize, onMinimize.