1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Update Policies</title><meta name="generator" content="DocBook XSL Stylesheets V1.64.1"><link rel="home" href="index.html" title="Programming with gtkmm2"><link rel="up" href="ch05.html" title="Chapter5.Range Widgets"><link rel="previous" href="ch05s02.html" title="Scale Widgets"><link rel="next" href="ch05s04.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="ch05s02.html">Prev</a></td><th width="60%" align="center">Chapter5.Range Widgets</th><td width="20%" align="right"><a accesskey="n" href="ch05s04.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2504034"></a>Update Policies</h2></div></div><div></div></div><p>
The <span class="emphasis"><em>update policy</em></span> of a <tt class="literal">Range</tt> widget defines at what points during
user interaction it will change the <tt class="literal">value</tt> field of its
<tt class="literal">Gtk::Adjustment</tt> and emit the <tt class="literal">value_changed</tt> signal. The update policies, set with the <tt class="literal">set_update_policy()</tt> method, are:
</p><div class="itemizedlist"><ul type="disc"><li><p>
<tt class="literal">Gtk::UPDATE_CONTINUOUS</tt> - This is the default. The
<tt class="literal">value_changed</tt> signal is emitted continuously, i.e. whenever the
slider is moved by even the tiniest amount.
</p></li><li><p>
<tt class="literal">Gtk::UPDATE_DISCONTINUOUS</tt> - The <tt class="literal">value_changed</tt> signal is
only emitted once the slider has stopped moving and the user has
released the mouse button.
</p></li><li><p>
<tt class="literal">Gtk::UPDATE_DELAYED</tt> - The <tt class="literal">value_changed</tt> 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="ch05s02.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="ch05.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="ch05s04.html">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">Home</a></td><td width="40%" align="right" valign="top">Example</td></tr></table></div></body></html>
|