| Appendix |
|
Using
the following techniques in ProvideX, you can retrieve
and incorporate bitmaps and icons for a variety of uses
in your GUI-based applications:
|
||||||||||||||||||||||||||||
| Also,
the NOMADS toolset provides a fully-integrated
development environment for creating and modifying
graphical screen layouts. For more information on
handling images in NOMADS, refer to the ProvideX
NOMADS Reference. This section discusses some the general concepts and ProvideX functionality involving the use of images in ProvideX applications. |
||||||||||||||||||||||||||||
| Internal vs External Images | Images
are recognised as internal in
ProvideX if they have a leading exclamation mark (!) in
their filenames; PRINT 'PICTURE'(220,210,600,500,"!Binoculars",2) Internal images can be accessed if they are embedded within the ProvideX executable itself, supplied in an associated resource library, or exist in a file located in the *BMP directory. All internal images have an implied light gray transparency. Use the 'PICTURE' mnemonic to return a list of available internal images (including the set of standard OS icons). For example:
To access images that are external to ProvideX, specify the path and filename instead of the exclamation mark; e.g.,
|
|||||||||||||||||||||||||||
| Recognized File Types | By default, only bitmap (bmp) or icon (ico) file types are supported automatically in ProvideX. By installing the Multiple Image Type add-on, you can extend graphic image support to include other file types such as jpg, tiff, png, pcx, pax, wmf, emf, apm, and tga. | |||||||||||||||||||||||||||
| Enhanced Icons | As
of Version 6, ProvideX is able to use ico files that
contain multiple icons, different sizes, and different
colour formats. Icons can also be retrieved from other
file types, including .exe, .dll, .ocx, .drv, .cpl, .scr
and .icl (icon libraries). The file types are described
below. The following optional syntax items may be applied in the 'PICTURE' and 'OPTION' mnemonics, as well as in control object directives, to define the location and attributes of an icon to be retrieved from an enhanced icon source:
|
|||||||||||||||||||||||||||
| *Note* | Syntax options (if applied) must appear in the above defined order. Also note the T,G, or N options can be applied to internal bitmaps (those prefixed with "!"). | |||||||||||||||||||||||||||
Standard
ProvideX search rules apply to the filenames. A leading
exclamation will also search the *BMP directory. Colour
depth selection (16, 256 or 24-bit) is chosen
automatically by the OS based on the user's current video
card colour depth and the colour depth of the icon
available within the file.
ProvideX accepts icons from the following file extensions:
|
||||||||||||||||||||||||||||
| Enhanced Icons in INI
Files The [Config] section of your INI file, allows for an ICON= using any of the above syntax for specifying the icon. If no filename is given or there is no leading @ sign, then the name given is assumed to be a resource name from either the currently loaded resource library (if any) or from the ProvideX executable; e.g.,
|
||||||||||||||||||||||||||||
| *Note* | Specifying an icon in a INI file can impact your user license count for ProvideX, as the icon name will be used for the Window Class Name, and ProvideX sessions with different Class Names do not share their user licenses. | |||||||||||||||||||||||||||
| Enhanced Icons in
Objects When using enhanced icons in objects, the filename and syntax must be enclosed in curly braces; e.g.,
|
||||||||||||||||||||||||||||
| *Note* | Transparency effects are currently not supported in menus or popup menus. | |||||||||||||||||||||||||||