Hallo Leute, ich stehe vor einem Problem.
Ich möchte über 3 verschiedene Buttons global die Schriftgröße anderer Buttons ändern.
Momentan habe ich das Problem das Guictrlsetfont immer nur einen Button ändert.
[autoit]#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 320, 173, 255, 247)
;~ $Label1 = GUICtrlCreateLabel("Label1", 105, 24, 127, 52)
$Button1 = GUICtrlCreateButton("16", 24, 90, 33, 25)
$Button2 = GUICtrlCreateButton("32", 72, 90, 33, 25)
$Button3 = GUICtrlCreateButton("48", 120, 90, 33, 25)
GUISetState(@SW_SHOW)
[/autoit][autoit][/autoit][autoit]#EndRegion ### END Koda GUI section ###
GUISetState()
global $Button22= GUICtrlCreateButton("1", 16, 67, 75, 25)
global $Button21= GUICtrlCreateButton("2", 16, 122, 75, 25)
Global $Button5 = GUICtrlCreateButton("3", 16, 232, 75, 25)
Global $Button6 = GUICtrlCreateButton("4 4", 16, 177, 75, 25)
Global $Button7 = GUICtrlCreateButton("5 4", 100, 177, 80, 25)
global $Button8 = GUICtrlCreateButton("6", 100, 67, 80, 25)
global $Button9 = GUICtrlCreateButton("7 7", 16, 20, 100, 25)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
;~ $Label1 = GUICtrlCreateLabel("Label1", 105, 24, 127, 52)
GUIctrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
Case $Button2
GUIctrlSetFont(-1,14, 400, 0, "MS Sans Serif")
;~ $Label1 = GUICtrlCreateLabel("Label1", 105, 24, 127, 52)
Case $Button3
GUIctrlSetFont(-1,20, 400, 0, "MS Sans Serif")
;~ $Label1 = GUICtrlCreateLabel("Label1", 105, 24, 127, 52)
EndSwitch
WEnd
Exit
habt ihr einen Lösungsansatz für mich?
Danke euch.