依旧漂泊 发表于 2015-11-6 12:25:49

添加图片无法显示手型与提示[已解决]

本帖最后由 依旧漂泊 于 2015-11-7 12:32 编辑

GUICtrlCreateButton按钮能否设置为透明?
另加上图片无法无法显示手型与提示        #include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
        $Form2 = GUICreate('', 382, 290, @DesktopWidth / 2 + - 190, @DesktopHeight / 2 + - 165, $WS_POPUP, $WS_EX_TOOLWINDOW, WinGetHandle(AutoItWinGetTitle()))
        $Pic = GUICtrlCreatePic(@TempDir & '\mm.jpg', 0, 0, 382, 290)
        $Label1 = GUICtrlCreateLabel("加上图片无法显示手型与提示", 48, 88, 316, 33)
        GUICtrlSetFont($Label1, 8, 400, -1, "MS Sans Serif")
        GUICtrlSetColor($Label1, 0x3F3FE2)
        GUICtrlSetTip(-1, "tip of my label")
        GUICtrlSetBkColor($Label1, $GUI_BKCOLOR_TRANSPARENT)
        GUICtrlSetCursor($Label1, 0)
        GUISetState(@SW_SHOW)
        Sleep(5000)

chzj589 发表于 2015-11-7 10:42:48

回复 1# 依旧漂泊
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form2 = GUICreate('', 382, 290, @DesktopWidth / 2 + - 190, @DesktopHeight / 2 + - 165, $WS_POPUP, $WS_EX_TOOLWINDOW, WinGetHandle(AutoItWinGetTitle()))
$Pic = GUICtrlCreatePic(@TempDir & '\mm.jpg', 0, 0, 382, 290)
;插入
GUICtrlSetState($Pic, $GUI_DISABLE)

$Label1 = GUICtrlCreateLabel("加上图片无法显示手型与提示", 48, 88, 316, 33)
GUICtrlSetFont($Label1, 8, 400, -1, "MS Sans Serif")
GUICtrlSetColor($Label1, 0x3F3FE2)
GUICtrlSetTip(-1, "tip of my label")
GUICtrlSetBkColor($Label1, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetCursor($Label1, 0)
GUISetState(@SW_SHOW)
Sleep(5000)

lxwlxwayy 发表于 2015-11-7 11:51:35

代码不错学习了

依旧漂泊 发表于 2015-11-7 12:31:45

回复 2# chzj589


   
谢谢,{:face (327):}

wwwmhk 发表于 2015-11-12 15:02:53

应该不错的啊,OK了
页: [1]
查看完整版本: 添加图片无法显示手型与提示[已解决]