Menu

Commit [r26289]  Maximize  Restore  History

Complete redesign of the following of text in the relax controller window in the GUI.

The current design for some reason no longer worked very often, and there would be many situations
where the scrolling to follow the text output would stop and could never be recovered. Therefore
this feature has been redesigned.

In the LogCtrl element of the relax controller, which displays the relax output messages, the at_end
class boolean variable has been introduced. It defaults to True. The following events will turn it
off: Arrow keys, Home key, End key, Ctrl-Home key, Mouse button clicks, Mouse wheel scrolling,
Window thumbtrack scrolling (the side scrollbar), finding text, the pop up menu 'Go to start',
and Select all (menu or Ctrl-A). It will only be turned on in two cases: The pop up menu 'Go to
end', and if the caret is on the final line (caused by Ctrl-End, Mouse wheel scrolling, Page Down,
Down arrow, Window thumbtrack scrolling, etc.).

Three new methods have been introduced to handle certain events: capture_mouse() for mouse button
clicks, capture_mouse_wheel() for mouse wheel scrolling, and capture_scroll for window thumbtrack
scrolling.

bugman 2014-10-15

changed /trunk/gui/controller.py
/trunk/gui/controller.py Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.