Recent

Author Topic: TSynMemo: Show number of column/row where is the cursor  (Read 5099 times)

bonmario

  • Sr. Member
  • ****
  • Posts: 346
TSynMemo: Show number of column/row where is the cursor
« on: May 20, 2010, 05:16:34 pm »
Hi,
i have never used TSynMemo and i have a question. How i can show in a StatusBar number of column and row?
I want do the same of the Lazarus's IDE, but i'm not able to found how the IDE do it ...

Thanks, Mario

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11164
  • Debugger - SynEdit - and more
    • wiki
Re: TSynMemo: Show number of column/row where is the cursor
« Reply #1 on: May 20, 2010, 05:28:31 pm »
Synedit1.OnStatusChange := @EditorStatusChanged;

procedure TForm1.EditorStatusChanged(Sender: TObject; Changes: TSynStatusChanges);
begin
  if (scCaretX in Changes) or  (scCaretY in Changes) then


 

TinyPortal © 2005-2018