Hallo,
folgendes Problem:
Ich habe eine Form mit mehreren Buttons.
Diese Buttons werden per TAB angewählt.
Also nicht per Click!
Und da liegt mein Problem.
Wie kann ich sobald ein "Button" den Focus bekommt
genau diesem Button sagen deine Größe ist z.B. @DesktopWidth -20, @DesktopHeight -20
Bei Lostfocus ist er wieder normal. Beim weiteren TAB wird der nächste Button vergrößert.
Hat das Input den Focus sind alle Buttons normal.
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>
$Form1 = GUICreate("Form1", 607, 206, 252, 144)
$Input1 = GUICtrlCreateInput("Input1", 24, 40, 121, 21)
$Button1 = GUICtrlCreateButton("Button1", 24, 96, 163, 73, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Button2", 200, 96, 163, 73, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Button3", 376, 96, 171, 73, $WS_GROUP)
ControlFocus($Form1, "", 3)
[/autoit] [autoit][/autoit] [autoit]GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Local $control = ControlGetFocus($Form1)
Local $hHandle = ControlGetHandle($Form1, "", $control); Handle des selektierten Controls holen
Local $ICtrlId = _WinAPI_GetDlgCtrlID($hHandle); CtrlId aus dem Handle erstellen
MsgBox(0, "", $control)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func _Focus()
[/autoit] [autoit][/autoit] [autoit]endfunc
[/autoit]Hab mit ControlFocus, ControlgetFocus... probiert
Hoffe Ihr habt ne Idee
Liebe Grüße
Ilse