1
2
ID:271766
Oct 18 2007, 2:36 pm
|
|
How do i change the mouse pointer but only for the pointer that shows after crossing over a text window?
|
Oct 18 2007, 2:39 pm
|
|
Look up MouseEntered(), mousedragpointer(this var only applies to atoms) and the other mouse procs.
|
In response to Kakashi24142
|
|
i did, i cant figure out the thing, it doesnt give me an example.
|
In response to Super Silly Stuart
|
|
Exactly what do you mean by a text window? Are you talking about an output control?
|
In response to Kakashi24142
|
|
an output window.
|
In response to Super Silly Stuart
|
|
client/MouseEntered(object,location,control,params) You could also experiment with this and output the parameters/arguments to yourself so you know what the parameter values are and what to check for. |
In response to Kakashi24142
|
|
after client/mouseEntered() the things in () i get confused, do i need to change things there, leave it alone, or can i remove some of them and it work still?
|
In response to Super Silly Stuart
|
|
also how do i change it to a dmi icon
mouse.icon = 'icon.dmi' or what? |
In response to Super Silly Stuart
|
|
The things in the parenthesis are called arguments or parameters. And no you don't have to set the values, the values are automatically retrieved whenever the MouseEntered() proc is called and that's whenever the mouse enters a new control or section of the screen.
|
In response to Super Silly Stuart
|
|
In response to Kakashi24142
|
|
so setting the actual mouse pointer to a .dmi file?
|
In response to Super Silly Stuart
|
|
yep.
|
In response to Kakashi24142
|
|
i dont get it, i use
mouse_over_pointer = MOUSE_ACTIVE_POINTER and it errors. |
In response to Super Silly Stuart
|
|
.dm:16:error:mouse_over_pointer:undefined var
|
In response to Super Silly Stuart
|
|
hmm mouse_over_pointer is an atom variable so it won't work for clients are the source.
|
In response to Kakashi24142
|
|
so, how would i do this?
|
In response to Super Silly Stuart
|
|
show me a snippet of how you are using it(show me the whole entire proc)
|
In response to Kakashi24142
|
|
client |
In response to Super Silly Stuart
|
|
yup just as I though, the source of the var in this situation is the client which doesn't have a var of such type. So you can't use mouse_over_pointer in this situation. Change the mouse_pointer_icon to an icon file.
|
In response to Kakashi24142
|
|
.dm:16:error:mouse_over_pointer:undefined var.
client |
1
2