CONTENT="Modular DocBook HTML Stylesheet Version 1.52">|
Often a scrollbar will be added to the ZvtTerm widget to allow its scroll-back buffer to be controlled via a mouse (see ). Each ZvtTerm provides this via an adjustment defined in the object structure as simply adjustment.
Also note that mouse-wheel mice are automatically handled by the button event handler if the terminal widget has focus, and perform a page up/down function.
Example 4. Creating an appropriate scrollbar
You will normally want to disable focus on the scrollbar otherwise gtk may switch focus inappropriately.
There are no helper functions for this, but the same may be achieved simply using the following code fragment.
Example 5. Converting window coordinates to character coordinates.
These values are then suitable for using with to let the application read data from the screen.