ITT Rule IDL Version 7.0 User Manual Page 44

  • Download
  • Add to my manuals
  • Print
  • Page
    / 430
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 43
44 Chapter 2: iTool System Architecture
System Resources iTool Developers Guide
System Resources
This section contains information on resources used by the iTool system.
Icon Bitmaps
Some iTool components have associated icons. Icons for iTool components are
displayed in the tree view of a browser window.
Bitmaps used as icons in the iTool system must be either
.bmp or .png files. The
images contained in icon bitmap files can be either True Color (24-bit color) images
or paletted (8-bit color) images.
Note
There are different requirements for bitmap images that will be displayed on button
widgets. See “Using Button Widgets” (Chapter 4, Widget Application
Programming) for details.
By default, bitmap files for icons used by the iTool system are stored in the
bitmaps
subdirectory of the
resource subdirectory of the IDL distribution. If an icon’s
bitmap file is located in this directory, specify the base name of the file — without the
filename extensionas the value of the ICON property of the component. For
example, to use the file
arrow.bmp, located in the resource/bitmaps
subdirectory of the IDL distribution, specify the value of the ICON property as
follows:
ICON = 'arrow'
If you include the filename extension when setting the ICON property, the iTool
system assumes that the specified value is the full path to the bitmap file. For
example, to use the file
my_icon.png, stored in the directory /home/mydir as an
icon, specify the value of the ICON property as follows:
ICON = '/home/mydir/my_icon.png'
If you are distributing your iTool code to others, you may want to specify a path
relative to the location of your code for the icon bitmap files. To retrieve the path to
the file containing code for a given routine, you could use code similar to the
following:
; Use my own Icon bitmap
iconName = 'my_icon.png'
routineName = 'myVisualizationType__define'
routineInfo = ROUTINE_INFO(routineName, /SOURCE)
path = FILE_DIRNAME(routineInfo.path, /MARK_DIRECTORY)
Page view 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 429 430

Comments to this Manuals

No comments