Creates graphic button or graphic image
#include "Window, Screen, Mouse and Control.au3" _GraphicButton( $sGraphicFile, $sText, $sToolTip, $iLeft, $iTop [, $iWidth = -1 [, $iHeight = -1 [, $iStyle = -1 [, $iExStyle = -1 ]]]] ) |
$sGraphicFile | File path + name containing png/jpg image |
$sText | Text of button, text = 0 then image is shown without a button |
$sToolTip | Text of tooltip, if empty no tooltip is made |
$iTop | Left position |
$iLeft | Top position |
$iWidth | Width of button, if image control width is loaded image width |
$iHeight | Height of button, if image control height is loaded image height |
$iStyle | Button or image style |
$iExStyle | Button or image extended style |
handle value | Button control handle |
_GraphicButtons, _GraphicButtonsCount, _GraphicButtonsSetBkColor, _GraphicButtonWidth, _GraphicButtonHeight, _GraphicButtonText, _GraphicButtonTooltip
The library example has code to create a graphical buttons with text and an On/Off image.