c++ - Help with this issue -


here problem:

the way gui system i'm using works follows:

a widget can listen mouse events. listeners can consume event listening , result, widget listening not receive event, if intended them, listener have received it.

the problem comes in here:

a scrollpane has listbox inside. listbox can scrolled. scrollpane can scrolled. happens right when mousewheel , widget under mouse listbox, both listbox , scrollpane move. solution see scrollpane consumes mousewheel events, there no way listbox ever scrolled.

the behavior desire listbox scroll when has focus, if did this, not work because example if radio button inside scrollpane focused, still want scrollpane scroll, widgets scrollbars such textbox , listbox not desired.

thanks

also, gui system i'm using own i'm developing.

the usual way deal listbox consumes event if scrolls. if place mouse in listbox , use scrollwheel listbox scrolls until reaches scroll limit. after further moves of wheel cause scrollpane scroll.

obviously there variants on - important thing decide want happen.

you need way of scrolling scrollpane, if user explicitly wants scroll can, without having scroll end of listbox. scrollbars on scrollpane 1 way. should make sure there way of scrolling listbox without using mouse wheel.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -