[Interest] Seeking tips on restoring application geometry
Murphy, Sean
smurphy at walbro.com
Tue Aug 4 21:23:12 CEST 2015
> > I'm kind of leaning towards saving multiple geometries in my settings based
> on the current desktop size, so that the user can set one geometry for the
> laptop-only case, set a different geometry for the external monitor(s) case,
> and have the application remember those settings independently. I'm just
> not sure if I'm overlooking an obvious pitfall with this approach?
>
> what about re-/storing relations rather then fix pixel sizes? that is, calculate
> the percent-of-screen-x, percent-of-screen-y...
> but then in turn, what about font sizes? or doesn't this matter in your case?
Font size is fixed at all times, so that part isn't much of an issue. The percent-of-screen approach might work out ok. Some of the users are bouncing between using two external monitors, and expanding the application to almost the full combined desktop size, to take advantage of the extra horizontal real estate. But a percentage approach would still handle that fairly well, I think.
Sean
More information about the Interest
mailing list