Sign in Join

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

Mailing lists / lazarus / 2011-11

TControlScrollBar implementation is weird

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Hans-Peter Diettrich

This class contains some strange methods, which are not required or are Delphi incompatible.

SetAutoScroll always disables AutoScroll, no chance to enable it again. What's the purpose of that Lazarus-added method?

SetSize is not implemented (throws an exception). It would be simpler to make Size read-only, so that the compiler detects invalid calls. At least I'm missing a ToDo note.

DoDi

Reply by email

Mattias Gaertner
to Hans-Peter Diettrich

?

Hans-Peter Diettrich hat am 11. November 2011 um 14:14 geschrieben:

This class contains some strange methods, which are not required or are Delphi incompatible. SetAutoScroll always disables AutoScroll, no chance to enable it again.?

I removed it.?
?
?

What's the purpose of that Lazarus-added method??

Disable FControl.AutoScroll.
?
?

SetSize is not implemented (throws an exception). It would be simpler to make Size read-only, so that the compiler detects invalid calls. At least I'm missing a ToDo note.?

I removed it.
?
Mattias
?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20111111/d861e8f1/attachment.html>

Reply by email