<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="flprintk2">
  <refmeta>
    <refentrytitle>FLprintk2</refentrytitle>
  </refmeta>

  <refnamediv>
    <refname>FLprintk2</refname>
    <refpurpose>
      A FLTK opcode that prints a new value every time a control-rate variable changes.
      <indexterm id="IndexFlprintk2"><primary>FLprintk2</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      <emphasis>FLprintk2</emphasis> is similar to <link linkend="flprintk"><citetitle>FLprintk</citetitle></link> but shows a k-rate variable's value only when it changes.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis><command>FLprintk2</command> kval, idisp</synopsis>
  </refsect1>

  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>idisp</emphasis> -- a handle value that was output from a previous instance of the <link linkend="flvalue"><citetitle>FLvalue</citetitle></link> opcode to display the current value of the current valuator in the <emphasis>FLvalue</emphasis> widget itself. If the user doesn't want to use this feature that displays current values, it must be set to a negative number by the user.
    </para>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>kval</emphasis> -- k-rate signal to be displayed.
    </para>

    <para>
      <emphasis>FLprintk2</emphasis> is similar to <link linkend="flprintk"><citetitle>FLprintk</citetitle></link>, but shows the k-rate variable's value only each time it changes. Useful for monitoring MIDI control changes when using sliders. It should be used for debugging purposes only, since it slows-down performance.
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="flbox"><citetitle>FLbox</citetitle></link>,
      <link linkend="flbutbank"><citetitle>FLbutBank</citetitle></link>,
      <link linkend="flbutton"><citetitle>FLbutton</citetitle></link>,
      <link linkend="flprintk"><citetitle>FLprintk</citetitle></link>,
      <link linkend="flvalue"><citetitle>FLvalue</citetitle></link>
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>Author: &namegabriel;</para>
    <para>New in version 4.22</para>
  </refsect1>
</refentry>
