Funktionreferenz


_GUICtrlButton_SetStyle

Beschreibung anzeigen in

Setzt den Stil des Buttons

#include <GuiButton.au3>
_GUICtrlButton_SetStyle ( $hWnd, $iStyle )

Parameter

$hWnd Control-ID / Handle des Controls
$iStyle Kann eine Kombination von Button-Stilen sein

Rückgabewert

Keine.

Bemerkungen

- - - - - - - - Erklärung der Controls - - - - - - - -

Siehe auch

Suche nach BM_SETSTYLE in der MSDN Bibliothek.

Beispiel

#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