Function Reference


_GUICtrlEdit_SetPadding

Sets the padding control

#include <GuiEdit.au3>
_GUICtrlEdit_SetPadding ( $hWnd, $iCX, $iCY )

Parameters

$hWnd Handle to the control
$iCX The horizontal padding, in pixels
$iCY The vertical padding, in pixels

Return Value

None.

Remarks

The padding values are used to create a blank area around the edge of the edit area.
The horizontal padding value is applied to both the right and left of the button and the vertical padding value is applied to both the top and bottom of the edit area.

Example

#include <GUIConstantsEx.au3>
#include <GuiEdit.au3>
#include <GuiStatusBar.au3>
#include <WindowsConstants.au3>

Example()

Func Example()
        ; Create GUI
        GUICreate("Example for: _GUICtrlEdit_SetPadding", 400, 300)
        Local $idEdit = GUICtrlCreateEdit("Some text", 2, 2, 394, 268, BitOR($ES_WANTRETURN, $WS_VSCROLL))
        GUISetState(@SW_SHOW)

        _GUICtrlEdit_SetPadding($idEdit, 30, 10)
        ; Loop until the user exits.
        Do
        Until GUIGetMsg() = $GUI_EVENT_CLOSE
        GUIDelete()
EndFunc   ;==>Example