PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

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
..Icon is used to:
  • Find out the icon displayed in the title bar of a window.
  • Modify the icon displayed in the title bar of a window.
Example
// Find out the icon displayed in the "WIN_CustomerInput" window
ResIcon = WIN_CustomerInput..Icon
// Modify the icon displayed in the "WIN_CustomerInput" window

// By using a ".ico" file:
WIN_CustomerInput..Icon = "MyIcon.ico"

// By using an Image control:
WIN_CustomerInput..Icon = dSaveImagePNG(IMG_Image1, inMemory)
Syntax

Retrieving the window icon Hide the details

<Result> = <Window Name>..Icon
<Result>: Character string
Icon of specified window. The icon name is returned without its path.
<Window Name>: Character string
Name of window to use.

Modifying the window icon Hide the details

<Window Name>..Icon = <New Value>
<Window Name>: Character string
Name of window to use.
<New Value>: Character string or Buffer variable
Corresponds to:
  • Name and path (full, relative or UNC) of new icon. This icon must be in ".ico" format.
    Notes:
    • If the path is not specified, the icon file will be sought in the executable directory.
    • The current icon will be kept if the icon file does not exist.
  • Byte string returned by one of the following functions:
Remarks
  • The icon of first project window is displayed:
    • In the Windows taskbar.
    • In the navigation window when pressing Alt + Tab.
  • The modification of an icon can only be performed on the opened windows. A WLanguage error occurs if the window is closed.
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment