This trap sets the character size and spacing.
Call Parameters | Return Parameters | ||
---|---|---|---|
D0.B | $2D | D0.L | Error return. |
D1.W | Width | D1.L | Corrupted. |
D2.W | Height | D2.L | Preserved. |
D3.W | Timeout | D3.L | Preserved. |
A0.L | Channel ID | A0.L | Preserved. |
A1.L | A1.L | Corrupted. |
ERR_NC | Not complete. |
ERR_NO | Channel not open. |
The example below shows the use of this trap. It is assumed that A0 contains the window's ID.
size moveq #sd_setsz,d0 ; $2D moveq #3,d1 ; Largest width moveq #1,d2 ; Largest height moveq #-1,d3 ; Timeout trap #3 ; Set the new size and spacing tst.l d0 ; OK? . . bne error ; . . no!