<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pickwiki.org/index.php?action=history&amp;feed=atom&amp;title=ChoiceBox</id>
	<title>ChoiceBox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pickwiki.org/index.php?action=history&amp;feed=atom&amp;title=ChoiceBox"/>
	<link rel="alternate" type="text/html" href="https://pickwiki.org/index.php?title=ChoiceBox&amp;action=history"/>
	<updated>2026-04-28T22:11:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://pickwiki.org/index.php?title=ChoiceBox&amp;diff=1614&amp;oldid=prev</id>
		<title>Stuboy: Fix to CHOICE.BOX.B UV for correct HELP display</title>
		<link rel="alternate" type="text/html" href="https://pickwiki.org/index.php?title=ChoiceBox&amp;diff=1614&amp;oldid=prev"/>
		<updated>2004-10-05T03:47:09Z</updated>

		<summary type="html">&lt;p&gt;Fix to CHOICE.BOX.B UV for correct HELP display&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;When using HELP at TCL with a telnet client more than 80 columns wide you will need to fix the CHOICE.BOX.B program.&amp;lt;br&amp;gt;&lt;br /&gt;
The program uses a fixed value of 39 as the mid point of the screen and when this is not the case causes all sorts of screen strife.&amp;lt;br&amp;gt;&lt;br /&gt;
The following changes (in bold) work for vt220 emulation.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:0030 SUBROUTINE CHOICE.BOX.B(start.line, max.lines, width, textstr.orig,&amp;lt;br&amp;gt;&lt;br /&gt;
:0031                         Button.Array,  selvalue,helpstring)&amp;lt;br&amp;gt;&lt;br /&gt;
:0032&amp;lt;br&amp;gt;&lt;br /&gt;
:0033 $INCLUDE UNIVERSE.INCLUDE MTF.INCL.H&amp;lt;br&amp;gt;&lt;br /&gt;
:0034 EQU KEYNUM TO 7&amp;lt;br&amp;gt;&lt;br /&gt;
:0035 DIM string.array(KEYNUM)&amp;lt;br&amp;gt;&lt;br /&gt;
:0036 DIM string.codes(KEYNUM)&amp;lt;br&amp;gt;&lt;br /&gt;
:0037 Default.list=0&amp;lt;br&amp;gt;&lt;br /&gt;
:0038&amp;lt;br&amp;gt;&lt;br /&gt;
:0039 textstr=textstr.orig&amp;lt;br&amp;gt;&lt;br /&gt;
:0040&amp;lt;br&amp;gt;&lt;br /&gt;
:0041 Help.number=0&amp;lt;br&amp;gt;&lt;br /&gt;
:0042 &amp;lt;b&amp;gt;midPoint = int(system(2)/2) - 1&amp;lt;/b&amp;gt; ;* find mid point&amp;lt;br&amp;gt;&lt;br /&gt;
:0043 IF width &amp;lt; 25 THEN width = 25&amp;lt;br&amp;gt;&lt;br /&gt;
:0044 &amp;lt;b&amp;gt;start.col  = midPoint - int(width/2)&amp;lt;/b&amp;gt; ;* use mid point instead of &amp;quot;39&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
:0045 text.start = start.col&amp;lt;br&amp;gt;&lt;br /&gt;
:0046 &amp;lt;b&amp;gt;IF LENDP(textstr) &amp;lt; width THEN text.start = (midPoint-int(LENDP(textstr)/2)) -1&amp;lt;/b&amp;gt; ;* use mid point instead of &amp;quot;39&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
:0047&amp;lt;br&amp;gt;&lt;br /&gt;
:0048 IF Button.Array=&amp;quot;&amp;quot; THEN&amp;lt;br&amp;gt;&lt;br /&gt;
:etc ...&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Re-compile APP.PROGS CHOICE.BOX.B&amp;lt;br&amp;gt;&lt;br /&gt;
CATALOG APP.PROGS *CHOICE.BOX.B FORCE&lt;/div&gt;</summary>
		<author><name>Stuboy</name></author>
	</entry>
</feed>