Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 345aa895e80053137c21f8693106c3a0 > files > 177

gtkmm2.4-documentation-2.17.4-1mdv2010.0.noarch.rpm

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Update Policies</title>
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
<link rel="home" href="index.html" title="Programming with gtkmm">
<link rel="up" href="chapter-range-widgets.html" title="Chapter 5. Range Widgets">
<link rel="prev" href="sec-scale-widgets.html" title="Scale Widgets">
<link rel="next" href="sec-range-example.html" title="Example">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr><th colspan="3" align="center">Update Policies</th></tr>
<tr>
<td width="20%" align="left">
<a accesskey="p" href="sec-scale-widgets.html"><img src="icons/prev.png" alt="Prev"></a> </td>
<th width="60%" align="center">Chapter 5. Range Widgets</th>
<td width="20%" align="right"> <a accesskey="n" href="sec-range-example.html"><img src="icons/next.png" alt="Next"></a>
</td>
</tr>
</table>
<hr>
</div>
<div class="sect1" title="Update Policies">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="sec-range-update-policies"></a>Update Policies</h2></div></div></div>
<p>
The <span class="emphasis"><em>update policy</em></span> of a <code class="classname">Range</code> widget
defines at what points during user interaction it will change the
<code class="literal">value</code> field of its <code class="classname">Gtk::Adjustment</code> and
emit the <code class="literal">value_changed</code> signal. The update policies,
set with the <code class="methodname">set_update_policy()</code> method, are:

</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>
<code class="literal">Gtk::UPDATE_CONTINUOUS</code> - This is the default. The
<code class="literal">value_changed</code> signal is emitted continuously, i.e. whenever the
slider is moved by even the tiniest amount.
</p></li>
<li class="listitem"><p>
<code class="literal">Gtk::UPDATE_DISCONTINUOUS</code> - The <code class="literal">value_changed</code> signal is
only emitted once the slider has stopped moving and the user has
released the mouse button.
</p></li>
<li class="listitem"><p>
<code class="literal">Gtk::UPDATE_DELAYED</code> - The <code class="literal">value_changed</code> signal is emitted
when the user releases the mouse button, or if the slider stops moving
for a short period of time.
</p></li>
</ul></div>
<p>

</p>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="sec-scale-widgets.html"><img src="icons/prev.png" alt="Prev"></a> </td>
<td width="20%" align="center"><a accesskey="u" href="chapter-range-widgets.html"><img src="icons/up.png" alt="Up"></a></td>
<td width="40%" align="right"> <a accesskey="n" href="sec-range-example.html"><img src="icons/next.png" alt="Next"></a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">Scale Widgets </td>
<td width="20%" align="center"><a accesskey="h" href="index.html"><img src="icons/home.png" alt="Home"></a></td>
<td width="40%" align="right" valign="top"> Example</td>
</tr>
</table>
</div>
</body>
</html>