U++ Forum - RDF feed
https://www.ultimatepp.org/forums/
AutoScroller package update
https://www.ultimatepp.org/forums/index.php?t=rview&goto=55187&th=11211#msg_55187
i did a patch which eliminates compile error in this package (include error).
Sincerely,
warchef]]>warchef2020-10-16T08:51:11-00:00Re: AutoScroller package update
https://www.ultimatepp.org/forums/index.php?t=rview&goto=55188&th=11211#msg_55188
Could you check latest nightly version. Some time ago I pushed similar changes into trunk. I am also glad you post your solution to the problem here. It means a lot in context of U++ development. Thanks!
Klugier]]>Klugier2020-10-16T09:04:47-00:00Re: AutoScroller package update
https://www.ultimatepp.org/forums/index.php?t=rview&goto=55358&th=11211#msg_55358
thanks, works perfectly!
Sincerely,
warchef]]>warchef2020-11-02T10:42:05-00:00Re: AutoScroller package update
https://www.ultimatepp.org/forums/index.php?t=rview&goto=56301&th=11211#msg_56301
Maybe this package could make it into Uppsrc:
It's very simple and very usefull
]]>Didier2021-02-18T17:41:19-00:00Re: AutoScroller package update
https://www.ultimatepp.org/forums/index.php?t=rview&goto=56323&th=11211#msg_56323
I created AutoScroller UppHub package that basses on the bazzar implementation. It should be available when my PR will be accepted.
Als I added some improvements to the implementation:
- AutoScroller is no longer template class it inherits from ParentCtrl directly. This is breaking API change, but it is good time to do it.
- Added Layout designer integration. You could directly place AutoScroller in the layout (under Special controls category)
- Layout under AutoScroller can be scrolled with mouse wheel
- Fixed problem with scrolling, now the scrolling resolution is set correctly.
- Some code cleanup
Please test when package will be available on UppHub and let me know what is your opinion.
Please test when package will be available on UppHub and let me know what is your opinion.
It works very well, thanks to you and Kohalt00.
Since it is time you've already slightly broken the API, is it possible and feasible to rename it to AutoScrollerCtrl and keep the old name as an alias with a warning that the alias will be removed with upp 2021.2 (as I did in TerminalCtrl)?
This suggestion is to keep consistency but it it of course up to you and its users.
Best regards,
Oblivion]]>Oblivion2021-02-21T10:33:56-00:00Re: AutoScroller package update
https://www.ultimatepp.org/forums/index.php?t=rview&goto=56329&th=11211#msg_56329
Thank you
Well a github package is OK but since this is kind of basic functionnality which many can need, I think it should rather be directly in Uppsrc
Thank's for the layout file (I would have done one anyway and I might contribute a more complex drawing : draw the scrolling cursors)
I will try you're version quickly]]>Didier2021-02-21T18:47:38-00:00Re: AutoScroller package update
https://www.ultimatepp.org/forums/index.php?t=rview&goto=56330&th=11211#msg_56330
Let's develop it under UppHub right now. As you see there are some work to do and the flexibility, which GitHub gives us cannot be overestimated. Also, please feel free to fork and create PR's for AutoScroller. I hope your improvements to displaying it within LayoutDesigner will be there.
When AutoScroller will more mature we will move it uppsrc. However, I am fine if it will stay on UppHub Oblivion, thanks for your opinion. I will consider channing AutoScroller to AutoScrollerCtrl for consistency with the other controls. This must be done with careful as you suggested. We can not only create simply alias, we will need to change the includes too.
Klugier
]]>Klugier2021-02-21T20:08:43-00:00Re: AutoScroller package update
https://www.ultimatepp.org/forums/index.php?t=rview&goto=56465&th=11211#msg_56465
I took 10 minutes to enhance .usc file.
Following code adds drawing of sidebars
Quote:
Paint(w) {
r = GetRect();
sbWidth = 16;
sr = r;
sr.right = sr.right-sbWidth;
sr.bottom = sr.bottom-sbWidth;
sr.right = sr.right-sbWidth; ___________ // normaly shoudn't need this, but still had to add it otherwise ClassName overlaps VScrollbar ???
DrawClassName(w, sr, "AutoScroller");
}
]]>Didier2021-03-13T22:08:48-00:00Re: AutoScroller package update
https://www.ultimatepp.org/forums/index.php?t=rview&goto=56472&th=11211#msg_56472
Thank you! Applied, please test and in case of problems please reply to this message.