Scrollbar events

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Scrollbar events

Post by utopiomania »

The scrollbargadget only generates events at mouseup, not 'continously' like the
trackbar do. This makes them unusable in applications like mixers, or as in a program
I'm translating, a HSV colorpicker.

The latter uses scrollbars for the HSV values and updates the result continously, but
works differently in PB.

So I hope the scrollbargadget can be made to work like the trackbargadget, and
generate events while a user changes its position.
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: Scrollbar events

Post by eddy »

+1

- fires event type
- or SetScrollingCallback function
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
collectordave
Addict
Addict
Posts: 1310
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Scrollbar events

Post by collectordave »

Try a roll your own

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

Sorry for bumping an old thread seems to be a lot of them.

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