Recent

Author Topic: A Few SynEdit questions?  (Read 3385 times)

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
A Few SynEdit questions?
« on: September 01, 2012, 01:18:47 am »

Hi all,
1. Is it possible to add prompt in TSynEdit?
2. How can I disable the rightmost line of the TSynEdit?
Thanks.

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Re: A Few SynEdit questions?
« Reply #1 on: September 01, 2012, 02:01:16 am »
I found the second question answer. Options/eoHideRightMargin = True.
« Last Edit: September 01, 2012, 04:14:00 am by IndianaJones »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9867
  • Debugger - SynEdit - and more
    • wiki
Re: A Few SynEdit questions?
« Reply #2 on: September 01, 2012, 07:56:40 am »
By prompt you mean like vi or emacs has?

No SynEdit does not have it.
You could add a TEdit and show/hide it as required.

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Re: A Few SynEdit questions?
« Reply #3 on: September 01, 2012, 08:52:05 am »

I mean Terminal prompt like?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9867
  • Debugger - SynEdit - and more
    • wiki
Re: A Few SynEdit questions?
« Reply #4 on: September 02, 2012, 02:36:52 am »
SynEdit displays only the text that is in the textbuffer (SynEdit.Lines).

You can add a">" to that text.
For highlighting you can use SynPositionHighlighter.

But it will not be write protected, and the caret can go there.

 

TinyPortal © 2005-2018