This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's TI-BASIC subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. TI-Basic => TI-BASIC
United-TI Archives -> TI-Basic
 
    » Goto page Previous  1, 2, 3
» View previous topic :: View next topic  
Author Message
calcdude84se


Member


Joined: 09 Aug 2009
Posts: 207

Posted: 12 Nov 2009 04:42:01 pm    Post subject:

The cursor is a point? Are you sure it won't be larger?
Also, you need to check if the user is attempting to move the cursor outside of the window.

(Sorry if this is just example code and not actual source. You didn't differentiate.)
Back to top
Eeems


Advanced Member


Joined: 25 Jan 2009
Posts: 277

Posted: 12 Nov 2009 05:23:25 pm    Post subject:

Quick optimization note, don't put the ending brackets on your boolians.
Eg: 9(K=25)->J
to: 9(K=25->J

didn't I have a posted mouse routine thing? You can look at that and modify it to be completely basic (I'm using Celtic III)


Last edited by Guest on 12 Nov 2009 05:25:52 pm; edited 1 time in total
Back to top
kinkoa


Member


Joined: 28 Jul 2009
Posts: 103

Posted: 12 Nov 2009 08:26:38 pm    Post subject:

Yeah its just example code and its three pixels i may convert this to celtic three
Back to top
Eeems


Advanced Member


Joined: 25 Jan 2009
Posts: 277

Posted: 12 Nov 2009 08:34:01 pm    Post subject:

if you want you can just use my mouse routine here and I think the object routine is there too, if not I'll put together a package for you.

actually here is the code for the object routine

Code:
PRGM::CLICK
:DelVar B            //clear the flag...not really needed
:1→A           //setup the list pointer
:Repeat B or A≥dim(L3          //until A is too big (which could cause problems) or if the flag is set
:L3(A)<X and L3(A+1)>X and L3(A+2)<Y and Y<L3(A+3→B            //set flag if x,y is inside the object
:A+4→A         //increment the pointer
:End


Last edited by Guest on 12 Nov 2009 08:37:50 pm; edited 1 time in total
Back to top
kinkoa


Member


Joined: 28 Jul 2009
Posts: 103

Posted: 12 Nov 2009 09:15:14 pm    Post subject:

This looks nice but i dont have a ti mouse just the keypad so thats what i was going to do and if i did use this could i change the A and B because thats what i use to move the cursor
Back to top
Eeems


Advanced Member


Joined: 25 Jan 2009
Posts: 277

Posted: 12 Nov 2009 11:54:20 pm    Post subject:

Well mine was for the keypad, not for a ti mouse....
Back to top
kinkoa


Member


Joined: 28 Jul 2009
Posts: 103

Posted: 13 Nov 2009 09:13:53 am    Post subject:

oh i didnt realize that but i am going to use 0 and enter as the mouse keys
Back to top
Eeems


Advanced Member


Joined: 25 Jan 2009
Posts: 277

Posted: 13 Nov 2009 09:56:27 am    Post subject:

That's an easy fix, all you have to do is change the keycodes in it.
Back to top
kinkoa


Member


Joined: 28 Jul 2009
Posts: 103

Posted: 14 Nov 2009 06:37:33 am    Post subject:

Ok then it will work for me thanks
Back to top
Eeems


Advanced Member


Joined: 25 Jan 2009
Posts: 277

Posted: 14 Nov 2009 11:21:45 am    Post subject:

Np
oh yeah just to let you know that other code I posted was for when you click it will go through L3 and see if you clicked on an object.
Back to top
kinkoa


Member


Joined: 28 Jul 2009
Posts: 103

Posted: 14 Nov 2009 11:13:05 pm    Post subject:

ok ill will try and use it if i need help with it i will let you know
Back to top
kinkoa


Member


Joined: 28 Jul 2009
Posts: 103

Posted: 23 Nov 2009 10:36:44 am    Post subject:

i am still working on the general program shell but here is a list of the programs that will be used

CW1INSTL //this is the installer program that makes the screens and stores them as a GDB
CWINDOWS //this is the loader and title program
ZWINHOME //this is the desktop and start menu program that recalls GDB 1 and GDB 2
ZWINNOTE //this is the text editor that uses Str5
ZWINPONG //this is pong for it
ZWINBRBR //this is brick breaker
ZWINEXPL //this is the explorer program that lets you navigate about the C drive
ZWINCDRI //this is the C drive program
WINREAD //this is the readme program
Back to top
Display posts from previous:   
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
    » Goto page Previous  1, 2, 3
» View previous topic :: View next topic  
Page 3 of 3 » All times are UTC - 5 Hours

 

Advertisement