|
Slide 8.5: Line-by-line anatomy of Forms.c (cont.) Slide 9.1: Menus Home |
|
Forms.c (Cont.)
p = (CharPtr) MemHandleLock( h );
h: Chunk handle
StrIToA( p, cnt );
s: Pointer to a string of size maxStrIToALen in which to store the results
i: Integer to convert
MemHandleUnlock( h );
h: The chunk handle
FldSetTextHandle( fld, (Handle) h );
fldP: Pointer to a field object (FieldType structure)
textHandle: Unlocked handle of a field's text string
FldDrawField( fld );
fldP: Pointer to a field object (FieldType structure)
usable attribute must be true or the field won't be drawn.