Change busy cursor

Hi guys,
   I am trying to change app's busy cursor, but haven't been successful yet.  I have create a .swf file that work fine.  Next I tired the following code in my application init fuction
                var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("CursorManager");
if (!style) {
style = new CSSStyleDeclaration();
style.setStyle( "busyCursor", myBusyCursor );
StyleManager.setStyleDeclaration("CursorManager", style, false);
but this does not do anything.  I am using showbusycursor="true" on all my RPC calls, and some depending on the query could take a sec longer.  I just want to override the animated clock with my .swf through out the app.
Any pointer?  I have spend about a day and half but no luck.  I understand that CursorManager.setBusyCursor() will actually show the cursor, which is not what I want since I don't make a call to show busy cursor explicitly
Thank you
Jay

Hi,
Just override the default cursor after you call your process, then on complete clear the cursor.
The following example will set the cursor to a custom cursor, note that by setting the custom cursor the busy cursor will be over riden (in this particular case even if you try to set the busy cursor after the custom cursor).
David
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.managers.CursorManager;
[Embed(source="sizeAll.gif")] public static var myCursor:Class;
private function modifyCursor(): void
//call a process here
this.cursorManager.setCursor(myCursor, 2, -10, -10);
]]>
</fx:Script>
<s:Button x="72" y="49" label="Mod Cursor" click="modifyCursor()"/>
<s:Button x="72" y="89" label="Show Busy" click="this.cursorManager.setBusyCursor()"/>
<s:Button x="72" y="129" label="Remove Cursor" click="this.cursorManager.removeAllCursors()"/>
</s:Application>

