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

Re: [MacPerl] Centering a dialog box



At 9:53 -0700 8/7/98, Vicki Brown wrote:
>A friend of mine who has done much Mac programming (though not much
>MacPerl) suggested specifying the centering in relation to the primary
>screen (rather than the to overall screen real estate in general).

The main screen (ie, where the menus are) is usually right.  Not
necessarily centered vertically:  the "alert position" is nearer the top.

If the user's focus of attention is on the front window, then center on
front window is right (or center on the screen containing the front window,
sometimes).

For toolbox windows made from resources, these are easily done (except
perhaps the last...I haven't wanted to) by setting flags in the resource
and letting the Window Manager do the job.

For computing this in MacPerl for "home grown" or Tk windows, some function
which returns information about each active display (there can be more than
two for the terminally acquisitive) in some sort of list of "records" would
be nice.

  --John  (patting himself on the back:  "terminally acquisitive" is
perfect in that context)
--
John Baxter   jwblist@olympus.net      Port Ludlow, WA, USA
Give a man a fish and you feed him for a day.  Teach him to fish,
and you get rid of him for the weekend.

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch