1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237
|
<!DOCTYPE html>
<html>
<head>
<title>Interactive Tablelist Cell Editing Using the BWidget Package</title>
<meta name="Author" content="Csaba Nemethi">
<meta name="Keywords" content="tablelist, editing, BWidget">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body>
<div align="center">
<h1>Interactive Tablelist Cell Editing Using the BWidget Package</h1>
<h2>For Tablelist Version 6.11</h2>
<h3>by</h3>
<h2>Csaba Nemethi</h2>
<address>
<a href="mailto:csaba.nemethi@t-online.de">csaba.nemethi@t-online.de</a>
</address>
</div>
<hr>
<h2 id="contents">Contents</h2>
<ul>
<li><a href="#overview">Overview</a></li>
<li><a href="#Entry">The <code><b>tablelist::addBWidgetEntry</b></code>
Command</a></li>
<li><a href="#SpinBox">The <code><b>tablelist::addBWidgetSpinBox</b></code>
Command</a></li>
<li><a href="#ComboBox">The
<code><b>tablelist::addBWidgetComboBox</b></code> Command</a></li>
</ul>
<div align="center">
<p><a href="index.html">Start page</a></p>
</div>
<hr>
<h2 id="overview">Overview</h2>
<p>The BWidget package is a library extension for Tcl/Tk versions 8.1.1 or
higher, written in pure Tcl/Tk code. Its download location is</p>
<blockquote>
<address>
<a href=
"https://sourceforge.net/projects/tcllib/files">https://sourceforge.net/projects/tcllib/files</a>
</address>
</blockquote>
<p>Tablelist supports interactive cell editing with the aid of the Entry,
SpinBox, and ComboBox widgets from the BWidget package. The steps
needed for using one of these widgets for editing the cells of a given column
are as follows:</p>
<ol>
<li>Register the desired widget for interactive cell editing by invoking
one of the commands described in this reference page.</li>
<li class="tm">Use the tablelist widget's <code><b><a href=
"tablelistWidget.html#columnconfigure">columnconfigure</a></b></code>
subcommand to set the given column's <code><b><a href=
"tablelistWidget.html#col_editable">-editable</a></b></code> option to true
and its <code><b><a href=
"tablelistWidget.html#col_editwindow">-editwindow</a></b></code> option to
the value returned by the command mentioned above. (These options are
supported at cell level, too, with the aid of the <code><b><a href=
"tablelistWidget.html#cellconfigure">cellconfigure</a></b></code>
subcommand.)</li>
</ol>
<p><b>REMARK:</b> The temporary embedded BWidget widget used for
interactive cell editing will appear properly scaled, according to the
display's DPI scaling level, given by the variable
<code><b>tablelist::scalingpct</b></code>.</p>
<div align="center">
<p><a href="#contents">Contents</a> <a href=
"index.html">Start page</a></p>
</div>
<hr>
<h2 id="Entry">The <code><b>tablelist::addBWidgetEntry</b></code>
Command</h2>
<dl>
<dt><b>NAME</b></dt>
<dd><code>tablelist::addBWidgetEntry</code> – Register the Entry
widget from the BWidget package for interactive cell editing</dd>
<dt class="tm"><b>SYNOPSIS</b></dt>
<dd>
<pre>
<b>tablelist::addBWidgetEntry</b> ?<i>name</i>?
</pre>
</dd>
<dt><b>DESCRIPTION</b></dt>
<dd>This command registers the Entry widget from the BWidget package for
interactive cell editing in tablelist widgets. The optional argument
specifies the name to be used for the Entry widget as the value of the
<code><b><a href=
"tablelistWidget.html#col_editwindow">-editwindow</a></b></code> column or
cell configuration option. It may be any string that is different
from the <a href="tablelistTkCore.html">Tk core</a> and <a href=
"tablelistTile.html">tile</a> edit window names. The default is
<code><b>Entry</b></code>. The command returns its
<code><i>name</i></code> argument.</dd>
<dt class="tm"><b>KEYWORDS</b></dt>
<dd>tablelist, editing, BWidget, Entry</dd>
</dl>
<div align="center">
<p><a href="#contents">Contents</a> <a href=
"index.html">Start page</a></p>
</div>
<hr>
<h2 id="SpinBox">The <code><b>tablelist::addBWidgetSpinBox</b></code>
Command</h2>
<dl>
<dt><b>NAME</b></dt>
<dd><code>tablelist::addBWidgetSpinBox</code> – Register the SpinBox
widget from the BWidget package for interactive cell editing</dd>
<dt class="tm"><b>SYNOPSIS</b></dt>
<dd>
<pre>
<b>tablelist::addBWidgetSpinBox</b> ?<i>name</i>?
</pre>
</dd>
<dt><b>DESCRIPTION</b></dt>
<dd>This command registers the SpinBox widget from the BWidget package for
interactive cell editing in tablelist widgets. The optional argument
specifies the name to be used for the SpinBox widget as the value of the
<code><b><a href=
"tablelistWidget.html#col_editwindow">-editwindow</a></b></code> column or
cell configuration option. It may be any string that is different
from the <a href="tablelistTkCore.html">Tk core</a> and <a href=
"tablelistTile.html">tile</a> edit window names. The default is
<code><b>SpinBox</b></code>. The command returns its
<code><i>name</i></code> argument.</dd>
<dd class="tm">The temporary embedded SpinBox widget associated with the
above <code><i>name</i></code> will be created with its
<code><b>-editable</b></code> option set to <code>1</code>. You can
use the script corresponding to the <code><b><a href=
"tablelistWidget.html#editstartcommand">-editstartcommand</a></b></code>
tablelist configuration option to make the SpinBox non-editable or define
validations for it, as well as for setting its (range of) values and its
<code><b>-wrap</b></code> option.</dd>
<dt class="tm"><b>KEYWORDS</b></dt>
<dd>tablelist, editing, BWidget, SpinBox</dd>
</dl>
<div align="center">
<p><a href="#contents">Contents</a> <a href=
"index.html">Start page</a></p>
</div>
<hr>
<h2 id="ComboBox">The <code><b>tablelist::addBWidgetComboBox</b></code>
Command</h2>
<dl>
<dt><b>NAME</b></dt>
<dd><code>tablelist::addBWidgetComboBox</code> – Register the
ComboBox widget from the BWidget package for interactive cell editing</dd>
<dt class="tm"><b>SYNOPSIS</b></dt>
<dd>
<pre>
<b>tablelist::addBWidgetComboBox</b> ?<i>name</i>?
</pre>
</dd>
<dt><b>DESCRIPTION</b></dt>
<dd>This command registers the ComboBox widget from the BWidget package for
interactive cell editing in tablelist widgets. The optional argument
specifies the name to be used for the ComboBox widget as the value of the
<code><b><a href=
"tablelistWidget.html#col_editwindow">-editwindow</a></b></code> column or
cell configuration option. It may be any string that is different
from the <a href="tablelistTkCore.html">Tk core</a> and <a href=
"tablelistTile.html">tile</a> edit window names. The default is
<code><b>ComboBox</b></code>. The command returns its
<code><i>name</i></code> argument.</dd>
<dd class="tm">The temporary embedded ComboBox widget associated with the
above <code><i>name</i></code> will be created with its
<code><b>-editable</b></code> option set to <code>1</code>. You can
use the script corresponding to the <code><b><a href=
"tablelistWidget.html#editstartcommand">-editstartcommand</a></b></code>
tablelist configuration option to make the ComboBox non-editable or define
validations for it, as well as for populating its listbox component (with
the aid of the ComboBox widget's <code><b>-values</b></code> option).</dd>
<dt class="tm"><b>KEYWORDS</b></dt>
<dd>tablelist, editing, BWidget, ComboBox</dd>
</dl>
<div align="center">
<p><a href="#contents">Contents</a> <a href=
"index.html">Start page</a></p>
</div>
</body>
</html>
|