RISC OS Open

RISC OS  OPEN


A fast and easily customised operating system for devices using ARM processor cores.

Documentation: Wimp_TextOp 4

Programmer’s Reference Manuals
» Part 7 – The Desktop
» The Window Manager
» SWI Calls
» Wimp_TextOp
» Wimp_TextOp (Truncate)

Wimp_TextOp (Truncate)

(Reason Code 4)

Entry
R0 4
R1 Pointer to string
R2 Pointer to output buffer
R3 buffer size, or
  0 to find required size
R4 Maximum width in OS units

Exit
R0 Required buffer size
R1 Preserved
R2 Preserved
R3 Preserved

Use

With a reason code of 4, this call fills the buffer with the string dependant on the OS width specified.

Notes

The buffer is filled with the string, and dependant on the width, may be truncated but with a ’...’ suffix appended.

Depending on the alphabet and Wimp font, either an ellipsis character or three full-stops will be used.

See also

   .