Jump to content

_GUICtrlEdit_SetPadding missing from GuiEdit.au3


Go to solution Solved by Skeletor,

Recommended Posts

Hi Devs,

 

I noticed that my GuiEdit.au3 did not have the _GUICtrlEdit_SetPadding included. 

I saw the release stated this was updated, but not sure why mine did not contain this. 

Anyways, I could not find this so I created one. Have a look and advise.

; #FUNCTION# ====================================================================================================================
; Author ........: Skeletor
; Modified.......:
; ===============================================================================================================================
Func _GUICtrlEdit_SetPadding($idEdit, $iPaddingX, $iPaddingY)
    Local $aPos = ControlGetPos("","",GUICtrlGetHandle($idEdit))
    Local $aMargin[4] = [$aPos[0] - $iPaddingX, $aPos[1] - $iPaddingY, $aPos[2] + $iPaddingX * 2, $aPos[3] + $iPaddingY * 2]
    ControlMove($idEdit, "", $aMargin[0], $aMargin[1], $aMargin[2], $aMargin[3])
EndFunc ;==>_GUICtrlEdit_SetPadding

 

Kind Regards
Skeletor

"Coffee: my defense against going postal."

Microsoft Office Splash Screen | Basic Notepad Program (Beginner) | Transparent Splash Screen | Full Screen UI

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...