Hallo,
ich habe folgendes Problem:
Ich ermittele zuerst ein Control mit der + Taste.
Das geht.
Aber wie kann ich dann diesem Control eine andere Größe zuteilen?
Mein Code:
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
HotKeySet("{NUMPADADD}", "plus")
#Region ### START Koda GUI section ### Form=
Global $Form1 = GUICreate("Form1", 361, 118, 256, 409)
Global $Input1 = GUICtrlCreateInput("Input1", 27, 19, 121, 21)
Global $bt1 = GUICtrlCreateButton("1", 27, 67, 75, 25, $WS_GROUP)
Global $bt2 = GUICtrlCreateButton("2", 115, 67, 75, 25, $WS_GROUP)
Global $bt3 = GUICtrlCreateButton("3", 203, 67, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$FontSize = 20
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func plus()
Local $control
$control = ControlGetFocus($Form1)
Switch ControlGetFocus($Form1)
Case $control
MsgBox(0, "", $control)
GUICtrlSetFont($control, $FontSize + 10)
EndSwitch
EndFunc ;==>plus
Grüße
Ilse