add watch cursor to osx_cocoa

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2011-02-28 13:44:25 +00:00
parent b895498c75
commit 4c00ce28bd
3 changed files with 15 additions and 3 deletions

View File

@@ -386,7 +386,8 @@ const short kwxCursorSize = 11;
const short kwxCursorSizeNESW = 12;
const short kwxCursorSizeNWSE = 13;
const short kwxCursorRoller = 14;
const short kwxCursorLast = kwxCursorRoller;
const short kwxCursorWatch = 15;
const short kwxCursorLast = kwxCursorWatch;
// exposing our fallback cursor map

View File

@@ -196,6 +196,14 @@ ClassicCursor gMacCursors[kwxCursorLast+1] =
{0x000A, 0x0006}
},
{
{0x07E0, 0x07E0, 0x07E0, 0x07E0, 0x0810, 0x1088, 0x1088, 0x1088,
0x1388, 0x1008, 0x1008, 0x0810, 0x07E0, 0x07E0, 0x07E0, 0x07E0},
{0x07E0, 0x07E0, 0x07E0, 0x07E0, 0x0FF0, 0x1FF8, 0x1FF8, 0x1FF8,
0x1FF8, 0x1FF8, 0x1FF8, 0x0FF0, 0x07E0, 0x07E0, 0x07E0, 0x07E0},
{0x0008, 0x0008}
},
};
#endif

View File

@@ -516,8 +516,11 @@ WX_NSCursor wxMacCocoaCreateStockCursor( int cursor_type )
case wxCURSOR_WATCH:
case wxCURSOR_WAIT:
// should be displayed by the system when things are running
cursor = [[NSCursor arrowCursor] retain];
// an arrow should be displayed by the system when things are running
// according to the HIG
// cursor = [[NSCursor arrowCursor] retain];
// but for crossplatform compatibility we display a watch cursor
cursor = wxGetStockCursor(kwxCursorWatch);
break;
case wxCURSOR_IBEAM: