ScrollBar events only on release

Just starting out? Need help? Post your questions and find answers here.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: ScrollBar events only on release

Post by srod »

An 'expensive' way to check for scroll events. :)
I may look like a mule, but I'm not a complete ass.
User avatar
Shardik
Addict
Addict
Posts: 2058
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: ScrollBar events only on release

Post by Shardik »

charvista wrote:The difference with srod's solution is that RASHAD's code is portable (no APIs), but using a simple Thread.
Did you take a look into my cross-platform example for Windows,
Linux and MacOS which uses specific API calls on each platform
and demonstrates live scrolling on all platforms by scrolling an
image?
http://www.purebasic.fr/english/viewtop ... 45&start=2
User avatar
charvista
Addict
Addict
Posts: 949
Joined: Tue Sep 23, 2008 11:38 pm
Location: Belgium

Re: ScrollBar events only on release

Post by charvista »

@Shardik
I have taken a deep look at it. Thank you very much for the example with a picture, which is very useful.
Now it is your turn to take a look at my reply there as I made some important corrections.
http://www.purebasic.fr/english/viewtop ... =2#p370251
- Windows 11 Home 64-bit
- PureBasic 6.10 LTS (x64)
- 64 Gb RAM
- 13th Gen Intel(R) Core(TM) i9-13900K 3.00 GHz
- 5K monitor with DPI @ 200%
collectordave
Addict
Addict
Posts: 1310
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: ScrollBar events only on release

Post by collectordave »

You can roll your own and get whatever events you want at any mouse event etc.

Try this
http://www.purebasic.fr/english/viewtop ... 12&t=67411

Regards

cd
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
Post Reply