Funktionsreferenz

_GUICtrlButton_SetStyle

Setzt den Stil des Buttons

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

 

Parameter

$hWnd Handle zu dem Control
$iStyle Kann eine Kombination von Button-Stilen sein

 

Rückgabewert

Keine.

 

Bemerkungen

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

 

Verwandte Funktionen

 

Siehe auch

Suche in der MSDN Bibliothek nach BM_SETSTYLE

 

Beispiel


#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#include <GUIConstantsEx.au3>
#include <GuiButton.au3>
#include <WindowsConstants.au3>

Opt("MustDeclareVars", 1)

_Main()

Func _Main()
    Local $btn, $btn2

    GUICreate("Buttons", 400, 400)
    GUISetState()

    $btn = GUICtrlCreateButton("Button 1", 10, 10, 90, 50)

    $btn2 = GUICtrlCreateButton("Button 2", 10, 70, 90, 50)

    MsgBox(4096, "Information", "Setzt den Stil der Buttons")
    _GUICtrlButton_SetStyle($btn, $BS_AUTORADIOBUTTON)
    _GUICtrlButton_SetStyle($btn2, $BS_AUTOCHECKBOX)

    While 1
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE
                ExitLoop
        EndSwitch
    WEnd

    Exit
EndFunc   ;==>_Main