Setzt den Stil des Buttons
#include <GuiButton.au3>
_GUICtrlButton_SetStyle ( $hWnd, $iStyle )
$hWnd | Control-ID / Handle des Controls |
$iStyle | Kann eine Kombination von Button-Stilen sein |
- - - - - - - - Erklärung der Controls - - - - - - - -
Suche nach BM_SETSTYLE in der MSDN Bibliothek.
#include <GuiButton.au3>
#include <GUIConstantsEx.au3>
#include <MsgBoxConstants.au3>
#include <WindowsConstants.au3>
Example()
Func Example()
Local $idBtn, $idBtn2
GUICreate("Buttons", 400, 400)
GUISetState(@SW_SHOW)
$idBtn = GUICtrlCreateButton("Button 1", 10, 10, 90, 50)
$idBtn2 = GUICtrlCreateButton("Button 2", 10, 70, 90, 50)
MsgBox($MB_SYSTEMMODAL, "Information", "Setzt den Stil der Buttons")
_GUICtrlButton_SetStyle($idBtn, $BS_AUTORADIOBUTTON)
_GUICtrlButton_SetStyle($idBtn2, $BS_AUTOCHECKBOX)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
WEnd
Exit
EndFunc ;==>Example