Tuesday, November 21, 2017

Policy Plus - Resizable setting editor

Today I finished implementing this feature request on Policy Plus, making the setting editor dialog resizable. I considered using a fancy layout panel to handle the expansion of the two halves of the form when the form gets wider, but instead I just went for a bit of math in the Resize handler. It determines how much extra width is present now relative to the original size, then evenly distributes that extra to the two halves. Finally, it calls the method that reassigns the maximum size of each element-based control. This all leads to a very smooth resizing experience, even more so than in the original LGPE.

No comments:

Post a Comment