Home | Sign in | English US
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
Modifies one of the buttons found on the application thumbnail in the taskbar.
Important: This feature is available from Windows 7.
// Initialize a multimedia reader
SysThumbnailAddButton("reading.ico", "Reading", Reading)
SysThumbnailAddButton("pause.ico", "Pause", Pause, sysbtnGrayed)
SysThumbnailAddButton("stop.ico", "Stop", "", sysbtnGrayed)
SysThumbnailAddButton(CompleteDir(fExeDir()) + "close.gif", "Close", "", sysbtnCloseThumbnail)

// Modify a multimedia reader
SysThumbnailModifyButton(1, "fastReading.ico", "Reading", Reading)
<Result> = SysThumbnailModifyButton(<Button Number> , <Image to Display> [, <Tooltip> [, <Procedure Name> [, <Options>]]])
<Result>: Boolean
  • True if the modification was performed,
  • False otherwise.
<Button Number>: Integer
Rank of the button to modify (included between 1 and 7). When adding a button, SysThumbnailAddButton returns the rank of the added button.
<Image to Display>: Character string in Ansi or Unicode format (with quotes)
Path of the icon file to display. This file can be found on the disk or in the application library (WDL file). If this parameter is not specified, the icon will not be modified.
  • If the icon used is not in 16x16 format, it will be automatically resized by Windows.
  • The following image formats are supported in Windows:
    • Bitmap (*.BMP)
    • Graphics Interchange Format (*.gif)
    • Joint Picture Experts Group (*.jpg ; *.jpeg)
    • Kodak Photo CD (*.pcd)
    • PaintBrush (*.pcx)
    • Adobe Photoshop Format (*.psd)
    • TrueVision TARGA (*.tga)
    • Tagged Image File Format (*.tif ; *.tiff)
      Note: the "tiled tiff" option of the tiff 6.0 standard is not supported. In this case, we advise you to save the image in tiff 5.0 standard.
    • Portable Network Graphics (*.png)
    • Windows MetaFiles (*.emf ; *.wmf)
    • Icons (*.ico ; *.icw)
      Versions 22 and later
      • HQ display (High Quality) available.
      • Management of sheets in transparent BMP format (32 bits).
      New in version 22
      • HQ display (High Quality) available.
      • Management of sheets in transparent BMP format (32 bits).
      • HQ display (High Quality) available.
      • Management of sheets in transparent BMP format (32 bits).
    • Cursors (*.cur)
    • Portable Document Format (*.pdf)
    • Versions 15 and later
      Scalable Vector Graphics (*.svg)
      New in version 15
      Scalable Vector Graphics (*.svg)
      Scalable Vector Graphics (*.svg)
    Note: To manage the pdf and svg formats, GDIPLUS.DLL must be installed for the computers running Windows 2000 and earlier. For the later versions, this DLL is supplied with Windows. See GDI+ framework for more details.
<Tooltip>: Optional character string in Ansi or Unicode format (with quotes)
Text of the rollover tooltip of the button.
If this parameter is not specified, the text of the tooltip is not modified.
If this parameter corresponds to an empty string (""), the previous tooltip will be erased.
<Procedure Name>: Optional character string
Name of WLanguage procedure called during a click on the button.
No procedure will be started if this parameters corresponds to an empty string ("").
If this parameter is not specified or if it is equal to Null, the name of the procedure will not be modified.
<Options>: Optional Integer constant
Management mode of button. The available constants are as follows:
(Default value)
The button is active.
sysbtnCloseThumbnailA click performed on the button is used to close the thumbnail of the application.
sysbtnGrayedThe button is grayed.
sysbtnInactiveThe button cannot be clicked (this constant can be used only when the button is used as notification icon).
sysbtnInvisibleThe button is invisible (its location is empty in the button bar).
sysbtnNoBackgroundOnly the button icon is drawn (not the button border). This constant can be used when the icon contains the border drawing.

If this parameter is not specified, the options remain identical to the ones defined by SysThumbnailAddButton.
Only 7 buttons can be associated with a thumbnail.
WINDEVReports and Queries wd190std.dll
Minimum required version
  • Version 15
This page is also available for…
Click [Add] to post a comment