<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Key and Mouse bindings</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="GTK+ 2.0 Tutorial" HREF="book1.html"><LINK REL="UP" TITLE="Range Widgets" HREF="c633.html"><LINK REL="PREVIOUS" TITLE="Common Range Functions" HREF="x684.html"><LINK REL="NEXT" TITLE="Example" HREF="x743.html"></HEAD ><BODY CLASS="SECT1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >GTK+ 2.0 Tutorial</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="x684.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Range Widgets</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="x743.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="SEC-KEYANDMOUSEBINDINGS" >Key and Mouse bindings</A ></H1 ><P >All of the GTK range widgets react to mouse clicks in more or less the same way. Clicking button-1 in the trough will cause its adjustment's <TT CLASS="LITERAL" >page_increment</TT > to be added or subtracted from its <TT CLASS="LITERAL" >value</TT >, and the slider to be moved accordingly. Clicking mouse button-2 in the trough will jump the slider to the point at which the button was clicked. Clicking button-3 in the trough of a range or any button on a scrollbar's arrows will cause its adjustment's value to change by <TT CLASS="LITERAL" >step_increment</TT > at a time.</P ><P >Scrollbars are not focusable, thus have no key bindings. The key bindings for the other range widgets (which are, of course, only active when the widget has focus) are do <I CLASS="EMPHASIS" >not</I > differentiate between horizontal and vertical range widgets.</P ><P >All range widgets can be operated with the left, right, up and down arrow keys, as well as with the <TT CLASS="LITERAL" >Page Up</TT > and <TT CLASS="LITERAL" >Page Down</TT > keys. The arrows move the slider up and down by <TT CLASS="LITERAL" >step_increment</TT >, while <TT CLASS="LITERAL" >Page Up</TT > and <TT CLASS="LITERAL" >Page Down</TT > move it by <TT CLASS="LITERAL" >page_increment</TT >.</P ><P >The user can also move the slider all the way to one end or the other of the trough using the keyboard. This is done with the <TT CLASS="LITERAL" >Home</TT > and <TT CLASS="LITERAL" >End</TT > keys.</P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="x684.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="book1.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="x743.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Common Range Functions</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="c633.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Example</TD ></TR ></TABLE ></DIV ></BODY ></HTML >