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