- Offizieller Beitrag
Ich möchte, unten im Beispiel, die Comboboxen beim drücken der TAB-Taste überspringen. Es soll also direkt das nächste (TAB) bzw. das vorherige (SHIFT+TAB) Inputfeld den Focus erhalten.
Ich meine mich zu erinnern, dass es sowas wie ein NOTABSTOP als Style gab, aber jetzt, wo ich es brauche, finde ich das nicht mehr. ![]()
Spoiler anzeigen
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <WindowsConstants.au3>
$hGui = GUICreate('Test', 640, 280)
$idGroup1 = GUICtrlCreateGroup('Gruppe1', 10, 10, 620, 80)
$idInput1 = GUICtrlCreateInput('', 20, 30, 590, 20, BitOR($ES_LEFT, $ES_AUTOHSCROLL, $ES_WANTRETURN))
$idCombo1 = GUICtrlCreateCombo('test1', 20, 52, 590, 20, BitOR($CBS_DROPDOWNLIST, $WS_VSCROLL))
GUICtrlCreateGroup('', -99, -99, 1, 1)
$idGroup2 = GUICtrlCreateGroup('Gruppe2', 10, 100, 620, 80)
$idInput2 = GUICtrlCreateInput('', 20, 120, 590, 20, BitOR($ES_LEFT, $ES_AUTOHSCROLL, $ES_WANTRETURN))
$idCombo2 = GUICtrlCreateCombo('test2', 20, 142, 590, 20, BitOR($CBS_DROPDOWNLIST, $WS_VSCROLL))
GUICtrlCreateGroup('', -99, -99, 1, 1)
$idGroup3 = GUICtrlCreateGroup('Gruppe3', 10, 190, 620, 80)
$idInput3 = GUICtrlCreateInput('', 20, 210, 590, 20, BitOR($ES_LEFT, $ES_AUTOHSCROLL, $ES_WANTRETURN))
$idCombo3 = GUICtrlCreateCombo('test3', 20, 232, 590, 20, BitOR($CBS_DROPDOWNLIST, $WS_VSCROLL))
GUICtrlCreateGroup('', -99, -99, 1, 1)
GUISetState()
Do
Until GUIGetMsg() = -3