Question: I was experimenting with some BASIC commands, including a simple GUI mouse (specifically sum(6,startX,startY) ) and soon after that, the program started to freak out and giving me sintax errors on random pieces of code like "end" and so on. What happened? I guess the question I should ask first, is what the heck is a GUI and how does it work?

I learned about the command here.
GUI is Graphical User Interface. You use GUI's everyday from your computer to your phone. An example of a non-GUI interface would be a command line system, such as Command Prompt/Terminal.

I won't get into how they work, leave that for the big guys here Razz

Also, were you running your program from the TIOS Home Screen or from within DCS7?
I believe DCS 7.1...
Good to know; it does appear you were using the routine correctly. And what calculator were you using?

Also, do you need any other clarification about GUI's?
TI-84+

comicIDIOT wrote:
do you need any other clarification about GUI's?

Pretty much everything...
What the heck is the "Push GUI Stack and all that...
http://dcs.cemetech.net/index.php?title=DCSB_Libs
I strongly recommend you take a look at the PDF that comes with the Doors CS SDK, or at least glance through this:

http://dcs.cemetech.net/index.php?title=GUI_API
It would also be helpful if you posted your code using SourceCoder.
I deleted it in case it crashed my calculator. I'm treading on uncharted ground, you know and I needed it for exams, Sorry. Smile

basically, the code went

Code:

:sum(6,20,20)
:sum(13,8,8,"Test","F8888888F8","Pictest+Quit","PTQU")
:lbl PT
/some code
:lbl QU
:Stop


The program pretty much gave a syntax error for every line after a label.
souvik1997 wrote:
It would also be helpful if you posted your code using SourceCoder.
Or Tokens!
Can't use tokens, I have a mac. Cool
Yes you can. Install Mono.
I don't want to. It takes up memory and I hate it when my computer runs low on memory.

And I'm too lazy. Very Happy
If Mono is causing your computer to run low on memory, you need a new computer.
Unused memory is wasted memory.
Anyway...
What the heck is the "Push GUI Stack" and all that...
Basically, where can I find a good tutorial on GUI stuff?
There aren't any tutorials, but you can look at the programs submitted for Cemetech Contest #7.
http://www.cemetech.net/news.php?year=2010&month=9&id=416
http://www.cemetech.net/news.php?year=2010&month=9&id=417
And, of course, check other people's help topics that pertain to the GUI Stack.
Let me repeat myself from before:

KermMartian wrote:
I strongly recommend you take a look at the PDF that comes with the Doors CS SDK, or at least glance through this:

http://dcs.cemetech.net/index.php?title=GUI_API
bspymaster wrote:
I deleted it in case it crashed my calculator. I'm treading on uncharted ground, you know and I needed it for exams, Sorry. Smile

basically, the code went

Code:

:sum(6,20,20)
:sum(13,8,8,"Test","F8888888F8","Pictest+Quit","PTQU")
:lbl PT
/some code
:lbl QU
:Stop


The program pretty much gave a syntax error for every line after a label.

sum(6 is the mouse, right? It says, that you need GUI elements before the mouse, at least a frame/big window/small window.
sum(6 is the SimpleGUIMouse, which you can use without any GUI elements on the stack. Smile The non-simple GUIMouse, sum(12, requires the normal DCS GUI Stack stuff such as a container and other elements before the mouse is called.
KermMartian wrote:
The non-simple GUIMouse, sum(12, requires the normal DCS GUI Stack stuff such as a container and other elements before the mouse is called.


Which is why I started with the simple one, since I don't understand what I need to do for the complex.
  
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 4
» 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