![]() |
Icons and ImagesAll pictures and icons used throughout an application developed with the ToolKit are stored in the $PROJECT/data/icons directory. The graphics formats currently supported are SunRaster, XWindowDump and GIF files.A special case of icon usage are the iconmenus which are used for navigation and as triggers for system actions throughout the library functions. The standard icon sizes used in the iconmenus are 100x75 pixel and 75x50 pixel. All the properties of all iconmenus in the system are defined in the configuration files in the $PROJECT/defaults directory Eg., the specifications in the file layout.lo for the toplevel iconmenu containing the {\sf Info} and {\sf Exit} button look as follows: *data.dir: data/ # the data directory *icon.dir: icons/ # the icon directory *main.iconmenu.x: 865 # the x-coordinate for this iconmenu *main.iconmenu.y: 740 # the y-coordinate for this iconmenu *main.iconmenu.n_icons 2 # number of icons in the iconmenu *main.iconmenu.rows: 1 # number of rows of icons *main.iconmenu.cols: 2 # number of columns of icons *main.iconmenu.border: 2 # the borderwidth of the iconmenu *main.iconmenu.gap: 30 # spacing between the icons *main.icon.width: 100 # width of each icon (in pixel) *main.icon.height: 75 # height of each icon (in pixel) *main.iconmenu.icon1: info_lg # filename of the first icon *main.iconmenu.icon2: exit_lg # filename of the second icon To create new icons and pictures all kinds of graphical editors (XPaint, Corel Draw, etc.) as well as scanned pictures can be used. It is important, however, to convert the icons and pictures to one of the supported formats and to adapt/convert their associated colormaps to the one used in the system. Filtering Icons and PicturesWe have indexed 216 colors (0 to 215) for shared use in ToolKit applications. In order to display pictures and icons, you must filter them into this color table. The command to filter is called SCF for sunraster files and giffilter for GIF files. The syntax is:FILTER icon.raw icon.scf
| |
![]() © Copyright 1995-2012 by: ESS Environmental Software and Services GmbH AUSTRIA | print page | |