Menu

#1013 Win32 -cursor doesn't handle fg/bg color

obsolete: 8.3.2
closed-fixed
5
2003-07-19
2001-05-01
No

Windows parsing of the -cursor option barfs if you specify a foreground and/or background color. For example:
. config -cursor {circle red black}
works fine on Unix platforms, but results in the error message
bad cursor spec "circle red black"
on Windows. It looks like TkGetCursorByName isn't breaking up the string parameter before trying to find the cursor.

Correct behavior would be to handle the cursor as it is in the Unix world.

An acceptable alternative would be to ignore the foreground and background colors under Windows. This means the same source will run on both Windows and Unix, and behave correctly on Unix.

I haven't checked this on Mac.

Discussion

  • Jeffrey Hobbs

    Jeffrey Hobbs - 2001-06-04
    • labels: 318714 --> 31. Cursor Names
     
  • Pat Thoyts

    Pat Thoyts - 2003-07-18
    • assigned_to: nobody --> patthoyts
    • status: open --> closed-fixed
     
  • Pat Thoyts

    Pat Thoyts - 2003-07-18

    Logged In: YES
    user_id=202636

    Set the windows behaviour to accept and ignore the
    additional items in the list. I believe the Mac code behaves
    the same way (although I can't test this.)

     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2003-07-19
    • status: closed-fixed --> closed-remind
     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2003-07-19

    Logged In: YES
    user_id=72656

    Any reason not to commit this to 8-4-branch as well?

     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2003-07-19

    Logged In: YES
    user_id=72656

    backported for 8.4.4.

     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2003-07-19
    • status: closed-remind --> closed-fixed
     
MongoDB Logo MongoDB