lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] Saving and restoring window geometry


From: Vadim Zeitlin
Subject: Re: [lmi] Saving and restoring window geometry
Date: Mon, 23 Apr 2018 17:50:06 +0200

On Mon, 23 Apr 2018 14:25:45 +0000 Greg Chicares <address@hidden> wrote:

GC> On 2018-04-23 13:28, Vadim Zeitlin wrote:
GC> > On Mon, 23 Apr 2018 00:30:56 +0000 Greg Chicares <address@hidden> wrote:
GC> > 
GC> > GC> Don't save geometry.
GC> [...]
GC> > GC> AIUI, you're asking whether it would be nice to have various tabbed 
dialogs
GC> > GC> all use the same {x,y}; I think that's extremely unimportant. OTOH, 
making
GC> > GC> them all use the same {h,w} would be procrustean.
GC> > 
GC> >  This is a good point and means that my alternative (1) from the message 
at
GC> > http://lists.nongnu.org/archive/html/lmi/2018-04/msg00094.html was a bad
GC> > idea (and I should have realized this myself, sorry). However it doesn't
GC> > necessarily invalidate (2)...
GC> > 
GC> > GC> Even different 'skin*.xrc' files don't share the same natural 
geometry,
GC> > GC> and the other things like 'mec.xrc' are even more different.
GC> > 
GC> >  ... because with (2) we'd save different geometries for each of those
GC> > dialogs as each of them uses a different XRC file and hence we'd use a
GC> > different config key (as they're based on MvcView::ResourceFileName()) for
GC> > them.
GC> 
GC> Where you say (2) here, I think that's the old (1):
GC> 
GC>   http://lists.nongnu.org/archive/html/lmi/2018-04/msg00094.html
GC> | 0. Don't save the geometry at all, i.e. keep the current behavior.
GC> | 1. Save geometry of each kind of MVC dialog separately.
GC> | 2. Reuse the same geometry for all MVC dialogs.

 Yes, you're absolutely right, sorry for attempting (luckily
unsuccessfully) to confuse you even more under the pretext of trying to
dispel confusion...

GC> ...but, regardless, I don't see any need to save either
GC>  - separate geometry for each 'skin*.xrc' individually; or
GC>  - a common geometry for all  'skin*.xrc';
GC> or any geometry at all for any '*.xrc' file.

 OK, thanks for confirming this.

GC> The only situation in which I'd say otherwise is if the default
GC> behavior does something astonishing with dual monitors

 No, it doesn't, at least under MSW, the dialogs always popup on the same
screen.

VZ


reply via email to

[Prev in Thread] Current Thread [Next in Thread]