RefreshDialog - take the current 'Hide' status into account
Posted: Tue Feb 07, 2017 11:01 pm
Beside the far more advanced wish about support for adding/removing gadgets to/from dialogs 'on the fly' (currently only re-creating the XML layout and the dialog is possible), it would be already a welcome improvement if a call to RefreshDialog() takes into account, if some gadgets on the dialog are hidden (and so there is more space for the other gadgets) or showed again.
An (optional) parameter should tell the command, if the dialog window should stay at its current size (and the gadgets inside should be resized to a greater height/weight) or if the dialog window size should be adapted to its contained gadgets.
Using this also not always needed gadgets (or complete containers with several gadgets) can be initially created, but in a hidden status. And during program flow they can be showed/hidden as needed and a call to RefreshDialog() do the needed GUI adaptions.
See a code example with its current problem at "Manually resizing/placing gadgets inside a Dialog", for which an improved RefreshDialog() could be the perfect solution (instead of the not fully manually resizing).
An (optional) parameter should tell the command, if the dialog window should stay at its current size (and the gadgets inside should be resized to a greater height/weight) or if the dialog window size should be adapted to its contained gadgets.
Using this also not always needed gadgets (or complete containers with several gadgets) can be initially created, but in a hidden status. And during program flow they can be showed/hidden as needed and a call to RefreshDialog() do the needed GUI adaptions.
See a code example with its current problem at "Manually resizing/placing gadgets inside a Dialog", for which an improved RefreshDialog() could be the perfect solution (instead of the not fully manually resizing).