PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of Icon variables
  • Functions that handle the Icon variables
  • Version 20: Automatic improvements
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The Icon type is used to define the advanced characteristics of an icon. The characteristics of this icon can be defined and modified by several WLanguage properties.
Note: See Declaring a variable for more details.
Example
// Load an icon
MyIcon is Icon = "Logo.ico"
// Modify the first image of the icon
MyIcon..Image[1]..Image = "C:\MyImages\logo48.gif"
MyIcon..TransparencyColor[1] = LightMagenta
MyIcon..Format[1] = icoFormatBMP
// Save the modified icon
dSaveImageICO(MyIcon, "Logo.ico")
Remarks

Properties specific to the description of Icon variables

The following properties can be used to handle an icon:
Property nameType usedEffect
Versions 20 and later
BitPerPixel
New in version 20
BitPerPixel
BitPerPixel
Array of integersArray containing, for each image of the icon, the number of bits per image pixel.
TransparencyColorArray of ColorArray containing the transparency color for each image of the icon.
FormatArrayArray containing the format for each icon image. The supported formats are:
  • BMP: the corresponding constant is icoFormatBMP.
  • PNG: the corresponding constant is icoFormatPNG.
ImageArray of ImageArray containing the images for each icon format.
The dimensions of the specified images are kept. The system will choose the most suitable image according to its dimensions and to its number of colors (the first image found will be selected if two images have the same dimensions and the same number of colors).
Versions 20 and later
Palette
New in version 20
Palette
Palette
Array of PaletteColor palette for each icon image.
ValueImage (memo)Value of the icon. This property is used to load an icon from a buffer, a file or a memo.
Note: These properties can be used with one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Functions that handle the Icon variables

Versions 19 and later
dSaveImageICO
New in version 19
dSaveImageICO
dSaveImageICO
Saves an image in icon format either in a file, or in memory.
Versions 09 and later
SysIconAdd
New in version 09
SysIconAdd
SysIconAdd
Adds an icon into the taskbar (bottom right corner of screen).
Versions 15 and later
SysIconAddImage
New in version 15
SysIconAddImage
SysIconAddImage
Adds an icon that is superimposed over the icon of the application in the taskbar.
Versions 09 and later
SysIconModify
New in version 09
SysIconModify
SysIconModify
Modifies the icon file and/or the rollover message of an icon in the taskbar (bottom right corner of the screen).
Versions 20 and later

Version 20: Automatic improvements

The Icon type benefits from the following new features:
  • Mask
  • Preservation of the initial format (image depth) during backup.
  • Support for BMP 2, 16 and 256 colors,
  • Initialization of transparency color with an off-palette color.
New in version 20

Version 20: Automatic improvements

The Icon type benefits from the following new features:
  • Mask
  • Preservation of the initial format (image depth) during backup.
  • Support for BMP 2, 16 and 256 colors,
  • Initialization of transparency color with an off-palette color.

Version 20: Automatic improvements

The Icon type benefits from the following new features:
  • Mask
  • Preservation of the initial format (image depth) during backup.
  • Support for BMP 2, 16 and 256 colors,
  • Initialization of transparency color with an off-palette color.
Minimum required version
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment