Difference between revisions of "cursor.set"

From Inspired-Lua Wiki
Jump to navigation Jump to search
Line 15: Line 15:
 
|-
 
|-
 
| <u><center>cursorName</center></u> || string || The name of the cursor shape to use for the mouse pointer. It can be one of the following strings :
 
| <u><center>cursorName</center></u> || string || The name of the cursor shape to use for the mouse pointer. It can be one of the following strings :
"default",
+
"animate", "arrow", "clear", "crosshair", "default", "diag resize", "dilation", "dotted arrow", "drag grab", "excel plus", "hand closed", "hand open", "hand pointer", "hide", "hollow pointer", "interrogation", "link select", "mod label", "pencil", "pointer", "resize column", "resize row", "rotation", "show" "text", "translation", "unavailable", "wait busy", "writing", "zoom box", "zoom in", "zoom out"
"interrogation",
 
"crosshair",
 
"text",
 
"pointer",
 
"link select",
 
"diag resize",
 
"wait busy",
 
"hollow pointer",
 
"rotation",
 
"pencil",
 
"zoom box",
 
"hide",
 
"arrow",
 
"zoom out",
 
"dotted arrow",
 
"clear",
 
"animate",
 
"excel plus",
 
"mod label",
 
"writing",
 
"unavailable",
 
"resize row",
 
"resize column",
 
"drag grab",
 
"hand open",
 
"hand closed",
 
"hand pointer",
 
"zoom in",
 
"dilation",
 
"translation",
 
"show"
 
 
|-
 
|-
 
|}
 
|}

Revision as of 11:25, 11 June 2011

cursor.set is a function that is part of the cursor functions.

It sets the shape of the mouse pointer to display.

This has been introduced in TI-Nspire OS 3.0 (Changes).


Syntax

cursor.set(cursorName)

Parameter Type Description
cursorName
string The name of the cursor shape to use for the mouse pointer. It can be one of the following strings :

"animate", "arrow", "clear", "crosshair", "default", "diag resize", "dilation", "dotted arrow", "drag grab", "excel plus", "hand closed", "hand open", "hand pointer", "hide", "hollow pointer", "interrogation", "link select", "mod label", "pencil", "pointer", "resize column", "resize row", "rotation", "show" "text", "translation", "unavailable", "wait busy", "writing", "zoom box", "zoom in", "zoom out"

Example

if (needsCursor == true) then
   cursor.set("pencil")
end

See also