Mouse Cursor
Cursor Styles
In originOS scripting, the cursor commands allow you to control the appearance and behavior of the cursor within the graphical user interface. The cursor can represent different states or styles, enhancing the user experience. Here are the available cursor commands:
Basic Cursor Styles
Default
Resets the cursor to its standard appearance.
An arrow
Pointer
Ideal for UI elements like buttons or links.
A hand pointing
Move
Useful when dragging elements within the interface.
A cross with the ends being arrows
Grab
Enhances the visual feedback during drag-and-drop interactions.
A hand about to grab something
Grabbing
Provides real-time feedback during dragging operations.
A grabbing hand
Text
Indicates the cursor is ready for text input.
A capital I with 2 lines at the top and bottom
Vertical-Text
Specifies the cursor style for vertical text entry.
Vertical version of Text
Wait
Provides feedback during loading or processing tasks.
An hourglass or spinning wheel
Progress
Conveys a sense of progress or loading.
A wait icon to the bottom right of the cursor
Extended Cursor Styles
Help
Suggests that additional information is accessible.
A question mark
Context Menu
Provides visual feedback for right-click or context menu interactions.
Shows a context menu is available
Zoom in
Used for interfaces where zooming in is a supported action.
A magnifying glass with a +
Zoom out
Used for interfaces where zooming out is a supported actio
A magnifying glass with a -
Crosshair
Provides a visual reference for precise actions.
A crosshair
Cell
Used in spreadsheet-like interfaces for cell selection.
Similar to a crosshair
Not Allowed
Provides a visual cue that a particular action is restricted.
A red circle wih a line through it
Copy
Used in interfaces where copying content is a supported action.
Shows it can copy
Alias
Provides visual feedback for alias-related interactions.
Shows its an alias
No Drop
Visualizes that dropping an object in the current location is prohibited.
A grabbing hand with a not allowed icon
All Scroll
Used in interfaces where vertical and horizontal scrolling is supported.
Similar to the move cursor
Resizing
Lock
Locks the cursor, preventing it from moving freely across the screen.
Use Case: Useful when you want to restrict cursor movement during specific UI interactions or gameplay elements.
Unlock
Unlocks the cursor, allowing it to move freely again.
Use Case: Used to release the cursor from a locked state.
Hide
Hides the cursor from view.
Use Case: Often used during specific UI interactions where the cursor's visibility is not required.
Now you have a comprehensive set of cursor commands to enhance the visual feedback and user interactions in your originOS applications. Choose the appropriate cursor styles and commands based on the specific context and requirements of your interface or game.
Last updated
Was this helpful?