Thread View: comp.sys.mac.oop.macapp3
1 messages
1 total messages
Started by Research SW Design, D Goldman,PR...
Sun, 27 Dec 1992 21:23
TEditText Bug
Author: Research SW Design, D Goldman,PR...
Date: Sun, 27 Dec 1992 21:23
Date: Sun, 27 Dec 1992 21:23
36 lines
2194 bytes
2194 bytes
Dear MacApp'ers --
I've wasted enough time on this for tonight, so I'll invite any of you who have
dealt with this to help me...
It looks like our old friend the floating TEView is NEVER set to prefer outline
fonts. Even if in ViewEdit you have told the TEditText to "Prefer Outline
Fonts".
The result of this inconsistency: Make a TEditText field that uses 9-point
Geneva, and prefers outline fonts. Type something into this TEditText field
(or, more accurately, into its floating TEView). Move to another field, so that
the floating TEView goes away. (The text on the screen at this point is that
which the floating TEView drew, using a non-outline font.) Cover up part of the
TEditText field with some other window. Then uncover the TEditText field. Now
the TEditText object redraws the missing text, using an outline font. Since the
two versions of 9-point Geneva have slightly different metrics (at least on my
System 7.0 machine), the two parts of the text are noticeably out of alignment
with each other!
I would submit that this is a small bug in MacApp. In the accompanying link
("Takeover Example") I will use its fix (which is the part that I'm not going
to spend more time on tonight -- your suggestions or corrections are invited)
as an illustration of MacApp support/ownership issues.
-- Dave Goldman
Research Software Design
P.S. The work-around for now, of course, is to go back to ViewEdit and uncheck
"Prefer Outline Fonts".
P.P.S. All right, I couldn't help myself! The fix should probably be to have
TEditText::InstallFloatingTEView set the floating TEView's fPreferOutline field
to this->fPreferOutline. (Perhaps TTEView should have a mutator method to do
this. At the moment you can only set TTEView::fPreferOutline via ViewEdit!)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads