请问TAB表标签名称的颜色如何改变
请问TAB表标签名称的颜色如何改变?另外如果给标签上插入自定义图标如何操作?
谢谢? 加入图标的问题。
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
Local $path=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt","InstallDir")&"\Aut2Exe\Icons"
$Form1 = GUICreate("", 215, 175, 465, 282)
$Tab1 = GUICtrlCreateTab(0, 0, 180, 23,$BS_ICON)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
GUICtrlSetImage(-1,$path&"\cherry.ico")
$TabSheet2=GUICtrlCreateTabItem("TabSheet2")
GUICtrlSetImage(-1,$path&"\favicon.ico")
GUICtrlCreateTabItem("")
$Button1 = GUICtrlCreateButton("Button1", 64, 112, 73, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Tab1
Switch GUICtrlRead($Tab1)
Case 0
MsgBox(64,"TabItem1","TabItem1",10)
Case 1
MsgBox(64,"TabItem2","TabItem2",10)
EndSwitch
EndSwitch
WEnd
谢谢,
请问为何要读注册表,不能直接读取ICO 目录吗?
另外TAB的标签字体不能改变颜色吗? 回复 3# andersonljw
谁知道你的AUTOIT安装在什么地方?
页:
[1]