Monday, November 20, 2017

Policy Plus - Remove horizontal scrollbars

A Policy Plus user noticed that, unlike that of the official Local Group Policy Editor, Policy Plus's setting editor window cannot be resized. Resizing Policy Plus's might be desirable because a horizontal scrollbar sometimes appears in the extra options panel, which requires the user to scroll it to see the ends of the controls. I investigated and found that this happens when there are so many controls that a vertical scrollbar appears, taking away a little piece of horizontal space for the already-dimensioned controls, creating a horizontal scrollbar. I addressed this by keeping a list of resizable controls and adjusting their MaximumSize when the table size changes and after the extra options space is set up. I have not yet made the full form resizable, but this change should provide most of the convenience.

No comments:

Post a Comment