Similar Messages

  • Busy cursor on Web

    We are currently moving our application to the Web and find that the Busy cursor style remains an arrow - how can we change this?

    Flex har
    UI:
    This was not AIR, it is Flex 3.
    The WMODE is normal.
    However I have solved my problem.
    Originally I wanted to completely replace any active cursor with the busy cursor. The problem (to review) was that the orignal cursor would not go away, and would appear on top of the busy cursor, and then when moving the mouse, the busy cursor would trail after the original cursor, and the two cursors would kind of join up again. So it was really annoying.
    I did find the following which sort of solved the problem:
    Mouse.hide;
    this.mouseChildren=false;
    CursorManager.setBusyCursor();
    With the above, the original cursor would go away and stay gone, *once the mouse was moved*, leaving only the busy cursor. Why it was necessary to move the mouse, I have no idea. So this as well did not completely solve the problem (but came much closer).
    Here was my final solution:
    First of all, I had not noticed previously that the standard busy cursor in the browser keeps the original pointer, and just offsets an hourglass to the right of that pointer by a fixed distance.  Don't know why I had not notice that before.  So all I had to do was
    csr_busy = CursorManager.setCursor( StyleManager.getStyleDeclaration("CursorManager").getStyle("busyCursor"),1,20,0);
    at one place, and then to remove it later,
    CursorManager.removeCursor(csr_busy);
    That's it.  the '20' parameter just keeps the busy cursor (an animated clock) 20 pixels to the right of the original cursor (whatever it happens to be at the time - a pointer, a hand, etc.), which from my experience is impossible to completely remove anyway, so I don't try.  But it looks good as I have it now, and contrary to what I originally thought is consistent with the Browser's own busy cursor.

  • Change mouse cursor to pointer

    Hello!
    I have an Image control that I use to perform an action on
    click.
    How can I make the mouse cursor change to pointer on
    mouseOver and back to default on mouseOut, please?
    Thank you!

    Assuming you're talking about the hand-pointer cursor, you
    need to set three properties (useHandCursor, mouseChildren and
    buttonMode), as the attached example shows.
    If you want to use a cursor besides the default pointer,
    hand-pointer or busy cursor, then you need to dig further into
    using the CursorManager. It's a little bit of extra work but it's
    not too bad;
    null
    see
    the LiveDocs entry on setting and removing cursors
    Hope that answers your question.
    - Chris

  • [Solved] No busy cursor shows

    dwm + arch very good but no busy cursor shows during application launch waiting time. Googling all day no solution.
    Last edited by duyinthee (Yesterday 05:13:10)

    Trilby wrote:I doubt that is what they do.  I suspect the DE also couldn't change the cursor if the heavy app was launched from the command line.  But if it is launched from a .desktop file (which it often would be in a DE) then the DE can listen for an event of when what program's main window is displayed.
    Ah, that makes more sense - and would allow not having to poll the CPU usage (and I guess there aren't many people launching things from a command line in a DE).
    ... been too long since I've used a DE.
    EDIT
    So if you were to patch dwm, you'd need to add data structures for keeping track of processes that are forked from dwm, and associate each appearing window to the corresponding process in order to determine whether to show a "busy" cursor or a normal one.
    May I say that this goes pretty much against the pricincple of dwm of keeping out superfluous features?
    ... but then again, "superfluous" is subjective, and dwm is made for people patching it to fit their needs, and while having a "busy cursor" in dwm may not seem useful for the big part of dwm users, you are free to patch it whatever way you like, and that's the beauty of a hackable WM
    Last edited by ayekat (2015-06-21 14:51:07)

  • Busy Cursor in SchedulingGantt

    Hi.
    I have a SchedulingGantt and I want to show a busy cursor when the user changes a task (or any DataChangeEvent). Any idea how I can do that?
    When the user moves a task it will pop back to where it was, the model has to be refreshed on the server and then the page(or at least the gantt) has to be refreshed to show the new location. This can take a few seconds and during that time it looks to the user like nothing happened.
    I found the AdfAgent.showBusyCursor function which probably would work, but how do I catch the DataChangeEvent on the client before it is sent to the server? My first thought was to use af:clientListener on the dvt:schedulingGantt but that isn't supported.
    Are there any other ways to do this?

    Two things come to mind:
    1. put an <af:statusIndicator> on the page. This will show a spinning gif whenever a ppr is active. A good visual feedback for the user
    2. use a [glass pane |http://www.oracle.com/technology/products/jdev/tips/fnimphius/glasspane/glasspane.html] to disable the whole UI while something is active.
    Timo

  • Show Custom Busy Cursor on RemoteObject calls

    Hi,
    I am trying to display a custom image as busy cursor while making remote object calls in flex 4 with cairngorm.
    i tried in two different ways and neither worked -
    First approach - declaring style for CursorManager in css style sheet:-
    CursorManager {
    busy-cursor: Embed(source="/com/officemax/amps/assets/images/ball-3.jpg");
    This did not work as it could not resolve a namespace and i could not find CursorManager either with mx or s namespace.
    Second approach - set cursormanager style on initiliaze of application file:-
    [Embed(source="/com/officemax/amps/assets/images/ball-3.jpg")]
    public var busyImg:Class;
    and on init method-
    styleManager.getStyleDeclaration("mx.managers.CursorManager").setStyle("busy-cursor", busyImg);
    This did not work either. this returned CSSDeclaration class for the CursorManager but I could not see the cursor reflect.
    I do not want to set and remove cursor upon each call, i want to apply it globally.
    Any ideas are greatly appreciated.
    Thank You.

    @lakshdn,
    The two approached you used should work. I suspect surely you made mistakes..Well let me explain..
    In the CSS style declaration below make sure you have assigned the correct relative. If you are getting any error saying that it could not resolve the path or namespace then it means that you have not assigned the image path correctly. Make sure it is given correctly.
    CursorManager {
    busy-cursor: Embed(source="/com/officemax/amps/assets/images/ball-3.jpg");
    Well coming to AS style of setting cursor manager . You have used systemManager with lower case for s and in the setStyle method you need to use the busyCursor instead of busy-cursor(similar to css).
    styleManager.getStyleDeclaration("mx.managers.CursorManager").setStyle ("busy-cursor", busyImg); - wrong way of assigning.
    StyleManager.getStyleDeclaration("mx.managers.CursorManager").setStyle ("busyCursor", busyImg); - correct way of assigning.
    Observe the changes I made in bold letters.
    Always remember when you are setting styles in AS using setStyle method you need to give the properties in the lower camel case but not as you give in the css. In css we can use any king of style (either word seperated by hyphen or lower camel case syntax)
    Hope this is clear ..make these changes and check..
    Thanks,
    Bhasker

  • Problem with busy cursor

    IHey there,
    i have a popping up window in my Flex app. This window needs a little time to get created. In this time I want to set the Cursor to busy. But instead of the busy cursor Flex displays no cursor, also the arrow cursor disappears.
    I tried the hack with callLater but it doesn't help. Had anyone a similar problem and knows how to fix it?
    By the way: What is the best way to set the busy cursor? Static, with the parentApplication.cursoManager property or in the component with this.cursoManager? All of these ways have the same result on my problem: no cursor!
    click on a item (own component, extended Canvas, buttonMode = true)
    call function by MouseListener
    function {
        this.cursorManager.setBusyCursor();
        this.callLater(doPopUpWork);
    callLater function
    doPopUpWork() {
        // DO WORK AND ADD POPUP
        this.cursorManager.removeBusyCursor;
    I checked the right timing with trace statements [ trace("setBusy") ... ] and the also cursor comes Back when work is done and popup was added. All right and in right time. But the cursor disappears in that time instead of showing the busy cursor.
    Can anybody help me???

    I see there are problems with reading the code, try again:
    click on a item (own component, extended Canvas, buttonMode = true)
    call function by MouseListener
    function {
        this.cursorManager.setBusyCursor();
        this.callLater(doPopUpWork);
    callLater function
    doPopUpWork {
        // DO WORK AND ADD POPUP
        this.cursoManager.removeBusyCursor();

  • How do i change the cursor on a jtable header when clicked for sorting?

    here is my question, how do i change the cursor on a jtable header when I click the header for sorting?
    I think it is suppose to be in the fragment of code where the header listener is implemented for sorting, but I'm not quite sure what is the exact component that holds everything so that i can change the cursor...
    below is what I've tried, but it doesn't seem to work... thank you
    public void addMouseListenerToHeaderInTable(JTable table) {
    final TableSorter sorter = this;
    final JTable tableView = table;
    tableView.setColumnSelectionAllowed(false);
    MouseAdapter listMouseListener = new
    MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    TableColumnModel columnModel =
    tableView.getColumnModel();
    int viewColumn =
    columnModel.getColumnIndexAtX(e.getX());
    int column =
    tableView.convertColumnIndexToModel
    (viewColumn);
    System.out.println("column = "+column);
    if (e.getClickCount() == 1 && column != -1) {
    System.out.println("Sorting ...");
    Cursor oldCursor =
    tableView.getRootPane().getCursor();
    System.out.println("oldCursor.getType()
    = "+oldCursor.getType());
    if (oldCursor.getType() !=
    Cursor.WAIT_CURSOR){
    JComponent parentPane =
    tableView.getRootPane();
    parentPane.getContentPane().setCursor
    (new Cursor(Cursor.WAIT_CURSOR));
    parentPane.setCursor(new Cursor
    (Cursor.WAIT_CURSOR));
    Cursor newCursor =
    parentPane.getCursor();
    System.out.println("newCursor.getType
    () = "+newCursor.getType());
    int shiftPressed = e.getModifiers(
    &InputEvent.SHIFT_MASK;
    boolean ascending = (shiftPressed == 0);
    //System.out.println("tableView.getRootPane()
    is "+tableView.getRootPane().getRootPane());
    sorter.sortByColumn(column, ascending);
    tableView.getRootPane().setCursor(new Cursor
    (Cursor.DEFAULT_CURSOR));
    //System.out.println("Done sorting");
    JTableHeader th = tableView.getTableHeader();
    th.addMouseListener(listMouseListener);
    }

    Hi,
    Try setting the cursor for the table header.
    table.getHeader().setCursor(Wait_Cursor);
    Bala.

  • Changing the cursor position

    Is it possible to change the cursor position automatically when changing the language?
    For example: when changing from English to Hebrew the cursor will move from the right end to the left?
    Thanks,
    Amnon

    I don't think this is possible in general, although some individual apps might do it.  Normally you use a direction control from an app menu or at the system level.
    http://support.apple.com/kb/PH14203

  • Changing the Cursor Type

    Good Morning Everyone,
    I am creating a report with a barchart in a column of the report. i have been following these for reference. (mainly the first link)
    http://htmldb.oracle.com/pls/otn/f?p=31517:183:5430906720971021::NO
    http://apex.oracle.com/pls/otn/f?p=220:1:1602821811068326
    http://apex.oracle.com/pls/otn/f?p=220:2:8706839551396459
    I have sucessfully got the "progress bar" in place on my report. Now what i would like to do is change the cursor type, but im struggling.
    This is the basic lay out of the code which i am using,
              '<img src="'
           || '#WORKSPACE_IMAGES#'
           || 'green.gif" height="20" width="'
           || TO_CHAR (random_value)
           || '" '
           || 'title="'
           || TO_CHAR (random_value)
           || '% completed'
           || '" />'
           || '<img src="'
           || '#WORKSPACE_IMAGES#'
           || 'red.gif" height="20" width="'
           || TO_CHAR (100 - random_value)
           || '" '
           || 'title="'
           || TO_CHAR (100 - random_value)
           || '% open'
           || '" />' progress_barPlease could someone help me :)
    Thanks in Advance,
    -N.S.N.O.

    Hey Guys,
    Thanks for your input, i solved my problem :D The style part of the code at the bottom did the trick.
    -N.S.N.O.
    '<img src="'
    || '#WORKSPACE_IMAGES#'
    || 'green.gif" height="20" width="'
    || TO_CHAR (UKXP)
    || '" '
    || 'title="'
    || TO_CHAR (UKXP)
    || '% of tables turned on'
    || '" '
    || 'style="cursor:help";'
    || '" />'
    || '<img src="'
    || '#WORKSPACE_IMAGES#'
    || 'red.gif" height="20" width="'
    || TO_CHAR (100 - UKXP)
    || '" '
    || 'title="'
    || TO_CHAR (100 - UKXP)
    || '% of tables turned off'
    || '" '
    || 'style="cursor:help";'
    || '" />'

  • Changing the cursor to the hourglass. Any ideas?

    I posted this in the Actionscript 3 Forum so I'm sorry about
    the double post.
    I've got a frame in my Flash AIR app that loads some data and
    I'd like to change the cursor to the hourglass in Windows (watch on
    the Mac) while the data loads. Anyone have any ideas? It seems like
    it should be simple, but I just can't seem to find a solution for
    it.

    Yeah, you can't do that. This is a top request of mine, glad
    to see I'm not alone. File an Enhancement Request -- see me
    signature.
    The workaround is to attach a custom graphic within Flash (or
    your HTML app) to the mouse location. The limitation of course is
    that this isn't system level, so you need to rely on custom
    graphics, and the graphic obviously won't be able to go outside the
    Flash/app frame. You can hide the mouse, thus effectively replacing
    the mouse cursor with your custom graphic, but I'd do that with
    caution: poor app performance or hangs will make the user think
    their mouse is hanging, which is a really bad feeling, and there
    are some other situations that can get hairy (mouse stays hidden
    outside of the app frame, sometimes, so cursor has completely
    disappeared!) For an hourglass or similar it makes sense to just
    attach right beside the cursor.
    Marco, the stopwatch you've seen is probably the one used in
    the Flex framework. It uses the custom attached graphic
    workaround.

  • Is there a way to change the cursor hotspot systemwide on Mountain Lion?

    Hello community.
    Is there a way to change the cursor hotspot on Mountain Lion, systemwide?
    Like editing the original cursor file (or downloading one) and replacing the original one?
    Reason: when I enlarge the arrow, the "absoulute" tip (top of the white outline) gets distant from the internal tip (top of the black core), so sometimes the white outline needs to stick out if I want to click the approprate area - because the hotspot is on the internal tip. To me it's counter-intuitive. I would prefer to have the hotspot on the absolute edge of the cursor (tip of the white outline). This is not debatable - this is my private preference, and I've read today that it's not only mine - there is a number of users who want the same.
    I know it's always been like this on Macs, so please avoid questions like "why to you want that", answers like "get used to it" or any kind of hostility, for these are useless. The quiestion is how can I change it, if possible.
    Thanx guys!

    I don't know how you get to the System folder in Mavericks; and even if I found the folder with the alternative cursors in it, I would have no way of switching to any of them.  The designers have obviously not anticipated that anyone would wish to do this.
    The System Preferences has an adjustment under Accessibilty which allows the user to change the size of the cursor, but nothing else.
    So I guess that there is no way to make the change without actually re-engineering the System somehow.
    If someone can find a way, I will be most pleased to be enlightened; only please make the directions explicit.

  • Linking to Images and Changing the Cursor in Dreamweaver CS4

    Suppose I have a link to a jpg that opens up in a new window. Right now, when I hover my mouse over the link, there is no difference in the cursor as it would appear elsewhere on the page (that is, it still appears as a white arrow, instead of a white pointing hand). What do I need to do to change the cursor when it hovers over the link? The link itself works no problem, and linking to other pages on my site produces the pointing hand cursor when I hover it over the link.

    Suppose I have a link to a jpg that opens up in a new window. Right now, when I hover my mouse over the link, there is no difference in the cursor as it would appear elsewhere on the page (that is, it still appears as a white arrow, instead of a white pointing hand). What do I need to do to change the cursor when it hovers over the link? The link itself works no problem, and linking to other pages on my site produces the pointing hand cursor when I hover it over the link.

  • Busy Image  to go along with Busy Cursor

    Hello,
      I am looking for the best way to show a busy image to go along with the Busy Cursor in a title window inside of my flex app.  I originally thought I could just embed a GIF image and it would animate just like a regular GIF does, but this doesnt happen without using some other 3rd party actionscript.  I know there are animations that can do this, but I am unfamilar with how these exactly work and if I have to start with an original image to animate.  I also dont know much about making a .fla file either then export it to a .swf.  Just looking for a direction to focus on since there seems to be multiple ways to accomplish this.  It just needs to be a circle that fades a section out as it rotates.  Thank you for taking the time to read my post.  Please let me know if you are confused or need any further information.
    Thanks again!
    James

    Greeting!
    I have a similar model "L455-S5008".  Motherboard # "K000093580".
    I have a post about it on the video section. Please look at the pic I uploaded & tell me what it is.
    My client's system does the same thing except it has no cursor just a black screen & all power to the laptop board. Along with  dvd/rw, wireless,HDD & power indicators illuminated. It just powers on & off own its own with no response when I press the esc or F10 buttons like some models do & cause it to stay running. This is a pic of the small chip.
    Attachments:
    100_1364.JPG ‏487 KB

  • No "busy" cursor in FF 3.5

    Performed a system upgrade today and restarted, as I was instructed. Started FF (Shiretoko) and it is dead slow moving from page to page, and there is no "busy" cursor. I'm running 64-bit Arch. What other information might someone need to offer fixes?
    Tim

    anybody able to help?
    i see lots of simular threads but i have tried most of what is being offered, and i'm not sure if 32bit solutions are the same as 64bit solutions.

Maybe you are looking for

  • RoboHelp HTML Version 8 - Merging AIR files

    We use Webhelp Pro to merge 19 separate projects into a single merged help file. Can I do that with AIR output, and if so, how? Can anyone point me to a tutorial?

  • Bad Sync

    Hi. My 6822 wont complete the sync process. PC Suite tells me the sync has finished but the phone just dislays "quitting sync" forever. I have to stop it by presseing the end call button. Next time I sync the phone creates duplicates in Outlook (pres

  • Pipeline validation xpath resolution problem

    I have a problem with something that seems like it should be a relatively straightforward requirement. I have a set of third-party schemas from a standards organization (CDISC). I need to build a solution that accepts documents conforming to these sc

  • Facing a problem to impliment a concept in Bex3.5

    Hi All,   I have implimented a concept in BEX7.0, but I am finding difficult to implement it in BEX3.5. The problem is:   I have defined an exception in BEX7.0 like, if one of my keyfig value is matching the condition defined in exceptions it is affe

  • Ipad 2, after update to Ios6, my itunes match library is "desparacidos"

    Any song are long 0.00 sec, des appear any titles, and i can't play...... Someone , have found a solution?