Skip to main content

Resources Revisited

  • Chapter
Book cover Programming with Motif™
  • 38 Accesses

Overview

Chapter 3 presented resources and resource files: what they were and how to use them. This chapter extends that presentation, with some of the more esoteric uses of resources and their relations.

It begins with the use of program instance names, a method by which a resource file can contain two (or more) sets of specifications for a single program, with the user able to choose a set at runtime. This is followed by a description of command-line options, which are used to change resource values at runtime.

The next topic is resource conversion, also known as type conversion. This is a mechanism by which the toolkit converts data from one type to another; it is primarily used to convert the ASCII text of a resource file to the internal format of a resource. There are two parts to this description: the first is how to write and install a resource converter; the second is how to call an existing converter from within application code.

The chapter finishes with a description of application resources: program variables that can be set at runtime via the resource mechanism.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 1992 Springer-Verlag New York, Inc.

About this chapter

Cite this chapter

Gregory, K.D. (1992). Resources Revisited. In: Programming with Motif™. Springer, New York, NY. https://doi.org/10.1007/978-1-4612-2954-4_16

Download citation

  • DOI: https://doi.org/10.1007/978-1-4612-2954-4_16

  • Publisher Name: Springer, New York, NY

  • Print ISBN: 978-0-387-97877-2

  • Online ISBN: 978-1-4612-2954-4

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics