This is the mail archive of the
mailing list for the Cygwin project.
Re: [PATCH] Setup: more intuitive resizing controls + some dialogs
On Sun, 2 Nov 2003, Robert Collins wrote:
> On Sun, 2003-11-02 at 07:20, Igor Pechtchanski wrote:
> > On Sat, 1 Nov 2003, Robert Collins wrote:
> > > On Sat, 2003-11-01 at 14:35, Igor Pechtchanski wrote:
> > > > As promised.
> > > > Igor
> > > > ==============================================================================
> > > > ChangeLog:
> > > > 2003-10-31 Igor Pechtchanski <firstname.lastname@example.org>
> > > >
> > >
> > > Applied. I think there's a bug in the MIDDLE enum handling though. I've
> > > factored the code to be less redundant - please check...
> > Hmm, if there's a bug, I don't see quite what it is. Would you mind
> > elaborating?
> the stretch adjustment moves both left and right by delta/2. If we had a
> window 0,39, with a control at 10,29, and we resize the window to 0,79 -
> a delta of 40, we'd want the control to end up at 20,59 - that is the
> left adjusted by delta/4 and the right by 3/4 delta.
Ah, I see. We must have different definitions of "centered". I view
"CP_MIDDLE" as "same size but centered around the new position", which
will require the left and right edges to be adjusted evenly. You seem to
be thinking of "centered" as "stretch proportionally to the position in
the dialog"... In other words, in the above example the control should
end up at 30,49 using my definition (keeping its size at 20). I'm not
convinced it's a bug. We could, of course, add other positioning controls
(e.g., CP_SMARTSTRETCH) that do what you want.
> > Details, please?
> When I resize it vertically, the url field label stays put.
Ok, I'll look into this.
|\ _,,,---,,_ email@example.com
ZZZzz /,`.-'`' -. ;-;;,_ firstname.lastname@example.org
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton