Lazarus

Programming => Widgetset => Cocoa => Topic started by: oh_ha on September 17, 2021, 06:07:18 pm

Title: [Solved] TListItem.MakeVisible does not work on MacOS
Post by: oh_ha on September 17, 2021, 06:07:18 pm
In order to make a selected item visible that is currently not visible in a long list in a ListView there is the method "TListItem.MakeVisible". This works well on Windows and Linux, but not on MacOS. On MacOS, when calling "MakeVisible", simply nothing happens, i.e. the selected item does not scroll into view.

Does anyone have example code for MacOS how to implement this functionality?

Thanks and regards, Olaf
Title: Re: TListItem.MakeVisible does not work on MacOS
Post by: skalogryz on September 19, 2021, 11:57:39 pm
implemented at this branch (https://github.com/skalogryz/Lazarus/tree/cocoa)

diff (https://github.com/skalogryz/Lazarus/commit/d5dbaa0ab618134d8e6ef9d73c11f35f22432dc6)
Title: Re: TListItem.MakeVisible does not work on MacOS
Post by: AlexTP on September 20, 2021, 12:15:28 am
Then let's merge this branch, pls?
Title: Re: TListItem.MakeVisible does not work on MacOS
Post by: skalogryz on September 20, 2021, 05:17:58 am
Then let's merge this branch, pls?
i didn't care to have a privilege of pushing changes to gitlab repo.  so I cannot do it.
Title: [Solved] TListItem.MakeVisible does not work on MacOS
Post by: oh_ha on October 18, 2021, 06:30:56 pm
Sorry for my late reply. After figuring out how to integrate the updated files into my Lazarus environment I was able to compile my program using the changed files.

The result is most excellent: "TListItem.MakeVisible" now works in MacOS, too. Thanks for your help!

One question remains: when will these changes be merged into the Lazarus installation files available on the homepage?

Thanks again for your efforts,
Olaf
Title: Re: [Solved] TListItem.MakeVisible does not work on MacOS
Post by: skalogryz on October 18, 2021, 06:59:19 pm
One question remains: when will these changes be merged into the Lazarus installation files available on the homepage?
this is happening when the next release is ...well... released :)

I'm not confident, but the next release is planned for November-December this year.
TinyPortal © 2005-2018