AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones del sistema
  • Adding an icon to the taskbar
SysIconAdd (Example)
Adding an icon to the taskbar
WINDEVReportes y ConsultasCódigo de Usuario (UMC) The following code is used to add an icon into the taskbar. The icon file is named "C:\MyIcons\Icons.ICO". The popup menu is named "IconMenu". The rollover message is "Sales 2001". During a mouse operation on the icon, the "OpenFile" procedure is called. If the mouse operation performed on the icon corresponds to a double left click, the "OpenFile" procedure opens the file named "C:\MyDocuments\Sales2001.DOC" in Word via ShellExecute.
// Initialize the AddIcon window
CONSTANT
WM_LBUTTONDBLCLK = 515
END
 
// Add an icon into the taskbar
SysIconAdd("C:\MyIcons\Icons.ICO", "IconMenu", "Sales 2001", "OpenFile")
// Local OpenFile procedure
PROCEDURE OpenFile(MouseMessage)
// Left double click?
IF MouseMessage = WM_LBUTTONDBLCLK THEN
 // Open the"C:\MyDocuments\2001Sales.DOC" file in Word
 ShellExecute("C:\MyDocuments\Sales2001.DOC")
END
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

Señalar un error o enviar una sugerencia | Ayuda local