Hi Julian,
i am looking for possibility to select EditFields on Enter (Mouse or Cursor left/right)!
OnEditFieldFocus only works if you move from one Field to another..
Thanks
Patrick
#1
♥ 0
Hi Julian,
i am looking for possibility to select EditFields on Enter (Mouse or Cursor left/right)!
OnEditFieldFocus only works if you move from one Field to another..
Thanks
Patrick
Hi,
OnEditFieldFocus is for the form completion mode only (see EditField demo)
This may be an alternative
procedure TWPTBXForm.WPRichText1ChangeSelection(Sender: TObject);
var f: TWPTextObj;
begin
f := WPRichText1.FieldAtCP;
if f<>LastField then
begin
LastField := f;
if (f<>nil) and not WPRichText1.IsSelected then
begin
WPRichText1.SelectFieldAtCP(false, false);
end;
end;
end;
Hi,
if you move code to Event "OnChangeCursorPos" everything is ok...
Thank you
Patrick