ID:271766
 
How do i change the mouse pointer but only for the pointer that shows after crossing over a text window?
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)
if(control=="controlID")//ID of the output control
//change the pointer here through the client mousepointer vars

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
MouseEntered(object,location,control,params)
if(control=="output1")
mouse_over_pointer = MOUSE_ACTIVE_POINTER
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
MouseEntered(object,location,control,params)
if(control=="output1")
mouse_over_pointer = 'Mouse.dmi'
Page: 1 2