Re: Seleccionar todo el texto en un TextBox
Posted: Sat Jan 22, 2022 6:23 am
Thanks Jimmy for your work, but everything works OK with the keyboard, and everything goes wrong with the mouse.
I've prepared little function, which call should be placed in OnGetFocus statement.
It works perfectly for me:
I've prepared little function, which call should be placed in OnGetFocus statement.
It works perfectly for me:
Code: Select all
#define WM_SETTEXT 12
function ClearTextBoxIfEmpty
if empty(this.Value)
SendMessage( GetControlHandle(This.Name, ThisWindow.Name) , WM_SETTEXT , 0, "" )
endif
return