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

  <refnamediv>
    <refname>FLpack</refname>
    <refpurpose>
      Provides the functionality of compressing and aligning FLTK widgets.
      <indexterm id="IndexFlpack"><primary>FLpack</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      <emphasis>FLpack</emphasis> provides the functionality of compressing and aligning widgets.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis><command>FLpack</command> iwidth, iheight, ix, iy, itype, ispace, iborder</synopsis>
  </refsect1>

  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>iwidth</emphasis> -- width of widget.
    </para>

    <para>
      <emphasis>iheight</emphasis> -- height of widget.
    </para>

    <para>
      <emphasis>ix</emphasis> -- horizontal position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels).
    </para>

    <para>
      <emphasis>iy</emphasis> -- vertical position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels).
    </para>

    <para>
      <emphasis>itype</emphasis> -- an integer number that modifies the appearance of the target widget.
    </para>

    <para>
      The <emphasis>itype</emphasis> argument expresses the type of packing:
      <itemizedlist>
        <listitem><para>0 - vertical</para></listitem>
        <listitem><para>1 - horizontal</para></listitem>
      </itemizedlist>
    </para>

    <para>
      <emphasis>ispace</emphasis> -- sets the space between the widgets.
    </para>

    <para>
      <emphasis>iborder</emphasis> -- border type of the container. It is expressed by means of an integer number chosen from the following:

      <itemizedlist>
        <listitem><para>0 - no border</para></listitem>
        <listitem><para>1 - down box border</para></listitem>
        <listitem><para>2 - up box border</para></listitem>
        <listitem><para>3 - engraved border</para></listitem>
        <listitem><para>4 - embossed border</para></listitem>
        <listitem><para>5 - black line border</para></listitem>
        <listitem><para>6 - thin down border</para></listitem>
        <listitem><para>7 - thin up border</para></listitem>
      </itemizedlist>
    </para>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>FLpack</emphasis> provides the functionality of compressing and aligning widgets.
    </para>

    <para>
      Containers are useful to format the graphic appearance of the widgets. The most important container is <link linkend="flpanel"><citetitle>FLpanel</citetitle></link>, that actually creates a window. It can be filled with other containers and/or valuators or other kinds of widgets.
    </para>

    <para>
      There are no k-rate arguments in containers.
    </para>
  </refsect1>

  <refsect1>
    <title>Examples</title>
    <para>
      The following example:
      <informalexample>
        <programlisting>
        FLpanel "Panel1",450,300,100,100
        FLpack  400,300, 10,40,0,15,3
gk1,ihs1        FLslider        "FLslider 1", 500, 1000, 2 ,1, -1, 300,15, 20,50
gk2,ihs2        FLslider        "FLslider 2", 300, 5000, 2 ,3, -1, 300,15, 20,100
gk3,ihs3        FLslider        "FLslider 3", 350, 1000, 2 ,5, -1, 300,15, 20,150
gk4,ihs4        FLslider        "FLslider 4", 250, 5000, 1 ,11, -1, 300,30, 20,200
gk5,ihs5        FLslider        "FLslider 5", 220, 8000, 2 ,1, -1, 300,15, 20,250
gk6,ihs6        FLslider        "FLslider 6", 1, 5000, 1 ,13, -1, 300,15, 20,300
gk7,ihs7        FLslider        "FLslider 7", 870, 5000, 1 ,15, -1, 300,30, 20,350
        FLpackEnd
        FLpanelEnd
        </programlisting>
      </informalexample>

      ...will produce this result, when resizing the window:

      <mediaobject>
        <imageobject>
          <imagedata fileref="images/flpack.png" format="PNG">
        </imageobject>

        <textobject>
          <phrase>FLpack.</phrase>
        </textobject>

        <caption>
          <para>FLpack.</para>
        </caption>
      </mediaobject>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="flgroup"><citetitle>FLgroup</citetitle></link>, 
      <link linkend="flgroupend"><citetitle>FLgroupEnd</citetitle></link>, 
      <link linkend="flpackend"><citetitle>FLpackEnd</citetitle></link>, 
      <link linkend="flpanel"><citetitle>FLpanel</citetitle></link>, 
      <link linkend="flpanelend"><citetitle>FLpanelEnd</citetitle></link>, 
      <link linkend="flscroll"><citetitle>FLscroll</citetitle></link>, 
      <link linkend="flscrollend"><citetitle>FLscrollEnd</citetitle></link>, 
      <link linkend="fltabs"><citetitle>FLtabs</citetitle></link>, 
      <link linkend="fltabsend"><citetitle>FLtabsEnd</citetitle></link>
    </para>
  </refsect1>

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