Change Mouse Cursor

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
collectordave
Addict
Addict
Posts: 1310
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Change Mouse Cursor

Post by collectordave »

Just a request for a setmousecursor() procedure cross platform to display a waitcursor etc and change back to arrow.
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
User avatar
Shardik
Addict
Addict
Posts: 2058
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: Change Mouse Cursor

Post by Shardik »

A wait cursor for Mac OS X is problematic because Apple's Cocoa framework is designed to automatically display a wait cursor if events haven't been processed for more than 2 seconds. Please take a look into my citations in this posting where I nevertheless posted a cross-platform code example to toggle between the normal arrow cursor and a busy cursor (although it's against Apple's OS X Human Interface Guidelines... :wink:)
collectordave
Addict
Addict
Posts: 1310
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Change Mouse Cursor

Post by collectordave »

Thanks Shardik

I will handle it a different way then.

Cheers

CD
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
Post Reply