Opened 7 years ago

Closed 7 years ago

#13301 closed defect (fixed)

SetScrollbars Causing additional LINEDOWN event

Reported by: sjnc.puzzle Owned by: pcor
Priority: normal Milestone:
Component: wxGTK Version: stable-latest
Keywords: Cc:
Blocked By: Blocking:
Patch: no


I am running on Linux using the latest SVN level. This did not happen with the 2.9.1 download level.

In the attached small example a wxTreeCtrl is created. I have an Scroll menu where you can select down or up. If you select down, you will see that the tree is scrolled down twice. You can see this from the log screen if you scrooll a second time. Once for the SetScrollbars() that I call as a result of them menu. And then it appears the SetScrollbars() ends up causing a wxEVT_SCROLLWIN_LINEDOWN event, and the tree gets scrolled down a second time.

The event appears to be coming from gtk_scrollbar_value_changed() which is in gtk/window.gpp

Since I am explicitly giving the scroll position in SetScrollbars() I do not think the event should happen.

Attachments (1)

tree_problem.cpp download (3.9 KB) - added by sjnc.puzzle 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by sjnc.puzzle

comment:1 Changed 7 years ago by pcor

  • Owner set to pcor
  • Status changed from new to accepted

comment:2 Changed 7 years ago by PC

  • Resolution set to fixed
  • Status changed from accepted to closed

(In [68121]) Don't cause scroll events for position changes from SetScrollbars, broken in r67326.
Fixes #13301

Note: See TracTickets for help on using tickets.