PHP Code:
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Project Kilabel VBI - Staing v0.1", 315, 208, 192, 124)
$Combo1 = GUICtrlCreateCombo("", 8, 32, 145, 25)
GUICtrlSetData(-1, "Rot (0x0ff0000)|Blau (0x00042ff)|Grün (0x000cf70)|Gelb (0x0fcff00)|Schwarz (0x0000000)")
$Label1 = GUICtrlCreateLabel("Farbe einstellen", 8, 8, 78, 17)
$Label2 = GUICtrlCreateLabel("Text erstellen", 8, 64, 67, 17)
$Input1 = GUICtrlCreateInput("Text Feld", 8, 88, 145, 21)
GUICtrlSetLimit(-1, 21)
$Label3 = GUICtrlCreateLabel("Schriftart erstellen", 8, 120, 88, 17)
$Combo2 = GUICtrlCreateCombo("", 8, 144, 145, 25)
GUICtrlSetState(-1, $GUI_DISABLE)
$Button1 = GUICtrlCreateButton("Text Feld erstellen", 8, 176, 99, 25, 0)
$Button2 = GUICtrlCreateButton("Cancel", 112, 176, 43, 25, 0)
$Icon1 = GUICtrlCreateIcon("C:\Users\ALex\Desktop\Pics\Speacial.ico", 0, 160, 64, 143, 142, BitOR($SS_NOTIFY,$WS_GROUP))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$1 = GUICtrlRead($Input1)
$Label0 = GUICtrlCreateLabel($1 , 160, 32, 151, 17)
If $Combo1 = "Rot (0x0ff0000)" Then
GUICtrlSetColor($Label0, 0x0ff0000)
ElseIf
$Combo1 = "Blau (0x00042ff)" Then
GUICtrlSetColor($Label0, 0x00042ff)
ElseIf
$Combo1 = "Grün (0x000cf70)" Then
GUICtrlSetColor($Label0, 0x000cf70)
ElseIf
$Combo1 = "Gelb (0x0fcff00)" Then
GUICtrlSetColor($Label0,0x0fcff00)
ElseIf
$Combo1 = "Schwarz (0x0000000)" Then
GUICtrlSetColor($Label0, 0x0000000)
EndIf
EndSwitch
WEnd







