RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

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

  • Wimp_TextOp
  • Wimp_TextOp 0
  • Wimp_TextOp 1
  • Wimp_TextOp 2
  • Wimp_TextOp 3
Revised on June 28, 2009 14:17:31 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: Wimp_TextOp, Wimp_TextOp 0, Wimp_TextOp 1, Wimp_TextOp 2, Wimp_TextOp 3

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys