At 02:32 PM 1/26/2016, Bill Niehaus wrote:
Is there a way to import/create a custom icon for a dialog or pause command
in RBase X?
Bill,
Yes, you Can!
When using the ICON_FILE parameter, a custom image can be added to the DIALOG
window to replace one of the available icons R:BASE provides.
If the custom image is smaller or large than 32x32 pixels, the display of the
image will not fit precisely within the image holder.
The RESIZE_ICON (ON/OFF) parameter will resize the image (except
.ico) to 32x32.
-- Example:
CLS
SET VAR vYesNo TEXT = 'Yes'
SET VAR vEndKey TEXT = NULL
DIALOG 'Do you wish to continue?' vYesNo vEndKey Yes +
CAPTION 'Confirm' +
OPTION ICON_FILE Logo128x128.jpg +
|RESIZE_ICON ON +
|WINDOW_BACK_COLOR WHITE +
|MESSAGE_BACK_COLOR WHITE +
|MESSAGE_FONT_NAME Tahoma +
|MESSAGE_FONT_COLOR RED +
|MESSAGE_FONT_SIZE 11 +
|BUTTON_YES_CAPTION &Yes +
|BUTTON_YES_COLOR WHITE +
|BUTTON_YES_FONT_COLOR GREEN +
|BUTTON_NO_CAPTION &No +
|BUTTON_NO_COLOR WHITE +
|BUTTON_NO_FONT_COLOR RED
-- More stuff here ...
NOTE: The following image formats are supported. There is no size limitation,
though 32x32 is recommended.
wmf | Windows Metafiles
emf | Enhanced Metafiles
ico | Icon Files
bmp | Windows Bitmap Files
png | Portable Network Graphics
jpeg | JPEG Image File
jpg | JPEG Image File
tif | TIFF Image File
tiff | TIFF Image File
gif | Compuserve GIF Image
jp2 | JPEG 2000 Image
j2k | JPEG 2000 Image
jpc | JPEG 2000 Image
tga | Truevision Targa File
vst | Truevision Vista File
afi | Truevision Targa File
pcx | ZSoft PC Paintbrush
pcc | ZSoft PC Paintbrush
dcx | DCX Image File
Have fun!
Feel free to reach out to me with any questions.
Very Best R:egards,
Razzak.