Disabling scrolling on a gtkmm combobox -


one gtkmm screen i'm working on contains horizontalbox (which scrolls), box contains several frames, each frame has combobox. issue i'm running when user attempts scroll horizontalbox, cursor on 1 of comboboxes , combobox scrolled instead of horizontalbox. causes serious problem data entry.

i've attempted fix situation hijacking scroll event:

screenobject::screenobject() {     m_cbox->signal_scroll_event().connect(sigc::mem_fun(         *this,&screenobject::scrolloverride));     //combobox populated here }  bool screenobject::scrolloverride(gdkeventscroll *scroll) {     cout <<"scroll attempted!\n";     return true; } 

i hover mouse on combobox , spin scroll wheel, combobox scrolls usual, , debug message not sent console (which plain confusing).

no matter combobox, can't seem event fire.

is there other signal need hijack in order suppress combobox scrolling? there constructor option combobox tell ignore scrolling signal?


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -