Sign in Join

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

Mailing lists / lazarus / 2013-02

TSynCustomBeautifier

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Misha Padalka

Hello!

I'm trying to create a custom SynEdit Beautifier, and looks like I need to access FCurrentEditor and FCurrentLines fields of TSynCustomBeautifier. But they are delcared private, so I cannot.
By the way, SynBeautifierPascal access them (it is located in the same source file, so it works).

Is it possible to move them to protected? Or am I doing something wrong?

Thanks.

Reply by email

Martin
to Misha Padalka
Misha Padalka wrote 9 lines
Hello! I'm trying to create a custom SynEdit Beautifier, and looks like I need to access FCurrentEditor and FCurrentLines fields of TSynCustomBeautifier. But they are delcared private, so I cannot. By the way, SynBeautifierPascal access them (it is located in the same source file, so it works). Is it possible to move them to protected? Or am I doing something wrong?

Done in trunk (protected read property)

Reply by email

Misha Padalka
to Martin

Fri, 01 Feb 2013 22:02:41 +0200 ???? ???????? Martin :

Show quoted text 12 lines
On 01/02/2013 19:39, Misha Padalka wrote: > Hello! > > I'm trying to create a custom SynEdit Beautifier, and looks like I need > to access FCurrentEditor and FCurrentLines fields of > TSynCustomBeautifier. But they are delcared private, so I cannot. > By the way, SynBeautifierPascal access them (it is located in the same > source file, so it works). > > Is it possible to move them to protected? Or am I doing something wrong? Done in trunk (protected read property)

Thanks!

?? ???????????? ??????? ??????????? ????? Opera: http://www.opera.com/mail/

Reply by email