RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Previous|Next

  • Tickets
  • » Ticket #211

Ticket #211 (Fixed)Tue Jul 21 14:55:18 UTC 2009

ScrollList_SetFont and TextArea_SetFont don't interpret identifier "" like a NULL pointer.

Reported by: Christopher Bazley (288) Severity: Enhancement
Part: RISC OS: Module Release:
Milestone: Status Fixed

Details by Christopher Bazley (288):

The TextGadgets module provides two methods ScrollList_SetFont and TextArea_SetFont, which are analogous to the (undocumented) methods that the Window module provides to set the text font for dis`playing gadgets of type ActionButton, RadioButton, DisplayField, WritableField, StringSet or Button.

Unlike the methods provided by the Window module, the TextGadgets module does not interpret an empty string (R4 points to a control character) as equivalent to a NULL string pointer (i.e. the value of R4 is 0). Instead, it passes an empty string straight through to SWI Font_FindFont, which returns a slightly puzzling error " font not found".

This lack of flexibility makes calling these methods via a veneer awkward in languages such as BASIC where there is no representation of a NULL string that is distinct from an empty string. Hence, it is necessary to use a different SYS statement when trying to unset a gadget’s custom font (i.e. revert to using the desktop font).

Changelog:

Modified by Sprow (202) Sun, February 28 2010 - 10:44:01 GMT

  • Status changed from Open to Fixed

Added in Gadgets 0.31.

  • Comment on, or change status of, this ticket

Previous|Next

Search tickets

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Options

  • Tickets
  • New ticket
  • Milestones
  • Subversion: Changesets
  • Subversion: Browse
  • CVS: Revisions
  • CVS: Browse
  • Search

RSS feeds Rss

  • Tickets
  • Everything!
  • More feeds...
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Collaboa theme is distantly based on the Collaboa default layout

Valid XHTML 1.0  |  Valid CSS

Powered by Collaboa
This site runs on Rails

Hosted by Arachsys