Bookstore Inventory
1. Add an OverviewAbstract
slot to the newtOverLayout with the following contents:
func(target, bbox) begin local t := ""; // set the string t to a value based on slots // from target, a soup entry if target.acquireDate then t := t && ShortDateStr(target.acquireDate, kFormatDefault); if target.numberInStock then t := t && NumberStr(target.numberInStock); t := t && target.author && target.title; return MakeText(t, bbox.left + 18, bbox.top, bbox.right, bbox.bottom - 18); end;
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996