Hello Ti programmers,

I am currently programming an app for science class but i bumped into a problem. My program prints alot of text on the screen using Disp and then it exits. But after it exits the user isnt able to scroll through all text because when the up or down button is pressed all text simply disappears. I tried to pause my program instead of quitting it but that didnt allow me to scroll either.

So my question to you guys is, how do i make the user able to scroll through the printed text ?

I am writing my program in Ti-Coder and im debugging on my Ti-84+.

I hope you guys can answer my question as soon as possible.

http://pastebin.com/9LrryR1y here is my code. (because it wont make you able to help me without it i guess.)

Thanks in advance.
Welcome to Cemetech, Spenk! A few housekeeping details:
1) Please Introduce Yourself and tell us about what languages you know, what projects you're working on, and so on if you get a chance.
2) I don't know much about TI-Coder, but I believe it's not a very good tool to use. I humbly recommend SourceCoder 3 if you like online tools, or TokenIDE if you prefer offline tools. If you use SourceCoder, you can instantly test your programs in the in-page jsTIfied online calculator emulator.

Anyway, the question you asked: you'll want to do the following:
1. ClrHome
2. Print up to 7 lines of text using the Disp command.
3. Pause (wait for the user to press [ENTER])
4. Print up to 7 more lines of text
5. And so on.
This will let your users view one screen of text at a time, but it won't let you scroll. If you use the getKey command and detect the [up] and [down] keys, and also keep track of which lines are which, you can scroll. If you need help with getKey, you could try Chapter 6 of this book or any other getKey reference.

One final option: you could use the multiline text area available in the BASIC interface to the Doors CS GUI API routines.
KermMartian wrote:
Welcome to Cemetech, Spenk! A few housekeeping details:
1) Please Introduce Yourself and tell us about what languages you know, what projects you're working on, and so on if you get a chance.
2) I don't know much about TI-Coder, but I believe it's not a very good tool to use. I humbly recommend SourceCoder 3 if you like online tools, or TokenIDE if you prefer offline tools. If you use SourceCoder, you can instantly test your programs in the in-page jsTIfied online calculator emulator.

Anyway, the question you asked: you'll want to do the following:
1. ClrHome
2. Print up to 7 lines of text using the Disp command.
3. Pause (wait for the user to press [ENTER])
4. Print up to 7 more lines of text
5. And so on.
This will let your users view one screen of text at a time, but it won't let you scroll. If you use the getKey command and detect the [up] and [down] keys, and also keep track of which lines are which, you can scroll. If you need help with getKey, you could try Chapter 6 of this book or any other getKey reference.

One final option: you could use the multiline text area available in the BASIC interface to the Doors CS GUI API routines.


Thanks for your answer,
but something i need to mention is, i just started programming applications for the calculator and i have tried to use SourceCoder, and it didnt allow me to test my application, i dont know why.
So i moved on to TokenIDE but it seems like this IDE didnt work on my OS (win8.1), it started throwing exceptions when trying to access the workspace.

Code:
Zie het einde van dit bericht voor meer informatie over het aanroepen
van JIT-foutopsporing (Just In Time) in plaats van dit dialoogvenster.

************** Tekst van uitzondering **************
System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld.
   bij Merthsoft.TokenIDE.Tokens.GetProject(TreeNode node)
   bij Merthsoft.TokenIDE.Tokens.projectTree_DoubleClick(Object sender, EventArgs e)
   bij System.Windows.Forms.TreeView.WndProc(Message& m)
   bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladen assembly's **************
mscorlib
    Assembly-versie: 4.0.0.0
    Win32-versie: 4.0.30319.34003 built by: FX45W81RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
TokenIDE
    Assembly-versie: 0.11.0.0
    Win32-versie: 0.11.0.0
    CodeBase: file:///C:/Users/spenk/Desktop/TokenIDE/TokenIDE.exe
----------------------------------------
System.Windows.Forms
    Assembly-versie: 4.0.0.0
    Win32-versie: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly-versie: 4.0.0.0
    Win32-versie: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly-versie: 4.0.0.0
    Win32-versie: 4.0.30319.34003 built by: FX45W81RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Microsoft.CSharp
    Assembly-versie: 4.0.0.0
    Win32-versie: 4.0.30319.33440
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll
----------------------------------------
System.Core
    Assembly-versie: 4.0.0.0
    Win32-versie: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms.resources
    Assembly-versie: 4.0.0.0
    Win32-versie: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_nl_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
System.Dynamic
    Assembly-versie: 4.0.0.0
    Win32-versie: 4.0.30319.33440
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll
----------------------------------------
Microsoft.CSharp.resources
    Assembly-versie: 4.0.0.0
    Win32-versie: 4.0.30319.33440
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp.resources/v4.0_4.0.0.0_nl_b03f5f7f11d50a3a/Microsoft.CSharp.resources.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
    Assembly-versie: 0.0.0.0
    Win32-versie: 4.0.30319.34003 built by: FX45W81RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
Accessibility
    Assembly-versie: 4.0.0.0
    Win32-versie: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Xml
    Assembly-versie: 4.0.0.0
    Win32-versie: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Assembly-versie: 4.0.0.0
    Win32-versie: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly-versie: 1.0.0.0
    Win32-versie: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
mscorlib.resources
    Assembly-versie: 4.0.0.0
    Win32-versie: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_nl_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------

************** JIT-foutopsporing **************
Als u JIT-foutopsporing wilt inschakelen, moet in het configuratiebestand voor deze
toepassing of computer (machine.config) de waarde
jitDebugging in het gedeelte system.windows.forms zijn ingesteld.
De toepassing moet ook zijn gecompileerd terwijl foutopsporing
was ingeschakeld.

Bijvoorbeeld:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Wanneer JIT-foutopsporing is ingeschakeld, worden onverwerkte uitzonderingen
naar het JIT-foutopsporingsprogramma gestuurd dat op de computer is geregistreerd
en worden niet door dit dialoogvenster verwerkt.




so i had no other choice than using ti-coder.

anyways,
ill keep this in mind when programming other apps which will print some more text on the screen.

Thank you for your help!
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement