Welcome, Guest. Please login or register.

Author Topic: os frendly cursor hiding  (Read 1142 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline kas1eTopic starter

os frendly cursor hiding
« on: February 03, 2005, 11:38:36 PM »
hi all. how i can hide/show mouse pointer by aos3.x functions (what fucntion exactly need it) ? and how i can setup from my C code new mouse pointer ? (it must be system frendly way).



 

Offline Daedalus

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 893
    • Show only replies by Daedalus
    • http://www.robthenerd.com
Re: os frendly cursor hiding
« Reply #1 on: February 03, 2005, 11:46:45 PM »
Hmmm... Would it not be an easier approach to attach your own mage to the mouse pointer and then control it with the OS functions for setting the mouse position? It's a while since I've done it, but there are functions for setting the pointer position. Failing that, attach a 1x1 bitmap in colour 0 to the pointer, and it will effectively be hidden for your application. No idea about writing your own code though, would involve using blitting functions and a buffer to replace the parts of the screen you draw on with your custom pointer...
Engineers do it with precision
--
http://www.robthenerd.com
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: os frendly cursor hiding
« Reply #2 on: February 04, 2005, 01:45:18 AM »
Lookup the documentation for intuition.library/ClearPointer() and intuition.library/SetPointer(). These functions allow you to change the pointer definition (and install your own) for a given Window.
int p; // A