Skip to content

Commit

Permalink
New control IupScrollBox (final)
Browse files Browse the repository at this point in the history
  • Loading branch information
scuri committed Oct 25, 2012
1 parent 2dff43e commit 581596f
Show file tree
Hide file tree
Showing 12 changed files with 312 additions and 216 deletions.
84 changes: 84 additions & 0 deletions html/en/elem/iupscrollbox.html
@@ -0,0 +1,84 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>IupScrollBox</title>

<link rel="stylesheet" type="text/css" href="../../style.css">
</head>
<body>
<div id="navigation">
<ul>
<li><a href="#Creation">Creation</a></li>
<li><a href="#Attributes">Attributes</a></li>
<li><a href="#Callbacks">Callbacks</a></li>
<li><a href="#Notes">Notes</a></li>
<li><a href="#Examples">Examples</a></li>
<li><a href="#SeeAlso">See Also</a></li>
</ul>
</div>

<h2>IupScrollBox</h2>
<p>Creates a native container that allows its child to be scrolled. It inherits from
<a href="../elem/iupcanvas.html">IupCanvas</a>. </p>

<h3><a name="Creation">Creation</a></h3>

<pre>Ihandle* IupScrollBox(Ihandle*<strong> child</strong>); [in C]
iup.scrollbox{<strong>child</strong>: ihandle} -&gt; (<strong>elem</strong>: ihandle) [in Lua]
scrollbox(<strong>child</strong>) [in LED]</pre>
<p><strong>child</strong>: Identifier of an interface element which will receive the
box. It can be NULL.</p>
<p>
<u>Returns:</u> the identifier of the
created element, or NULL if an error occurs.</p>

<h3><a name="Attributes">Attributes</a></h3>


<p>Inherits all attributes and callbacks of the <a href="../elem/iupcanvas.html">IupCanvas</a>,
but redefines a few attributes.</p>
<p><a href="../attrib/iup_bgcolor.html">BGCOLOR</a>: will use the background
color of the native parent by default.</p>

<p><b>BORDER </b>(creation only):

the default value is "NO".</p>

<p><a href="../attrib/iup_expand.html">EXPAND</a> (<font SIZE="3">non inheritable</font>):
the default value is &quot;YES&quot;.</p>
<p><a href="../attrib/iup_scrollbar.html">SCROLLBAR</a> (creation only): the
default value is "YES".</p>

<blockquote>
<hr>
</blockquote>

<p>
<a href="../attrib/iup_clientsize.html">CLIENTSIZE</a>,
<a href="../attrib/iup_clientoffset.html">CLIENTOFFSET</a>:
also accepted.</p>

<h3>Notes</h3>
<p>The box allows the application to create a virtual space for the dialog that
is actually larger than the visible area. The current size of the box defines
the visible area. The natural size of the child (and its own children) defines
the virtual space size.</p>

<p>The box can be created with no elements and be dynamic filled using
<a href="../func/iupappend.html">IupAppend</a> or
<a href="../func/iupinsert.html">IupInsert</a>.</p>


<h3><a name="Examples">Examples</a></h3>
<p><a href="../../examples/">Browse for Example Files</a></p>

<div align="center">
<center>
<img border="0" src="images/iupscrollbox.png">
</center>
</div>

</body>

</html>
7 changes: 7 additions & 0 deletions html/en/history3.html
Expand Up @@ -62,6 +62,8 @@ <h3>CVS (23/Oct/2012)</h3>

<ul>

<li><span class="hist_new">New:</span> layout composition element <strong>
IupScrollBox</strong>.</li>
<li><span class="hist_new">New:</span> <strong>SHOWDRAGDROP</strong>
attribute and <strong>DRAGDROP_CB</strong> callback to support internal drag
and drop of items in <strong>IupList</strong>.</li>
Expand All @@ -76,6 +78,11 @@ <h3>CVS (23/Oct/2012)</h3>
when scrollbars are hidden in Motif.</li>
<li><span class="hist_fixed">Fixed:</span> <strong>IupLabel</strong> missing
drag&amp;drop support.</li>
<li><span class="hist_fixed">Fixed:</span> <strong>IupMatrix</strong> in GTK
when editing a cell and Esc was pressed.</li>
<li><span class="hist_fixed">Fixed:</span> the return value for POSX and
POSY in <strong>IupCanvas</strong> when the respective scrollbar is hidden
or disabled.</li>

</ul>

Expand Down
6 changes: 1 addition & 5 deletions html/en/to_do.html
Expand Up @@ -41,7 +41,6 @@ <h3>Roadmap for the Next Versions</h3>
<h4>For 3.7 (November 2012)</h4>

<ul>
<li>New control ScrollBox </li>
<li>New support for GTK 3</li>
<li>Fix better focus
control when changing the current tab in <strong>IupTabs</strong>.</li>
Expand Down Expand Up @@ -77,7 +76,7 @@ <h3>General</h3>
<strong>IupGetParam</strong> to add other applications controlled elements.</li>
<li><strong><span class="style6">Priority:</span></strong> detection of the
minimum size of a child inside <strong>IupSplit</strong>.</li>
<li><strong><span class="style6">Priority:</span></strong> IupGLCanvas in
<li><strong><span class="style6">Priority:</span></strong> <strong>IupGLCanvas</strong> in
MACOS X using native OpenGL support.</li>

<li>A MacOS X native driver using Carbon or Cocoa.</li>
Expand Down Expand Up @@ -212,9 +211,6 @@ <h3>New Controls</h3>

