Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create a custom cursor using Carbon ?




On May 23, 2006, at 8:29 AM, Graeme Gill wrote:

Thanks, this seems a pretty reasonable approach. Unfortunately
the application is not arranged to service events once the window
has been painted with a test color. This doesn't cause
problems, because the windows class and attributes make
it have a fixed position, it is over any other window, and
doesn't need to be accessed by the user at all.
The process is waiting for the instrument to reply, or the
user to hit a key on stdin indicating an abort. I not sure
I want to add a separate thread to service window events to
track the cursor, although I may look into how complicated it would be.

Hmm, so it sounds like your app's main thread is just blocked waiting for some reply from hardware, and you're not processing user input events at all. In that case, my suggestion wouldn't apply. You can't use a separate thread for monitoring the events I suggested, since they wouldn't be sent to that event.



You mentioned in a previous message that when you clicked in the window, the cursor became visible again.

Sorry, I wasn't very specific. The cursor disappears as soon as my application starts (it having done a HideCursor()), so if I want to abort the application I have to select the terminal window it was started from, so I click the mouse button, and the cursor appears again.

It sounds like Terminal is becoming the active application when you click the mouse button. In that case, the cursor becomes under control of Terminal at that point, and your application no longer has any control over its visibility.


Does it matter very much whether the cursor becomes visible when you click in Terminal? If, during normal use, you won't be activating any other apps, then you probably don't care whether the cursor becomes visible anyways.

-eric

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden
References: 
 >How to create a custom cursor using Carbon ? (From: Graeme Gill <email@hidden>)
 >Re: How to create a custom cursor using Carbon ? (From: Eric Schlegel <email@hidden>)
 >Re: How to create a custom cursor using Carbon ? (From: Graeme Gill <email@hidden>)
 >Re: How to create a custom cursor using Carbon ? (From: Eric Schlegel <email@hidden>)
 >Re: How to create a custom cursor using Carbon ? (From: Graeme Gill <email@hidden>)
 >Re: How to create a custom cursor using Carbon ? (From: Eric Schlegel <email@hidden>)
 >Re: How to create a custom cursor using Carbon ? (From: Graeme Gill <email@hidden>)
 >Re: How to create a custom cursor using Carbon ? (From: Eric Schlegel <email@hidden>)
 >Re: How to create a custom cursor using Carbon ? (From: Graeme Gill <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.