Hallo
ich möchte die Hintergrundfarbe in einem GUICtrlCreateTab(...) ändern.
Standardmässig ist die Hintergrundfarbe immer weiß ... das möchte ich aber nicht.
Ich möchte die Standardhintergrundfarbe haben, die ich auch bei der Erstellung einer GUI habe - ohne vorher eine Farbe definiert zu haben.
Das müsste eigentlich die Farbe sein, mit denen ich auch die Windows-Fenster bediene, oder ?
Code
#include <GUIConstantsEx.au3>
Example()
Func Example()
GUICreate("My Test-GUI Tab",600,150,-1,-1)
GUISetBkColor(0x00E0FFFF)
GUISetFont(9, 300)
GUICtrlCreateTab(10, 10, 500, 100)
GUICtrlCreateTabItem(" Typ HPL ")
GUICtrlCreateLabel("Label 00", 30, 80, 50, 20)
GUICtrlCreateButton("OK", 20, 50, 50, 20)
GUICtrlCreateInput("DEFAULT", 80, 50, 70, 20)
GUICtrlCreateTabItem(" Typ LP ")
GUICtrlCreateLabel("Label 41", 30, 80, 50, 20)
GUICtrlCreateCombo("", 20, 50, 90, 120)
GUICtrlSetData(-1, "LP 40/80|LP 40/120|LP 40/175|LP 40/190|LP 40/235|LP 40/275|LP 40/295|LP 40/430|LP 50/175|LP 50/425|LP 50/695|LP 50/950", "LP 40/175")
GUICtrlCreateButton(" Übernehmen ", 180, 50, 120, 20)
GUICtrlCreateTabItem(" Typ LPSA ")
GUICtrlSetState(-1, $GUI_SHOW)
GUICtrlCreateLabel("Label 22", 30, 80, 50, 20)
GUICtrlCreateButton("...", 140, 50, 50)
GUICtrlCreateTabItem("")
GUICtrlCreateLabel("Label 33", 20, 130, 50, 20)
GUISetState(@SW_SHOW)
Local $idMsg
While 1
$idMsg = GUIGetMsg()
If $idMsg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
EndFunc ;==>Example
Alles anzeigen