Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-11

SynEdit - marking a line

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Torsten Bonde Christiansen

Hi List.

I have just recently started playing with SynEdit and all it's features, but so far things have been going good.

The examples in lazarus are fine and have helped a lot!

However i would like to mark a whole line, much like done in in the IDE when placing breakpoints etc.?

I would be glad if someone could help me in the right direction. :)

Regards
Torsten Bonde Christiansen

Reply by email

Martin Frb
to Torsten Bonde Christiansen
Torsten Bonde Christiansen wrote 11 lines
Hi List. I have just recently started playing with SynEdit and all it's features, but so far things have been going good. The examples in lazarus are fine and have helped a lot! However i would like to mark a whole line, much like done in in the IDE when placing breakpoints etc.? I would be glad if someone could help me in the right direction. :)

Search for
OnSpecialLine Markup
(or OnSpecialLineColor, if it is just background color)

The code in this event should be fast. It will be called many times (everytime any part of a line is painted).

So calculate and store the needed info somewhere else, and then in the event, only compare the line number with the stored value.

Reply by email