<li><strong><span class="style2">Priority:</span> Scripter - </strong>Project Manager/Dialog Editor/Integrated Debugger for IupLua</li>

<li><strong><span class="style2">Priority: </span>ScrollBox</strong> -&nbsp; a
box that can scroll the elements inside</li>

<li><strong><span class="style2">Priority: </span>GridBox </strong>- container
to distribute elements in a grid.</li>
<li class="style3">-----------------------------</li>
Expand Down
4 changes: 4 additions & 0 deletions html/wb/wb_usr.lua
Expand Up @@ -868,6 +868,10 @@ wb_usr.tree =
name= {nl= "IupSbox"},
link= "elem/iupsbox.html"
},
{
name= {nl= "IupScrollBox"},
link= "elem/iupscrollbox.html"
},
{
name= {nl= "IupSplit"},
link= "elem/iupsplit.html"
Expand Down
53 changes: 27 additions & 26 deletions html/wb_search.txt
Expand Up @@ -128,7 +128,7 @@ en/call/iup_destroy_cb.html
en/dlg/iupmessagedlg.html
en/dlg/iupcolordlg.html
en/screenshots.html
en/attrib/iup_ymax.html
en/dlg/iuplistdialog.html
en/call/iup_wheel_cb.html
en/func/iupgetbrother.html
en/func/iupsetfattribute.html
Expand Down Expand Up @@ -191,22 +191,23 @@ en/func/iupmap.html
en/func/iupgethandle.html
en/call/iup_killfocus_cb.html
en/attrib/iup_shrink.html
en/../doxygen/group__focus.html
en/elem/iupscrollbox.html
en/iuplua_adv.html
en/../doxygen/group__iarray.html
en/elem/iuptree_attrib.html
en/attrib/iup_screenposition.html
en/elem/iupitem.html
en/dlg/iupgetfile.html
en/../doxygen/group__iarray.html
en/buildwin.html
en/../doxygen/group__strmessage.html
en/func/iupcreate.html
en/buildwin.html
en/../doxygen/group__table.html
en/func/iupcreate.html
en/../doxygen/group__util.html
en/../doxygen/group__drvfont.html
en/../doxygen/group__focus.html
en/../doxygen/group__dlglist.html
en/../doxygen/group__childtree.html
en/iupimglib2.html
en/attrib/iup_ymax.html
en/copyright.html
en/../doxygen/group__iclassbaseutil.html
en/../doxygen/group__iclassbase.html
Expand All @@ -217,67 +218,67 @@ en/system.html
en/func/iupgetallclasses.html
en/ide_guide/msvc.html
en/elem/iuptimer.html
en/call/iup_close_cb.html
en/ctrl/iupmatrix_cb.html
en/func/iupsethandle.html
en/call/iup_show_cb.html
en/call/iup_highlight_cb.html
en/func/iupgetfunction.html
en/call/iup_show_cb.html
en/download_tips.html
en/func/iupgetfunction.html
en/func/iuppopup.html
en/elem/iupuser.html
en/func/iupsetcallback.html
en/ctrl/iupcolorbar.html
en/elem/iupmenu.html
en/func/iupmainlooplevel.html
en/attrib.html
en/func/iupsetfunction.html
en/func/iupmainlooplevel.html
en/func/iupgetfocus.html
en/attrib/iup_title.html
en/func/iupstoreglobal.html
en/func/iupgetfocus.html
en/func/iupnextfield.html
en/func/iuprefresh.html
en/attrib/iup_globals.html
en/func/iupgetint.html
en/keyboard.html
en/func/iupgetint.html
en/func/iupsetattributehandle.html
en/iupim.html
en/call/iup_button_cb.html
en/../doxygen/group__register.html
en/func/iupsetattribute.html
en/iupimglib2.html
en/func/iupmapfont.html
en/attrib/iup_floating.html
en/attrib/iup_position.html
en/func/iupsetattribute.html
en/ctrl/iup_mglplot.html
en/ide_guide/owc.html
en/attrib/iup_position.html
en/call/iup_map_cb.html
en/ide_guide/owc.html
en/func/iupgetclasscallbacks.html
en/ctrl/iupmatrix_cb.html
en/func/iupgetname.html
en/ctrl/iupcolorbar.html
en/dlg/iupmessage.html
en/call/iup_close_cb.html
en/elem/iupval.html
en/attrib/iup_size.html
en/elem/iuptext.html
en/elem/iupval.html
en/dlg/iupmessage.html
en/sys_guide.html
en/attrib/iup_clientsize.html
en/elem/iuplabel.html
en/ide_guide/cppbx.html
en/func/iupreparent.html
en/sample_results_bgcolor_indiv.html
en/func/iupgetglobal.html
en/dlg/iupdialog.html
en/func/iupversion.html
en/elem/iupspin.html
en/sample_results_background.html
en/home.html
en/dlg/iuplistdialog.html
en/sample_results_background.html
en/elem/iuplabel.html
en/attrib/iup_value.html
en/iuplua.html
en/sys_guide.html
en/call/iup_button_cb.html
en/elem/iupmultiline.html
en/func/iupsetlanguage.html
en/attrib/iup_posy.html
en/func/iuplua_open.html
en/call/iup_k_any.html
en/func/iupsetlanguage.html
en/sample_results.html
en/attrib/iup_posy.html
en/attrib/iup_scrollbar.html
en/call_guide.html
en/func/iuphide.html
Expand Down

0 comments on commit 581596f

Please sign in to comment.