Hi,
wie kann ich den Text einer Combobox mithilfe einer Inputbox und einem Button ändern, ohne einen neuen Eintrag zu erstellen?
Ich habe es so probiert:
Spoiler anzeigen
#include
#include
#include
#include
#include
#Region ### START Koda GUI section ### Form=
$Form = GUICreate("Test", 162, 69, 327, 241)
GUISetBkColor(0xFFFFFF)
$Combo1 = GUICtrlCreateCombo("Test 1", 8, 8, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "Test 2|Test 3")
$Input1 = GUICtrlCreateInput("Text", 8, 40, 97, 21)
$Button1 = GUICtrlCreateButton("Save", 108, 36, 43, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUICtrlSetData($Combo1, $Input1)
EndSwitch
WEnd
Bei diesem Script wird aber ein neuen Eintrag erstellt und der Text ist nicht der Text der Inputbox , sondern 4