[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Appreciate help:*editable-text-dialog-item* handles
- To: email@example.com
- Subject: Appreciate help:*editable-text-dialog-item* handles
- From: Andrew L. M. Shalit <alms>
- Date: Wed, 15 Aug 90 10:27:33 -0400
- Cc: info-macl
- In-reply-to: Matthew Cornell's message of Tue, 14 Aug 90 13:02:58 EDT <9008141702.AA05369@unix1.CS.UMASS.EDU>
From: firstname.lastname@example.org (Matthew Cornell)
However, what's stored in the dialog-item-handle is *not* a TERec
handle (don't try to inspect it one a Mac+ as one!) but a 4 byte
handle to something.However, the window's ccl::current-text instance
variable *is* what I want.
There is only one TERec per dialog. This is shared by all the editable
text dialog items. Whichever one is the 'current-editable-text' gets
to use the TERec.
The TERec is stored in the TE-HANDLE instance variable in the dialog.
The DIALOG-ITEM-HANDLE of editable-text-items is a handle to a block
of raw text. When an editable-text-item is made current, its
dialog-item-handle is stored on the TERec's TERec.hText field. The
line-height, font-ascent, view-rect, and dest-rect of the TERec also
need to be adjusted.