Sign in Join

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

Mailing lists / lazarus / 2021-05

TScrollBox.ScrollInView method does not work for nested child controls

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Leyba Bronstain

Hi all.

I found that the ScrollInView method doesn't scroll the scrollbar to a "hidden" control unless its parent is a scrollbox but another component that lies on the scrollbox.

test case:

1. Put to scrollbox the panel.
2. Put to panel any control (i.e. TEdit)
3. Change border of the scroll bar rectangle so that the nested control becomes "invisible"
4. Call ScrollInView method for this control

It's a bug?

/-- with best regards, Zoltanleo aka Док/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20210501/4825a8c5/attachment.html>

Reply by email

Лев Бронштейн
to Michael W. Vogel

Good news. Thank a lot

"Michael W. Vogel via lazarus" 1 мая 2021

ПП wrote 14 lines
Am 01.05.2021 um 01:08 schrieb Leyba Bronstain via lazarus: > I found that the ScrollInView method doesn't scroll the scrollbar to a > "hidden" control unless its parent is a scrollbox but another > component that lies on the scrollbox. Fixed in Trunk revision 65078 with code from https://forum.lazarus.freepascal.org/index.php/topic,54354.msg404204.html#msg404204 Michl -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

Reply by email

Leyba Bronstain
to Michael W. Vogel: Fixed in Trunk revision 65078 with code from https://forum.lazarus.freepascal.org/index.ph…

I'm sorry. The last patch doesn't work on a more complex project

https://forum.lazarus.freepascal.org/index.php/topic,54354.msg404381.html#msg404381

01.05.2021 20:53, Michael W. Vogel via lazarus пишет:

Show quoted text 10 lines
Am 01.05.2021 um 01:08 schrieb Leyba Bronstain via lazarus: > I found that the ScrollInView method doesn't scroll the scrollbar to a > "hidden" control unless its parent is a scrollbox but another > component that lies on the scrollbox. Fixed in Trunk revision 65078 with code from https://forum.lazarus.freepascal.org/index.php/topic,54354.msg404204.html#msg404204 Michl
/-- with best regards, Zoltanleo aka Док/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20210502/181feada/attachment.html>

Reply by email