delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/10/11:11:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Don Dwiggins <dond AT advancedmp DOT com>
Subject: Re: Setup window size: a suggestion
Date: 10 Sep 2002 08:02:23 -0700
Lines: 34
Message-ID: <uofb5khvk.fsf@advancedmp.com>
References: <NCBBIHCHBLCMLBLOBONKMEPFDEAA DOT g DOT r DOT vansickle AT worldnet DOT att DOT net> <Pine DOT GSO DOT 4 DOT 44 DOT 0209100910290 DOT 1269-100000 AT slinky DOT cs DOT nyu DOT edu>
NNTP-Posting-Host: 207.12.247.2
Mime-Version: 1.0
X-Trace: main.gmane.org 1031670137 11889 207.12.247.2 (10 Sep 2002 15:02:17 GMT)
X-Complaints-To: usenet AT main DOT gmane DOT org
NNTP-Posting-Date: Tue, 10 Sep 2002 15:02:17 +0000 (UTC)
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2

>> MoveWindow() makes the window bigger, but does not change the positions
>> of the Next/Back/etc buttons.  I think what I'll end up doing is
>> MoveWindow()'ing them as well, once I figure out where to MoveWindow()
>> them to.

> How about a simple rule: anchor the top elements (title, icon, category,
> etc) to fixed positions relative to the top of the window, and the bottom
> elements (buttons, user url input, etc) to fixed positions relative to the
> bottom of the window.  On resize, recompute the positions relative to the
> new window size.  If you want to be more discriminating, divide the
> elements of a dialog into top-left, top-right, bottom-left, and
> bottom-right, and follow the above rule.  I know it sounds kind of
> obvious, but sometimes the obvious needs to be said, or it'll be
> overlooked.  No offense intended or implied.

I'm not familiar with the code and issues surrounding setup, but I just had
a thought:

It may be overkill for the problem, but how about using wxWindows for the
setup GUI (http://www.wxwindows.org/)?  It has layout managers to handle
resizing, and there are tools available to help design the windows (although
I've found in using wxPython that it's pretty easy, using the managers, to
compose a window from a pencil sketch.  In fact, one could prototype the
application in wxPython, then do the final coding in C++ to eliminate the
Python dependency.)

FWIW,
-- 

Don Dwiggins
d DOT l DOT dwiggins AT computer DOT org
"I heard the grating shrieks and clanks of a locomotive while the engineer 
heard the smooth symphony of a thousand moving parts."  
  -- Emil Gobersneke, as reported by Lon Badgett



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019