<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Customized Menu Challenge</title>
		<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge</link>
		<description>Posts in the discussion thread &quot;Customized Menu Challenge&quot; - Post your code!</description>
				<copyright></copyright>
		<lastBuildDate>Tue, 15 Sep 2026 13:04:13 +0000</lastBuildDate>
		
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1673988</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1673988</link>
				<description></description>
				<pubDate>Sun, 30 Dec 2012 20:57:24 +0000</pubDate>
								<wikidot:authorUserId>1494467</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>OH! Sorry. You cannot use Goto's to link to a a sub-program. Does anyone know how to fix that? If not, I will have to change the rules.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1673984</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1673984</link>
				<description></description>
				<pubDate>Sun, 30 Dec 2012 20:54:58 +0000</pubDate>
								<wikidot:authorUserId>1494467</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <div class="code"> <pre><code>Disp &quot;TITLE Output(2,2,Str1 [And so on.]</code></pre></div> <br /> Use <a href="http://tibasicdev.wikidot.com/output" target="_blank">Output(</a>, so that you can use the 8th line and add room for a cursor. :)
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1673980</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1673980</link>
				<description></description>
				<pubDate>Sun, 30 Dec 2012 20:38:54 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Nice.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1673914</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1673914</link>
				<description></description>
				<pubDate>Sun, 30 Dec 2012 18:33:49 +0000</pubDate>
				<wikidot:authorName>burr</wikidot:authorName>				<wikidot:authorUserId>740</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p><span class="werecode">:ClrHome<br /> :Output(1,1,Ans<br /> :16{^-1}length(Ans<br /> :If fPart(Ans<br /> :1+iPart(Ans<br /> :min(8,Ans→D<br /> :2→X:2→Y<br /> :Repeat max(A={21,26,105<br /> :Output(X,2,&quot;<br /> :Output(Y,2,&quot;&gt;<br /> :Repeat Ans<br /> :getKey→A<br /> :End<br /> :Y→X<br /> :Ans-(A=25)+(A=34→Y<br /> :2(Ans&gt;D)+D(Ans&lt;2<br /> :If Ans<br /> :Ans→Y<br /> :End<br /> :ClrHome<br /> :DS&lt;(Y,Y<br /> :&quot;<br /></span></p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1673836</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1673836</link>
				<description></description>
				<pubDate>Sun, 30 Dec 2012 16:03:43 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>And here's the code to my single page menu that I use for everything - It doesn't require string variables, only a string in Ans. It's 270 bytes. I added in burr's idea of the inverse key, so I suppose it will be <span style="text-decoration: line-through;">268 bytes</span>. EDIT: After all the optimizations, 161 bytes with title MENUX.</p> <div class="code"> <pre><code>:ClrHome :Output(1,1,Ans :16{^-1}length(Ans :If fPart(Ans :1+iPart(Ans :min({8,Ans→D :2→X :Ans→Y :While 1 :Output(X,2,&quot; :Output(Y,2,&quot;&gt; :Repeat Ans :getKey→A :End :If max(Ans={21,105,26 :Then :Y-1→X :ClrHome :Output(1,1,&quot; :Return :End :Y→X :Ans-(A=25)+(A=34→Y :2(Y&gt;D)+D(Y&lt;2 :If Ans :Ans→Y :End</code></pre></div> <p>EDIT: There are some optimizations to do&#8230; Done.<br /> EDIT EDIT: Even more optimizations&#8230; Done. And 1 last error check, so 161 bytes.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1673565</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1673565</link>
				<description></description>
				<pubDate>Sun, 30 Dec 2012 04:51:45 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>That looks pretty nice! Graphics wise, I think it's the best so far.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1673493</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1673493</link>
				<description></description>
				<pubDate>Sun, 30 Dec 2012 02:38:44 +0000</pubDate>
				<wikidot:authorName>simonalford42</wikidot:authorName>				<wikidot:authorUserId>1455624</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I tried uploading my program to the site. I doubt it worked but I did. I'm done with my program! It's a 970-byte scrolling menu on the graph screen that has a scroll bar to the site and can contain however many or few options as you like! However it must have a title. To set the options, do as follows:</p> <div class="code"> <pre><code>:&quot;Title,option 1,option 2,option 3 :PrgmMENU42</code></pre></div> <p>for however many options you want, each simply seperated by a comma.<br /> Once an option is chosen, the menu exits and the option number that was chosen is stored in Ans<br /> The scrolling is a little slow (it'd be so much better if I were allowed to use Pics!)</p> <img src="http://tibasicdev.wikidot.com/local--files/upload/SCREENMENU.png" alt="SCREENMENU.png" class="image" /> <p>If you're interested, here is a <a href="http://tibasicdev.wikidot.com/local--files/upload/MENU42%281%29.8xp" target="_blank">Download</a></p> <p>Variables used: Str1, LQ, and variables O, P, Q, R, S, T, and U</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1673332</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1673332</link>
				<description></description>
				<pubDate>Sat, 29 Dec 2012 21:29:27 +0000</pubDate>
				<wikidot:authorName>simonalford42</wikidot:authorName>				<wikidot:authorUserId>1455624</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Can you repost your program with all pf the code in one block so I can copy it and try it on my calculator? I'm a little confused right now how it goes.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1673263</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1673263</link>
				<description></description>
				<pubDate>Sat, 29 Dec 2012 19:11:49 +0000</pubDate>
				<wikidot:authorName>wowaname</wikidot:authorName>				<wikidot:authorUserId>1505167</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I use Output(8,1,&quot;8:item&quot;) for the last line. Also, for the option thing, you could configure it like:</p> <div class="code"> <pre><code>1→I Disp &quot;1:Item=1&quot; 1→X:1→L:prgmMENU If X=1:Then Output(1,1,&quot;&lt; &quot; Output(1,16,&quot;&gt; Repeat Ans=105 getKey If Ans=24:I+1→I If Ans=26:I-1→I Output(1,8,I End Output(1,1,&quot;1: Output(1,16,&quot; &quot; End</code></pre></div> <br /> It's a hacky script but I used it once and it works
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1673222</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1673222</link>
				<description></description>
				<pubDate>Sat, 29 Dec 2012 17:16:23 +0000</pubDate>
				<wikidot:authorName>simonalford42</wikidot:authorName>				<wikidot:authorUserId>1455624</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>What about number six? In my program it lets you customize the title and options outside the program before running the program, and the program ends with the option # as Ans for you to manipulate and use in the parent program. Isn't that what he wanted?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1673171</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1673171</link>
				<description></description>
				<pubDate>Sat, 29 Dec 2012 15:24:26 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>What about condition 6?<br /> So, the list of things wrong with Goto:<br /> It is quite slow, and gets slower the further the Lbl is in your program.<br /> It makes reading code (your own, or someone else's) much more confusing.<br /> In most cases, If, For(, While, or Repeat can be used instead, saving space and improving speed.<br /> Using a Goto to exit any block of code requiring an End command causes a memory leak, which will not be usable until the program finishes running or executes a Return command, and which will slow down your program down.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1673119</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1673119</link>
				<description></description>
				<pubDate>Sat, 29 Dec 2012 12:18:41 +0000</pubDate>
				<wikidot:authorName>simonalford42</wikidot:authorName>				<wikidot:authorUserId>1455624</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>My entry is going to be something like this:<br /> Put a string as Ans with the title and then options seperated by commas, and then run the program. it makes the menu with the options and title inside Ans<br /> :&quot;TITLE,OPTION 1,2,3,4,5,6<br /> :prgm42MENU</p> <p>And then the number of the option picked is given as Ans once the menu is done, so you're free to do what you like with it. I'm almost done, only a buttload of optimizing to do!</p> <p>And yeah. I guess I wouldn't really mind Gotos but I never use them since nobody likes them and they're supposed to be bad.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1672854</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1672854</link>
				<description></description>
				<pubDate>Sat, 29 Dec 2012 01:33:04 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 codebender's entry isn't meant to be a subprogram - it has Goto's! So it doesn't need to be customized outside the program.<br /> Personally, I think this:<br /> <img src="http://djomni.57o9.org/OldSiteSmilies200506/goto.gif" alt="goto.gif" class="image" /><br /> So I decided to use a variable output. But codebender's entry more closely resembles the Menu() command. It's really a matter of preference.
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1672793</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1672793</link>
				<description></description>
				<pubDate>Sat, 29 Dec 2012 00:16:49 +0000</pubDate>
				<wikidot:authorName>simonalford42</wikidot:authorName>				<wikidot:authorUserId>1455624</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>How do you customize the title from outside the program? Isn't that in the criteria?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1672792</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1672792</link>
				<description></description>
				<pubDate>Sat, 29 Dec 2012 00:15:32 +0000</pubDate>
				<wikidot:authorName>simonalford42</wikidot:authorName>				<wikidot:authorUserId>1455624</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>up to 8 items, or for title, up to 7</p> </blockquote> <p>Using Disp to display eight items doesn't work because when you display on the eighth line it shifts everything up one line as the following shows:</p> <p>For(A,1,12<br /> disp A<br /> end</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1672421</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1672421</link>
				<description></description>
				<pubDate>Fri, 28 Dec 2012 16:05:32 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Oh, I thought you did, sorry.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1672098</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1672098</link>
				<description></description>
				<pubDate>Fri, 28 Dec 2012 07:25:27 +0000</pubDate>
				<wikidot:authorName>burr</wikidot:authorName>				<wikidot:authorUserId>740</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I didn't even touch the actual code&#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1672077</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1672077</link>
				<description></description>
				<pubDate>Fri, 28 Dec 2012 06:46:19 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Ah, thanks. I noticed you didn't add the inverse char optimization from above. Is that because there's some speed issue with it, or did you just forget?<br /> A new download should be added; I'll work on that as soon as we can finalize the code.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1672066</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1672066</link>
				<description></description>
				<pubDate>Fri, 28 Dec 2012 06:01:09 +0000</pubDate>
				<wikidot:authorName>burr</wikidot:authorName>				<wikidot:authorUserId>740</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I actually just found that page today while searching the site, and prettied it up a bit for ya :D</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1672061</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1672061</link>
				<description></description>
				<pubDate>Fri, 28 Dec 2012 05:45:35 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p><a href="http://tibasicdev.wikidot.com/custom-menu-multi-page">http://tibasicdev.wikidot.com/custom-menu-multi-page</a><br /> I made this a while ago&#8230; Just fished it out heheh&#8230; So I'm plagiarizing myself. Dunno if that violates the Challenge Rules.<br /> Anyhow, I think whoever wins this should replace mine with theirs, and update everything.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1671735</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1671735</link>
				<description></description>
				<pubDate>Thu, 27 Dec 2012 20:42:39 +0000</pubDate>
				<wikidot:authorName>wowaname</wikidot:authorName>				<wikidot:authorUserId>1505167</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>It has to allow you to easily select options and customize the result of each option from the 'Exec' function in the program menu.</p> </blockquote> <p>Sorry, I missed that part &gt;_&lt;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1671582</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1671582</link>
				<description></description>
				<pubDate>Thu, 27 Dec 2012 16:39:36 +0000</pubDate>
								<wikidot:authorUserId>1494467</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I am not worried about a <em>specific</em> deadline: just post your code and when the thread dies down, we will vote. Just say you need more time if no one posts for a while.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1671573</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1671573</link>
				<description></description>
				<pubDate>Thu, 27 Dec 2012 16:22:58 +0000</pubDate>
								<wikidot:authorUserId>1494467</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The problem, however, is that there is no way to select options. If you refer to this from a program, there is a menu that appears and that will not do anything. Add in option selection. :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1671569</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1671569</link>
				<description></description>
				<pubDate>Thu, 27 Dec 2012 16:18:51 +0000</pubDate>
								<wikidot:authorUserId>1494467</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yes, it is better to use While loops.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1671100</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1671100</link>
				<description></description>
				<pubDate>Thu, 27 Dec 2012 00:35:53 +0000</pubDate>
				<wikidot:authorName>burr</wikidot:authorName>				<wikidot:authorUserId>740</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>You forgot to close the outermost loop in your code, which will lead to a memory leak. Nonetheless, I added some optimizations as well:</p> <p><span class="werecode">:1→B<br /> :While 1<br /> :If B=1:Str1<br /> :If B=2:Str2<br /> :If B=3:Str3<br /> :If B=A:StrA<br /> :ClrHome<br /> :Output(1,1,Ans<br /> :16ֿ¹length(Ans // inverse character<br /> :If fPart(Ans<br /> :1+iPart(Ans<br /> :Ans→D<br /> :2→X<br /> :Ans→Y<br /> :Repeat max(C={21,24,26<br /> :Output(X,2,&quot; &quot;<br /> :Output(Y,2,&quot;&gt;<br /> :getKey→C<br /> :Y→X<br /> :Ans-(C=25)+(C=34<br /> :2(Ans&gt;D)+D(Ans≤1)+Ans(Ans≤D and Ans&gt;1→Y<br /> :max(1,min(A,B+(C=26)-(C=24→B<br /> :End<br /> :If C≠21<br /> :End<br /> :DS&lt;(X,X:<br /></span></p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1671020</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1671020</link>
				<description></description>
				<pubDate>Wed, 26 Dec 2012 21:40:47 +0000</pubDate>
				<wikidot:authorName>Silver Phantom</wikidot:authorName>				<wikidot:authorUserId>1430989</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p><a href="http://tibasicdev.wikidot.com/forum/t-560184">http://tibasicdev.wikidot.com/forum/t-560184</a><br /> This is a good bases and covers all criteria except for rule 2 and rule 6 can be fitted in. I have altered it before to fit on a graph screen and you can &quot;change pages&quot; for more options. I am not placing this as my entry nor as a representative of xeda, although if i do happen to make an entry, it's would like similar to this</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1671007</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1671007</link>
				<description></description>
				<pubDate>Wed, 26 Dec 2012 21:03:20 +0000</pubDate>
				<wikidot:authorName>simonalford42</wikidot:authorName>				<wikidot:authorUserId>1455624</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>When's the contest deadline? I'm interested but I prolly won't be able to finish mine for a week or two. I'm a really slow programmer :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1670899</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1670899</link>
				<description></description>
				<pubDate>Wed, 26 Dec 2012 18:46:45 +0000</pubDate>
				<wikidot:authorName>wowaname</wikidot:authorName>				<wikidot:authorUserId>1505167</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <div class="code"> <pre><code>Repeat Ans=105 Output(X,2,&quot;* Repeat Ans getKey End Output(X,2,&quot;:&quot; If Ans=25 and X&gt;1+(L&lt;0 X-1→X If Ans=25 and X=1+(L&lt;0 abs(L→X If Ans=34 and X&lt;abs(L X+1→X If Ans=34 and X=abs(L 1+(L&lt;0→X If iPart(.1Ans)≥7 and Ans≤94 and max(10fPart(.1Ans)={2,3,4 Then 3(9-iPart(.1Ans))-1+10fPart(.1Ans If L&gt;0 or ((L&lt;0)(L≠1)(Ans+1≤abs(L Then Ans+(L&lt;0→X Return End End End</code></pre></div> <br /> To use: <div class="code"> <pre><code>ClrHome Disp &quot;1:Item1&quot;,&quot;2:Item2&quot;,&quot;n:ItemN&quot;</code></pre></div> <p>up to 8 items, or for title:</p> <div class="code"> <pre><code>ClrHome Disp &quot;Title&quot;,&quot;1:Item1&quot;,&quot;n:ItemN&quot;</code></pre></div> <p>up to 7. It is kind of tedious to type the number before each item manually in a program but for my use it is easier to do than to use string variables.<br /> After displaying the items, X is used to select the default highlighted item (usually 1, or 2 if a title is included) and L is used to define the number of items (negative if there is a title). I'll give an actual example:</p> <div class="code"> <pre><code>Disp &quot;FunPak&quot;,&quot;1:Games&quot;,&quot;2:Toys&quot;,&quot;3:ASM prgms&quot;,&quot;4:Settings&quot;,&quot;5:HELP?&quot;,&quot;6:End&quot; 2→X -7→L prgmS1</code></pre></div> <p>*S1 is the name I used for the menu program.</p> <p>So there are only 2 variables to keep up with, both real, and the selected item is returned into the variable X after a selection has been made. It is a little less than 294 bytes large (the version I use has the number inverted like a normal menu instead of a star placed next to it) so it is small and efficient.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1670849</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1670849</link>
				<description></description>
				<pubDate>Wed, 26 Dec 2012 17:13:14 +0000</pubDate>
								<wikidot:authorUserId>1494467</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>It has a title and 7 slots and has {__} as a cursor, which goes to the end of each option.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1670846</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1670846</link>
				<description></description>
				<pubDate>Wed, 26 Dec 2012 17:10:37 +0000</pubDate>
								<wikidot:authorUserId>1494467</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thats really good!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1670843</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1670843</link>
				<description></description>
				<pubDate>Wed, 26 Dec 2012 17:08:43 +0000</pubDate>
								<wikidot:authorUserId>1494467</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <div class="code"> <pre><code>ClrHome 2-&gt;Y Disp &quot;Menu Name Output(2,2,Str1 Output(2,3,Str2 Output(2,4,Str3 Output(2,5,Str4 Output(2,6,Str5 Output(2,7,Str6 Output(2,8,Str7 While 1 Output(Y,1,&quot;{ If Y=2 lengh(Str1)-&gt;A [And so on...] A+2-&gt;A Output(Y,A,&quot;} getkey-&gt;K If K[does not =]0 ClrHome If K=25 and Y&gt;2 Y-1-&gt;Y If K=34 and Y&lt;8 Y+1-&gt;Y If K=21 and Y=2:Goto 1 If K=21 and Y=3:Goto 2 If K=21 and Y=4:Goto 3 If K=21 and Y=5:Goto 4 If K=21 and Y=6:Goto 5 If K=21 and Y=7:Goto 6 End</code></pre></div> <br /> However, I am making my <em>real</em> one on the graph screen.
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1670832</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1670832</link>
				<description></description>
				<pubDate>Wed, 26 Dec 2012 16:57:36 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Inputs:<br /> A, # of pages<br /> Str1, Str2&#8230; StrA // 1 Str for each part of the menu<br /> Ex: :1→A<br /> Str1=&quot; [MAIN] 2&#160;3 ITEM 1 ITEM 2<br /> Str2=&quot; MAIN [2] 3 ITEM 1 ITEM 2<br /> Str3=&quot; MAIN 2 [3] ITEM 1 ITEM 2<br /> Make sure the strings output right, each line 8 chars long. And the title should indicate what page it's on (prgm, exec, etc.)<br /> Outputs:<br /> B, the page they're on<br /> X, the # choice they made<br /> Destroyed:<br /> Ans, C, D, Y, Homescreen</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1670828</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1670828</link>
				<description></description>
				<pubDate>Wed, 26 Dec 2012 16:54:39 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Ok, here's my code:</p> <div class="code"> <pre><code>:1→B :Lbl 1 :If B=1 :Str1 :If B=2 :Str2 :If B=3 :Str3 :If B=A :StrA :ClrHome :Output(1,1,Ans :length(Ans)/16 :If fPart(Ans :1+iPart(Ans :Ans→D :2→X :Ans→Y :Repeat C=21 or Ans :Output(X,2,&quot; &quot; :Output(Y,2,&quot;&gt; :Repeat Ans :getKey→C :Y→X :Y-(A=25)+(A=34→Y :2(Y&gt;D)+D(Y≤1)+Y(Y≤D and Y&gt;1→Y :If C=21 :X-1→X :max(1,min(A,B+(C=26)-(C=24→B :max(C={24,26 :End :If C=21 :Return :Goto 1</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1670824</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1670824</link>
				<description></description>
				<pubDate>Wed, 26 Dec 2012 16:46:35 +0000</pubDate>
								<wikidot:authorUserId>1494467</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>You can discount one slot for a title menu.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1670823</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1670823</link>
				<description></description>
				<pubDate>Wed, 26 Dec 2012 16:45:55 +0000</pubDate>
								<wikidot:authorUserId>1494467</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>If you tap 'Pgrm' and Tap the '&lt;' arrow once, you go to the 'Exec' menu, which allows you to give &quot;links&quot; to other programs in your code. You have to be able to customize the options of the menu and their results from another program, thus designing a good menu function that is better than 'Menu(.'</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1670818</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1670818</link>
				<description></description>
				<pubDate>Wed, 26 Dec 2012 16:42:03 +0000</pubDate>
								<wikidot:authorUserId>1494467</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p><strong>If you use a title menu, you can discount slots from it.</strong></p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1670816</guid>
				<title>Re: Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1670816</link>
				<description></description>
				<pubDate>Wed, 26 Dec 2012 16:38:10 +0000</pubDate>
				<wikidot:authorName>Mr Dino</wikidot:authorName>				<wikidot:authorUserId>836455</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Can you please explain #6 to me? I don't understand&#8230;<br /> I've got one, but it has 7 options (one line for the title of the menu). I also don't know if it abides by #6.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-609334#post-1670805</guid>
				<title>Customized Menu Challenge</title>
				<link>http://tibasicdev.wikidot.com/forum/t-609334/customized-menu-challenge#post-1670805</link>
				<description></description>
				<pubDate>Wed, 26 Dec 2012 16:20:12 +0000</pubDate>
								<wikidot:authorUserId>1494467</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Alright, here is the challenge:<br /> You must make a customized menu.<br /> 1.) It has to use generic strings for information.<br /> 2.) It must have a cursor of some sort which not let you move your cursor off of the screen.<br /> 3.) It must <strong>not</strong> use pics.<br /> 4.) It has to be less than 1,000 bytes of code.<br /> 5.) It must be written in <strong>pure</strong> basic.<br /> 6.) It has to allow you to easily select options and customize the result of each option from the 'Exec' function in the program menu.<br /> 7.) It may be on the graph <em>or</em> the home screen.<br /> 8.) You must have 8 options for the home screen or 9 options for the graph screen, and possibly more for extra points.<br /> 9.) You may <strong>not</strong> use the Menu( command.<br /> 10.) You must <strong>post</strong> your code in this thread.<br /> We will vote on the best menu. May the best one win!</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>