# GuiButton user defined functions Reference

Below is a complete list of the user defined functions available in AutoIt. Click on a user defined function name for a detailed description.

When using them you need to add a #include <GuiButton.au3>.

User Defined Function | Description
--- | ---
_GUICtrlButton_Click | Simulates the user clicking a button
_GUICtrlButton_Create | Creates a Button control
_GUICtrlButton_Destroy | Delete the Button control
_GUICtrlButton_Enable | Enables or disables mouse and keyboard input to the specified button
_GUICtrlButton_GetCheck | Gets the check state of a radio button or check box
_GUICtrlButton_GetFocus | Retrieves if the button has keyboard focus
_GUICtrlButton_GetIdealSize | Gets the size of the button that best fits its text and image, if an image list is present
_GUICtrlButton_GetImage | Retrieves a handle to the image (icon or bitmap) associated with the button
_GUICtrlButton_GetImageList | Retrieves an array that describes the image list assigned to a button control
_GUICtrlButton_GetNote | Gets the text of the note associated with the Command Link button
_GUICtrlButton_GetNoteLength | Gets the length of the note text that may be displayed in the description for a command link button
_GUICtrlButton_GetSplitInfo | Gets information for a split button control
_GUICtrlButton_GetState | Determines the state of a button or check box
_GUICtrlButton_GetText | Retrieve the text of the button
_GUICtrlButton_GetTextMargin | Gets the margins used to draw text in a button control
_GUICtrlButton_SetCheck | Sets the check state of a radio button or check box
_GUICtrlButton_SetDontClick | Sets the state of $BST_DONTCLICK flag on a button
_GUICtrlButton_SetFocus | Sets the keyboard focus to the specified button
_GUICtrlButton_SetImage | Sets the image of a button
_GUICtrlButton_SetImageList | Assigns an image list to a button control
_GUICtrlButton_SetNote | Sets the text of the note associated with a command link button
_GUICtrlButton_SetShield | Sets the elevation required state for a specified button or command link to display an elevated icon
_GUICtrlButton_SetSize | Sets the size of the button
_GUICtrlButton_SetSplitInfo | Gets information for a split button control
_GUICtrlButton_SetState | Sets the highlight state of a button. The highlight state indicates whether the button is highlighted as if the user had pushed it
_GUICtrlButton_SetStyle | Sets the style of a button
_GUICtrlButton_SetText | Sets the text of the button
_GUICtrlButton_SetTextMargin | Sets the margins for drawing text in a button control
_GUICtrlButton_Show | Show/Hide button