我想把GUICtrlCreateLabel控件的背景隐藏了只显示文字
本帖最后由 81206954 于 2009-12-25 21:25 编辑效果图:
须解决的问题: 我想把GUICtrlCreateLabel控件的背景隐藏了只显示文字.
代码:#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <TabConstants.au3>
#Include <GuiComboBox.au3>
#include <GUIConstants.au3>
#include <ProgressConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 193, 125)
$Label1 = GUICtrlCreateLabel("aaaaaaaaaaaaaaaaaaaa", 88, 128, 236, 25)
$Pic1 = GUICtrlCreatePic("bg.jpg", 0, 0,353, 364, $WS_CLIPSIBLINGS)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <TabConstants.au3>
#Include <GuiComboBox.au3>
#include <GUIConstants.au3>
#include <ProgressConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 193, 125)
GUISetBkColor(0xFF0000)
$Pic1 = GUICtrlCreatePic("c:\bliss.jpg", 0, 0,353, 364, $WS_CLIPSIBLINGS)
$Label1 = GUICtrlCreateLabel("aaaaaaaaaaaaaaaaaaaa", 88, 128, 236, 25)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd 设置背景为透明,请使用 GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) 语句
GUICtrlCreateL 的帮助说明如是说! OK了,谢谢两位~~~~~~~~~:face (26):
页:
[1]