Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (Win7, Win8.x, Win10 and Win11) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

SynEdit after clear cursor lose position 2 hours 31 minutes ago #19562

  • Fernando Sandoval
  • Fernando Sandoval's Avatar Topic Author
  • Away
  • Junior Member
  • Junior Member
  • Posts: 70
  • Thank you received: 0
Hi after called synedit.clearall cursor don't mobve to top of begining and lose position how move to begin or position (0,0) after clreaall text

procedure TFormMain.DefaultDataHandler();
begin
  DpSerial.OnRxData :=nil;
  DpSerial.OnRxData := @dpSerialRxData;
  sleep(50);
  MTerminal.ClearAll;
  MTerminal.TopLine:=MTerminal.BlockBegin.y;
  MTerminal.CaretXY:=Point(0,0);
  Application.ProcessMessages;
//  MTerminal.SelStart:=0;
  DpSerial.WriteData(char(27));
  MTerminal.SetFocus;
end;   
dont't show cursor but text is added at top synedit

 

Please Log in or Create an account to join the conversation.

  • Page:
  • 1