I am trying to implement a way so if I user clicks on a field the contents of that field is selected like the way it happens if they would tab to that field.
I have tried to call the select method for that field in the onfocus event:
procedure TfrmEdit.IWCGJQEdit2JQEventsFocus(Sender: TObject;
AParams: TStringList);
begin
IWCGJQEdit2.Select;
end;
This seems to work for the most part but only if I click on the right of the field contents. If I click on any of the text or if the text is right aligned and I click to the left of it the fields contents nothing not selected. Is there a better way to handle this?