How to have scrollers in intuition window borders like a lot of Amiga intuition applications ?
Maybe more a gadtool question than BOOPSI, but I know a lot of historical OS3 apps (devpac, KingCon, many text editor, ... but also the regular workbench file browsing windows ...) that have vertical and/or vertical scrollers inside the windows borders , often with arrow buttons to scroll, which to my opinion is super cool. And now for the first time I need exactly that. Problem: I could find absolutely no example or documentation about it, but I may have missed something.
Any example source to point ? Any sort of a beginning of information ?
... Well... there's an example to do that posted by someone on a thread https://eab.abime.net/showthread.php?t=94519 called scroller2.c and scroller3.c , it's gadtools level but use NewObject() with class names I've never heard of ("propgclass").
... EDIT: creating scrollers with that method, if you're using OS3 under UAE (I know it also happens with a PC mouse + USB extension on real amigas) ... the "middle mouse wheel" automatically scroll the Vertical scroller that is inside the right window border, as it does with a lot of apps, .. !! good news !! and I don't remember having installed any patch of some sort to manage this (maybe a UAE hack ?) Well quite mysterious, the scroller gadgets are private things with private ids. Maybe the wheel hack looks for gadtools buttons attached to the right borders and consider it's to be moved by the mouse wheel if window active.
The hack is somewhere in lower level. I have created a window border scrollbar at Intuition level in my game Untangle (level selector window) and it scrolls with the mouse wheel too.
Online Status
... documentation of scroller.gadget says it "Supports usage in window boarders. "... but yet no explanation about it. It would obviously need to be attached to something else than the main layout in that case.