Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!unmvax!ncar!ames!pasteur!agate!labrea!csli!wilson From: wilson@csli.STANFORD.EDU (Nathan Wilson) Newsgroups: comp.sys.mac.programmer Subject: Re: Proper menu title appearance when all items are dimmed Message-ID: <6844@csli.STANFORD.EDU> Date: 20 Dec 88 02:24:37 GMT References: <1146@tank.uchicago.edu> <18216@agate.BERKELEY.EDU> <1723@pur-phy> <22121@apple.Apple.COM> Reply-To: wilson@csli.UUCP (Nathan Wilson) Organization: Center for the Study of Language and Information, Stanford U. Lines: 93 In article <18216@agate.BERKELEY.EDU> lippin@math.berkeley.edu writes: >(While we're at the wishing well, how about fixing FrameOval so that >it doesn't leave gaps?) . and various peole explain why... So I understand the problems with ovals and the reason for their existence. What I don't understand are the bugs in the drawing routines for framed round rects. The two bugs I've found are due to weird interactions between the pen dimensions and the corner oval dimensions. As far as I can tell none of the currently available graphics packages allow you to exercise these bugs since they only provide a limited set of oval width and height selections. The first bug occurs when the pen height is larger than the oval width. The effect is a widening of the *sides* of the round rect. It appears to be using half the oval width rather than the pen width. The second bug occurs when the oval height is set to 1. Such "round rects" collapse inward in width and develop very interesting feet coming out the bottom. This bug is a bit unfair as it does seem reasonable to require that both the oval dimensions be greater than one, but this should be documented. The first bug, on the other hand, is somewhat more disturbing since I actually wanted such a beast and was a bit disturbed when I found I couldn't get it. Finally, these bugs probably explain why all the standard graphics programs don't let you have direct control over oval width and height which has always struck me as a bug. The weirdest thing about both of these bugs is that if you flip both the oval dimensions and the pen dimensions they go away. Since most people can't easily create a round rect with any desired settings for the pen and oval dimensions, I have included a small binhexed file with this note that demonstrates the bugs. The file is in Scrapbook File format *NOT* PICT format. The easiest way to view after unbinhexing it, is to change its name to "Scrapbook File" and move it into your system folder (save any current scrapbook you might cherish by changing its name). The Scrapbook DA will now show you the goods. Of course if you're using one of the DAs that allow multiple scrapbooks you won't have to do all this name changing and moving around. The reason I didn't put it in PICT format is because many graphics programs decide that you didn't really mean to create such weird round rects so they change them for you. It's actually kind of interesting to paste these into such programs and see how they change them. Nathan Wilson Teleos Research nathan@teleos.com ------------snip-------------------snip----------------snip--------- (This file must be converted with BinHex 4.0) :$dCeEQYj8QpeEQ45C@0dF`"D8eP668&$8`%!!!!!!!!!#&SCD`!!!!!"!!!!"m` !!!E-!!!!MJ!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!$P0MFQ&`BQp [Db"'D@aPD`)!!!"D8eP668&$8`%!!(J!!&T6@9003806!3!!H!'!!!"'-!!!!!! !!!!!!!!!!!!!Rp+,6`!!!!!!!!KD!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!%!!!(LZ3!"iEN!!!5 r!##UF!3-!!!!(!3q!"e$48a1!!!!mR0jFhS!!!$q4P*&4J!!!3T#6N4-!!!"&NP $6L-!!!%LB`!!!3!$!J3!"3B(!3!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!`J$#!!!!!!"N!2J4!D"19`% !#J!!!!!!C!$i"`!"!#J,!$)!!8!!!!!!!'3!C+&1@J!8!!J!KJ"8!2F!#!#'!&3 !p`!!!5!"!!S!"`#&!&8!q$)!"`#&!&8!q!-!!`8!!!d!$#Z(&!Y6G'&bG#"ADA4 S$3d!#5S1!3dU$!j3C@iJ9f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