home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!munnari.oz.au!metro!extro.ucc.su.OZ.AU!willw
- From: willw@extro.ucc.su.OZ.AU (William Waring)
- Subject: Re: Icon default tool paths (was Re: A4000 Specs? Who knows.)
- Message-ID: <1992Sep13.045938.16761@ucc.su.OZ.AU>
- Sender: news@ucc.su.OZ.AU
- Nntp-Posting-Host: extro.ucc.su.oz.au
- Organization: /etc/organization
- References: <3707@faatcrl.UUCP> <paulk.1gta@terapin.com>
- Date: Sun, 13 Sep 1992 04:59:38 GMT
- Lines: 51
-
- In article <paulk.1gta@terapin.com> paulk@terapin.com (Paul Kienitz) writes:
- >> Not only do you have to adjust the offset from the title due to
- >> different height fonts in the title, you also have to take into
- >> account the offsets between each object. Computing the offsets
- >> isn't that hard, that's not the problem here, it's determining how
- >> many vertical elements you can put in a given window since you
- >> could render some number of objects below the window if the font
- >> used is too large.
- >
- >I took the cheap way out. I decided that the maximum size of font I
- >would support is 16, fit in as many gadgets as possible with a 16
- >point font, and documented it as "If you use a font bigger than 16
- >point you'll get ugly overlapping gadgets."
- >
- >Even cheaper, I do not at present put things closer together when a
- >small font like 8 point is used. This leaves extra-large gaps
- >between gadgets for the typical non-interlaced-screen user. In the
- >future I plan to scrunch things closer together when not interlaced,
- >supporting fonts no larger than 11 point in that case, and allow up
- >to 20 point or so when interlaced.
- >
- >But I have an excuse; my program runs okay under 1.2
- >
- >> And that's the crux of this biscuit, you can't adequately manage it
- >> due to not having a limitation on height or width of the supplied
- >> fonts.
- >
- >With apps that have their own independent font selection option (like
- >mine and presumably like JR-Comm) you can enforce a limit. It's
- >Workbench apps that have this trouble of unlimited font hugeness. I
- >guess in that case you can either refuse to run when the screen-size-
- >to-font-size ratio is too small, or use Topaz 9 or 8 in emergencies.
- >
- >As for horizontal spacing, I simply force everybody to use fonts of
- >width 8. If I ever support screen widths greater than 640, I'll have
- >to search out a lot of cases where text length is computed by "<< 3"...
-
- That was a little silly. Firstly, you should calculate if the font is too large
- and is going to overlap. If it is, then force it to an 8 point font.
- Secondly, you should use the ReqTools.library and call the rtSpread() function
- which will evently distribute gadgets throughout a defined space. It's real
- neat. We use it in X-Comm in the Macro button window where you have all your
- macros as little buttons on a window, and click them to execute. IT's worth
- doing...
-
-
- --
- --
- Well I guess I'd better say something witty...
- --
- Anyone can hold the helm when the sea is calm.
-