
-----------------------------------
The_Triangle
Thu Nov 24, 2005 5:52 am

Need help on mouse hand plz
-----------------------------------
anyone know how to make the mouse scroll over a button in a game, and for instance like in a game, the mouse turns into the hand bar while it is scrolled over a button? im tryin to make that work in my game, no such luck. I tried finding that hand picture of the mouse but no luck finding it either, i also tried snapshotting the screen  and the mouse hand didnt show up. 
Any one know how to do this ?

-----------------------------------
codemage
Thu Nov 24, 2005 1:05 pm


-----------------------------------
I think that Turing uses the windows cursor automatically.

You can perhaps use MouseWhere (or whatdotcolour) to check if the cursor is over a button and put another curser underneath the windows cursor when that happens?

-----------------------------------
The_Triangle
Thu Nov 24, 2005 4:07 pm


-----------------------------------
I think that Turing uses the windows cursor automatically.

You can perhaps use MouseWhere (or whatdotcolour) to check if the cursor is over a button and put another curser underneath the windows cursor when that happens?

but then the cursor wud still be there :S meh, i'll just color in the button when the mouse if over the button :D much easier

-----------------------------------
ZeroPaladn
Mon Nov 28, 2005 10:21 am


-----------------------------------
if your trying to make it so that a little hand pops up when you move your mouse over it, heres an idea...
View.Set ("nocursor") %so you cannot see cursor when mouse is on screen
if Mouse.Where = buttonlocation then
%draw mouse "hand"
else
%draw default cursor
end if


this is just an idea, and the code needs to be finetuned (as well as being able to find any coordinate of any button) and youll need either pictures of your default cursor and your mose "hand". hope this helps.

-----------------------------------
Albrecd
Mon Nov 28, 2005 11:22 am


-----------------------------------
View.Set ("nocursor") %so you cannot see cursor when mouse is on screen

Nocursor will not remove the mouse icon.  It will only remove the flashing cursor that appears when it waits for input.

-----------------------------------
do_pete
Mon Nov 28, 2005 11:25 am


-----------------------------------
"nocursor" doesn't make the mouse cursor disappear. It make the blinking box that appears when you get input disappear. Try running this and you'll see what I mean:
var a : string := ""
put "This is input with a cursor: " ..
get a
View.Set ("nocursor")
put "This is input whithout a cursor: " ..
get a


-----------------------------------
The_Triangle
Mon Nov 28, 2005 3:50 pm


-----------------------------------
"nocursor" doesn't make the mouse cursor disappear. It make the blinking box that appears when you get input disappear. Try running this and you'll see what I mean:
var a : string := ""
put "This is input with a cursor: " ..
get a
View.Set ("nocursor")
put "This is input whithout a cursor: " ..
get a


ahh.. it all makes sense now..

-----------------------------------
codemage
Tue Nov 29, 2005 10:46 am


-----------------------------------
The best you can do with replacing the cursor is make a picture that incorporates the existing arrow cursor.

-----------------------------------
Albrecd
Tue Nov 29, 2005 11:40 am


-----------------------------------
The best you can do with replacing the cursor is make a picture that incorporates the existing arrow cursor.

Unless there is some way to find all of the colour values of the mouse cursor and then draw a picture using the opposite colours... which I doubt.

-----------------------------------
codemage
Tue Nov 29, 2005 12:16 pm


-----------------------------------
No, 'cuz the mouse is on a layer that is always on top of the program window.  It'll draw on top of whatever you do with Turing.

-----------------------------------
do_pete
Thu Dec 01, 2005 1:05 pm


-----------------------------------
It will be possible to hide the mouse in future versions of Turing using Mouse.Hide which they have for some stupid reason included in the current version of Turing put haven't made it work

-----------------------------------
Dan
Thu Dec 01, 2005 1:17 pm


-----------------------------------
It will be possible to hide the mouse in future versions of Turing using Mouse.Hide which they have for some stupid reason included in the current version of Turing put haven't made it work

For some reasons i realy dougth there are going to be many more versons of turing if any. I have a fealing that it is a dieing langue.

-----------------------------------
iker
Thu Dec 01, 2005 4:18 pm


-----------------------------------
Actualy, I sent an email to one of the people at holtsoft asking where I could download the latest version, and I got a reply saying that they are coming out with 4.1.0 soon, and that will be on the website... Anyways, I sent that about 2 weeks ago, so be expecting a new turing version sometime soon...:D

-----------------------------------
Dan
Thu Dec 01, 2005 4:20 pm


-----------------------------------
Well let us know when u get your hands on a copy we whould love to post a review of it if it ever comes out.

-----------------------------------
[Gandalf]
Thu Dec 01, 2005 6:39 pm


-----------------------------------
Yes, one can never forget such a big loss...  Besides, who can say what 'soon' means...

-----------------------------------
codemage
Sat Dec 03, 2005 3:50 pm


-----------------------------------
The 4.0.5 stadalone update was the first version I used.  :)

If they're going to kill Turing at some point, it would be nice if they put out a "final version" with the rest of the promised features.  It's not a bad language for it's intended purpose - nobody in their right mind would use it commercially, but it's ok as an instructional language.
