Changing Cursor Color

can i change the cursor color beside changing its type ??

I thought Toolkit.createCustomCursor was used for this sort of thing.
You don't seem to be able to capture the Image representing a system cursor, however, so can't base a custom cursor on changing the colour of a system one.
You could probably get around this by using a custom cursor for your entire application (or at least the part that requires its colour to change) and use colourised versions of that as appropriate.
Hope this helps.

Similar Messages

  • Customizing Cursor Color and/or appearance:  Does anyone know if you can change cursor color?

    Customizing Cursor Color and/or appearance:  Does anyone know if you can change cursor color in Mountain Lion? Any software for customizing and saving different cursors for Mountain Lion? Already have cursor size changed, but would like more options. Are more cursor customization options coming in future Mac OS X versions?

    There may be some haxies/3rd party s/w that can do this, but I've not heard of them.
    Customisation is limited on macs, unless you start hacking deep into the coreservices of the system - dodgy at best and almost certainly to get reset on the next update from Apple central
    Think different? Nooo....that was just a slogan.

  • Zsh change cursor color to indicate vi mode

    Hello, I have written this for the .zshrc to change the cursor color to red when in cmd mode on the zsh command line.
    zle-keymap-select () {
    if [ $KEYMAP = vicmd ]; then
    echo -ne "\033]12;Red\007"
    else
    echo -ne "\033]12;Grey\007"
    fi
    zle -N zle-keymap-select
    zle-line-init () {
    zle -K viins
    echo -ne "\033]12;Grey\007"
    zle -N zle-line-init
    bindkey -v
    It works well in urxvt however my tty does not know what to do with the escape codes so It just prints them to the command line. Is there any command for changing the cursor color that is for urxvt only? I think this would fix the problem.
    Thanks,
    Andreas

    Cool! The extra $TERM conditional works. Thank you.
    With xterm the color changing does not work as well, the cursor color only changes back to insert-mode-color once text is being typed.
    This is working for me. I may simplify it later.
    zle-keymap-select () {
    if [ $TERM = "rxvt-256color" ]; then
    if [ $KEYMAP = vicmd ]; then
    echo -ne "\033]12;Red\007"
    else
    echo -ne "\033]12;Grey\007"
    fi
    fi
    zle -N zle-keymap-select
    zle-line-init () {
    zle -K viins
    if [ $TERM = "rxvt-256color" ]; then
    echo -ne "\033]12;Grey\007"
    fi
    zle -N zle-line-init
    bindkey -v
    There are many colorname choices in /usr/share/X11/rgb,txt
    You can also add colors. Or just use rgb values directly, apparently. More about the color stuff here.
    EDIT: You can just use the hex as you defined it in your .Xdefaults:
    echo -ne "\033]12;#83C048\007"
    Last edited by AndreasBWagner (2010-05-01 02:48:28)

  • Change cursor color

    Hello,
         I've got a simple coloring book that I'm developing. I've got most everything working but I'm having trouble getting the cursor to pick up the active color from a color array.
    The cursor is a movieclip called "mycursor_mc" There is a movie clip inside this called "CursorFill". I am trying to get the "CursorFill" movie clip to change to the currentColour value from the dynamic property array index.
    This is the section I was working on but it's not working:
    var mycursor_mc:cursor = new cursor();
    addChild(mycursor_mc);
    var m = new CursorFill();
         mycursor_mc.addChild(m);
    Here's the whole Action script:
    //Array to hold the colours
    var colorArray:Array=new Array(0xE97DB1,0xF58240,0xF9ED41,0x82C34D,0x00B0F0,0x935CA4,0xFFFFFF);
    //A new instance of the colour transform class.
    var colorTrans:ColorTransform=new ColorTransform;
    var currentColor:int=0;
    //This adds the ovals on the stage with the corresponding colour from the array
    //and with the mouse click event.
    for (var i:int = 0; i < colorArray.length; i++) {
         var marker:Sprite = new Sprite();
         marker.y=500+i*50;
         var c = new MarkerFill();
         c.buttonMode=true;
         marker.addChild(c);
         colorTrans.color=colorArray[i];
         c.transform.colorTransform=colorTrans;
         c.addEventListener(MouseEvent.CLICK, ovalsClick);
         c.arrayIndex=i;
         var o:Outline = new Outline();
         marker.addChild(o);
         addChild(marker);
    //This creates a new instance of the cursor movie clip and adds it onto
    //the stage using the addChild method.
    var mycursor_mc:cursor = new cursor();
    addChild(mycursor_mc);
    var m = new CursorFill();
         mycursor_mc.addChild(m);
    //Hides the default cursor on the stage so it will not be shown.
    Mouse.hide();
    //Adds an event listener onto the stage with the enter frame event which
    //repeatedly executes the moveCursor function.
    stage.addEventListener(Event.ENTER_FRAME, moveCursor);
    //This function set the x & y positions of the custom cursor to the x & y positions
    //of the default cursor.
    function moveCursor(event:Event) {
      mycursor_mc.x=mouseX;
      mycursor_mc.y=mouseY;
    //This sets the currentColour value from the dynamic property array index.
    function ovalsClick(e:MouseEvent):void {
         currentColor=e.currentTarget.arrayIndex;
    //Adds the mouse click event to the holder.
    holder.addEventListener(MouseEvent.CLICK, holderHandler);
    //This function changes the colour of the movie clip inside
    //holder when it is clicked.
    function holderHandler (e:MouseEvent):void {
       for (var i:int = 0; i < holder.numChildren; i++) {
           if (holder.getChildAt(i).hitTestPoint(mouseX,mouseY,true)) {
               colorTrans.color=colorArray[currentColor];
               holder.getChildAt(i).transform.colorTransform=colorTrans;

    That's strange. Try tracing few things to make sure everything works as it should:
    function ovalsClick(e:MouseEvent):void {
         currentColor = e.currentTarget.arrayIndex;
         trace(e.currentTarget, currentColor, colorArray[currentColor]);
         var trans:ColorTransform = new ColorTransform();
         trans.color = colorArray[currentColor];
         m.transform.colorTransform = trans;

  • Change cursor color in Illustrator CS5

    My cursor has decided to display in an impossibly light blue. I want my black cursor back. What do I do?
    Thanks,
    Dave

    Just use the key combo I gave above. It will reset the Preferences to the default which should mean a black cursor.

  • Changing cursor color?  magnifying glass?

    Anyone recommend a 3rd party set of cursors to use in Logic?
    I'd love to have a bright red cursor that I could easily see.
    Also, I'd love a magnifying glass tool. Some of Logic's text is just too small to see at the resolution where I'm basically happy with 95% of it.

    Not sure if any of these will work with the Intel Macs, but you can ask the developer to see if they do:
    http://www.unsanity.com/haxies/mightymouse/
    http://www.boinx.com/mousepose/
    http://www.joar.com/cursorzoom/
    http://www.artissoftware.com/screentools/loupe.html
    http://www.subrosasoft.com/OSXSoftware/index.php?mainpage=product_info&cPath=5&productsid=15
    http://www.katsurashareware.com/ both RealZoom and RealZoom Quartz.
    You can find many other Mac software titles on my FAQ http://www.macmaps.com/macosxnative.html
    's listing of Mac OS X software search engines and the section under Intel for Intel Universal and known Rosetta compatible software.
    Be aware system hacks like these can often break when the operating system updates, so check for updates of any such hack before upgrading your operating system.

  • Changing the Cursor Color

    Is anyone aware of a way to change the color of the cursor from black to a lighter color? White or a light gray would be ideal.
    I am working with a document that has a dark background that even shifts to black in certain areas. The problem is that I can hardly ever see the cursor so I often loose my place while jumping around doing edits.
    I know that hiding the background would let me see the cursor however since I am using a light font hiding the background would require that I switch my styles back to dark colors and then back again and that would be a pain.
    Rob

    I'm sure there are a number of third-party system utilities or haxies that can do this. I suggest a search on MacUpdate or VersionTracker, perhaps looking for "cursor" to start.

  • Changing textfield cursor color in Forms

    Hi All,
    We are using Oracle App Server 9iAS and 9iDS. I need to change the color of my cursor for the text field/or change the cursor to a block cursor in forms application. Does any one know how that can be done ?.
    TIA
    Saurabh

    Saurabh,
    changing the color of a cursor is more difficult than changing its shape. You can use a PJC to change the cursor shape to one of the standard shapes. If you need a custom cursor then you still can used a PJC, but designing your own cursors in Java is not trivial.
    See:
    http://www.oracle.com/technology/sample_code/products/forms/demo/9i/javabeans_pjc_samples/mod_cursor/viewlet/pjc_modcursor_viewlet.html
    which is available in the Forms 9i demos at
    http://www.oracle.com/technology/sample_code/products/forms/index.html
    Frank

  • UITextView: changing the color of the cursor

    Hi all!
    Is it possible to change the color of the cursor in the UITextView?
    Thank you,
    Luca

    I've found out that in this way it works:
    [[myUITextField  valueForKey:@"textInputTraits"] setValue:[UIColor redColor] forKey:@"insertionPointColor"];
    but I cannot understand whether it is allowed by Apple and if an app using it could be rejected.
    Any idea?
    Thanks,
    Luca

  • Cursor color change according to background

    The default cursor is Black, and black tool-tips (such as slashes, carats, circles, eyedrop, etc...).  However, I have trouble tracking down a certain line segment or end-point when I can't see the black slash on the thick black border.   All I can do is change the item to white, make my selection, make the connection, then change it back to black.  Very time consuming and interrupts the creative flow.
    Is there a plug-in or setting so that the cursor color changes from black to white according to the darkness/lightness of the background?    Or am I simply SOL?

    Nope, that stuff is hard-coded. If you have difficulty in detecting thin elements, I suggest you use the colored paper simulation in the doc settings/ prefs and assign som contrasty color temporarily If you e.g. work with black and white, obviously something like a dirty lime green or greenish grey will work perfectly rfor both colors...
    Mylenium

  • How do I change the Color of the Cursor?

    Hi!
    I have changed the background color of a JTextField. Unfortunately the background color of the textfield is almost identical with the color of the cursor, so the cursor cannot be seen when the mouse pointer points into the textfield.
    Is there a way to change the color of the cursor and can this be done using the UIManager?
    Thanks,
    Alex

    I think you need to create a custom cursor from an image like .gif or .jpg.
    Look in to the javadoc of java.awt.Toolkit class for creating a custom cusrosor.
    toolkit.createCustomCusror(...)
    After creating the cursor, set the cursor on the desired components using component.setCursor(myCursor).
    Hope this helps
    Sai Pullabhotla

  • How can i change the color of the graph in agreement of the program's condition

    Hi,
    I am using labview 5.1 in my graduation's project final. (sorry by my english, but i am ina hurry)
    How can i change the color of the graph in agreement of the program's condition?
    I am developing a VI to control the temperature of termistors,but i have another sensor too.
    In a graph i have the situation of the termistors,but i want to change the color of the graph when the sensor is active.
    Thanks a lot
    Rafael Wajnsztajn - Brasil

    To change the color of the line itself, you can use the attribute Plot>>Plot Color.
    To change the color of the points, you can use the attribute Cursor>>Cursor Color.
    To select the color, you should have a color box constant inside the Numeric>>Additional Numeric Constants palette.
    This is all in LV 7.0. I'm not sure how it similar it is in 5.1.
    One important thing is to place the attribute node inside a case structure which will execute only when your condition has been filled.
    If this didn't help you, I suggest you post the relevant piece of code, or at least an image of it (no BMPs, please).
    Try to take over the world!

  • How do I change the color of the triangle in a menu bar?

    Hi,
    I have a question that might seem very rudimentary...How can I change the color of the little downward-pointing triangle on my menu bar items that have sub-menus? Specifically, I want those triangles to be invisible when the cursor is not over the menu bar. Right now it is black and changes to white. I'm running Dreamweaver CS5 on a Mac if that makes any difference. Is there a CSS rule for this somewhere that I am not seeing?
    Many thanks for any help!
    -AG

    Those are images, so you will need to change the image.

  • How can I change the color of a link?

    My links are black and when I change the color of a link to blue from the properties and save, I see that it's still black but when I move the mouse cursor over the link, it's blue. What should I do to change it to blue even when the mouse cursor is not over it?
    Thanks in advance.

    Which state do you want the color to change?
    a:link {
         color: /* insert color */
    a:visited {
         color: /* insert color */
    a:hover {
         color: /* insert color */

  • How to change the color of text to an swf file

    Hello:
    In a menu of four options (each option is only text) I would
    like to change
    the color of the text that is clicked., the menu is a group.
    Can you hep me
    please?
    thank you

    Anne wrote:
    > Hello:
    > In a menu of four options (each option is only text) I
    would like to change
    > the color of the text that is clicked., the menu is a
    group. Can you hep me
    > please?
    > thank you
    >
    >
    Assuming each option is an individual text member in its own
    sprite...
    on mouseEnter me
    cursor 280
    sprite(the currentSpriteNum).color = rgb(255,0,0)
    end
    on mouseLeave me
    cursor -1
    sprite(the currentSpriteNum).color = rgb(0,0,102)
    end
    on mouseDown me
    sprite(the currentSpriteNum).color = rgb(0,0,0)
    end
    on mouseUp me
    cursor -1
    sprite(the currentSpriteNum).color = rgb(0,0,102)
    go to frame "StartMovie" of movie "Chapter1" -- or whatever
    you want
    to do here
    end

Maybe you are looking for

  • There is a pattern to my crashes, but I can't figure out what it is...

    At my studio, we are running 2 separate rigs with Logic 8.0.2 on 10.5.6 Mac Pros, and we have been plagued by crashing/hanging when opening up sequences. It is maddeningly inconsistent, however, and I can't figure out a pattern to the crashes (occasi

  • OIM 9.1.0.2 Upgrade issue/ Loading metadata into the database

    I am getting the following error when I try to execute LoadXML_XACM.bat jdbc:oracle:[email protected]:1521:orcl oimuser oimuser Unable to load XML in REP where REP_CODE = UserProfileHistory java.sql.SQLException: invalid Oracle URL specified My tnsna

  • Error while "Project Code Generation" in Entity service

    Hi SDN's, I have created an entity service which is the help documentaion of NWDS. After completion of all steps while generating project code i am getting an error called "AbstractStringBuffer not reachable" Can any body help me in solving this issu

  • Cant Connect with facetime

    me and my friend wanted to have a facetime chat together so i called him, he answered and on his side it said connecting... but on my side it said facetime... we waited for a few minutes and lost connection. He then tried to call me and i didn't even

  • ABAP to READ No. of COLUMNS

    Hi, I need abap code to READ NO OF COLUMNS NOT ROWS in a INTERNAL TABLE DYNAMIC created during runtime ? any codes available or help ? Regards