Project Multi-Device Application (FireMonkey, not VCL). Target Win32.
On the form is a Memo and a button. By clicking on the button, the text from Memo is taken, processed and displayed back. After that, the text cursor in the Memo becomes invisible.
How to make the cursor not disappear?
The minimum reproducible example is:
pas
procedure TForm1.Button1Click(Sender: TObject); begin Memo1.Lines.Text := Memo1.Lines.Text; end; fmx
object Memo1: TMemo Touch.InteractiveGestures = [Pan, LongTap, DoubleTap] DataDetectorTypes = [] Align = Bottom ControlType = Platform Position.Y = 40.000000000000000000 Size.Width = 640.000000000000000000 Size.Height = 440.000000000000000000 Size.PlatformDefault = False TabOrder = 0 Viewport.Width = 636.000000000000000000 Viewport.Height = 436.000000000000000000 end UPD
If the form loses focus and then gets back, then the cursor returns until the next programmatic change of the Lines property.