<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Update Policies</title> <link rel="stylesheet" type="text/css" href="style.css"> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="index.html" title="Programming with gtkmm 3"> <link rel="up" href="chapter-range-widgets.html" title="Chapter 6. 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 6. 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"> <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" style="list-style-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>