-- card: 4069 from stack: in.1 -- bmap block id: 0 -- flags: 0000 -- background id: 3468 -- name: dolist -- part 3 (button) -- low flags: 00 -- high flags: A003 -- rect: left=360 top=119 right=140 bottom=442 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Examples ----- HyperTalk script ----- on mouseUp visual barn door open go card dolist1 end mouseUp -- part contents for background part 1 ----- text ----- DoList Command: When copying this resource, make sure to also copy the dialog box resources using ResEdit. DoList is a single command which has the ability to handle a scrolling list of text strings. This is a fundamental part of the Macintosh interface, allowing a user to select one or more items from a long list. As a HyperCard developer, all that is needed is to create a list, pass it to the DoList command, which returns the item(s) that the user selected. This list is composed of several items in a HyperTalk container separated by commas. The item(s) that the user selects are returned in the property named 'the result'. If the user clicked on the Cancel button, 'the result' will be empty. Otherwise, it will contain one or more items, with the first item being the number of items selected, and the items themselves following. The Modes: DoList can be used in three different modes: Mode 1: Uses a dialog resource for the list. This requires 2 additional resources in the stack, 1 'DLOG' and its 'DITL' resource. This is explained in detail later. Mode 2: Requires NO additional resources at all. This is the simplest and most common mode. The list box will always appear in the center of the HyperCard window, and will always have the same orientation. Mode 3: Same as mode 2, but the list box position can be anywhere on the HyperCard window. The size and orientation of the box are not changed, only its location on the window. Mode Parameters: The mode being used depends on the parameters passed to the DoList command. The parameters for each mode are: Mode 1: DoList ,, Mode 2: DoList