In Delphi i have a generic base class that enables scrollbars on a control, but where no actual scrolling of pixels takes place - but i can repaint the clientarea as i wish. Im unsure if this class can be ported to lazarus because it used windows messages to obtain scrollbar info, and also the winapi to set the position/max values of the scrollbar range (I realize lazarus has some winapi emulation, but how deept it goes i have no idea).
Does lazarus have an equi. of this? It will not contain any components so TScrollBox cannot be used (and would be overkill).
On Delphi the scrolling win control uses to much messages and private procedures to be suitable.
Any help would do. The closest thing to what i need is the TrvScroll from the lazarus port of RichView, but i found a lot of message stuff there to, so i was unsure if it is truly platform independent. I just want to be able to show/hide the scrollbars, be able to set their ranges and be notified when they are moved to new positions.