khchen / wNim

Nim's Windows GUI Framework
MIT License
327 stars 17 forks source link

How to use scrollbars? #17

Closed bunkford closed 5 years ago

bunkford commented 5 years ago

How do I use built in scrollbars on a wPanel? They show with style = wVScroll or wHScroll, but don't actually scroll the window.

jonasnordlund commented 5 years ago

I'm pretty sure one needs to listen to and act on the events they generate: https://khchen.github.io/wNim/wScrollEvent.html

More details on listening to events in wNim: https://khchen.github.io/wNim/wEvent.html