Background spoiled during the movement of the cursor

I faced the problem that is described in this thread:

Similar thread

I tried to use the method offered here and it really works, but it leads to infinity object-> drawFocus()-> object... cycle.

So, I want to ask if anyone knows the best solution of this problem.

I would like once more to describe the problem to make it more clear. I have buttons in the horizontal management:

then I set the focus to the button1:

Move the focus to the right:

There is nothing for the button2 but I try to move the focus to the right and get the following:

Then I move the focus to the left and the background of the button is OK:

Then continue the development of passage to the left:

All of these steps, I performed on the non touch device (screenshots of the emulator of 8100).

The following code piece describes the work of my buttons:

protected void onFocus(int direction)
{
  inFocus = true;
  int w = bgImage_.getWidth();
  int h = bgImage_.getHeight();

  if (bgImageSourceFocused_==null)
  {
    // invert colors of standard image where color has FF alpha value
    int[] bgImageData = new int [w*h];
    bgImage_.getARGB(bgImageData, 0, w, 0,0, w,h);
    for (int i=0; i

You will appreciate your help .

Yes, has encountered the same problems as well.

I can confirm that it is fixed all the 5.0 + OSes and persists on 4.6 OSes.

A fix for my situation at issue of the substitution of getFocusRect (XYRect rect) and return an empty rectangle.   It worked for me because I was not drawing the indication of the focus in the object that has this bug.   You may need to do something to activate this hotfix to your usecase.

Tags: BlackBerry Developers

Similar Questions

  • "ORA-01555: snapshot too old" during the cursor loop

    Hello

    I have a procedure which loop the records in a table, extracted SQL stored in one of the fields and execute it. In addition, it updates the State of education.
    Here is the code in the procedure.

    PROCEDURE RunStatements (inType IN NUMBER) IS
    -Declaration of the cursor:
    CURSOR cur_stmt (vType NUMBER) IS
    SELECT stmt_id, status, sql_stmt
    OF Stmts
    WHERE stmt_type = vType
    ORDER BY stmt_order;
    BEGIN

    -loop and run the statements:
    FOR r IN cur_stmt (inType) LOOP
    -updates the State
    UPDATE stmt
    SET status = 'On '.
    WHERE stmt_id = r.stmt_id;
    COMMIT;
    -running the SQL
    EXECUTE IMMEDIATE r.sql_stmt;
    COMMIT;
    -updates the State
    UPDATE stmt
    SET status = 'Off '.
    WHERE stmt_id = r.stmt_id;
    COMMIT;
    END LOOP;

    END;

    To parallelize the execution of the instructions, they are divided into two types: type 1 and type 2. The procedure is called via DBMS_JOB twice:

    Job 1:
    call RunStatements (1)
    Job 2:
    call RunStatements (2)

    The two executions of the procedure are running simultaneously for about 3 hours at night. Everything was OK until last week when an error began to occur every day.

    Here's the problem:

    One of the instructions is executed very long - around 1.5 hours. Successfully around 20 M, it inserts records into a table. However, after his arrival, Oracle triggers the following error:
    ORA-01555: snapshot too old: rollback segment number 7 with the name ' _SYSSMU7$ ' too small
    This error is issued after that Oracle is trying to retrieve the record next to the slider.
    After that I will carry out the rest of the statements manually and there is no problem.

    Oracle lost somehow, information about data in the cursor!

    Can someone help me understand why this is happening? Is it possible that the long running operation consumes the space reserved for the cursor? Is it possible that after a certain period of time without fetch all the records Oracle decides you don't need the cursor? Is it possible that the error is caused by using two identical slider?

    I tried to increase the tablespace UNDO as stated in some articles, but the error continues to appear.

    Any help will be appreciated. We are in production and I have to wake up every morning at 04:00 to start manually non-executed statements.

    Database: Oracle 10 g 2
    OS: Enterprise Linux RH

    Thank you in advance.

    Best regards
    Beroetz

    The reading consistency mechanism, this is what triggers the ORA-1555. We will try to explain what is happening:

    -T0, you open the slider. This locks "full" all the time the extraction will be requested (all read lines will be "full" t0). Note that Oracle does not have a copy of data of the cursor. When you check out lines, Oracle will read them disk/memory for now, ask you, not before (it will logically build the image in t0 if data has been changed since).

    -At t1, you update the validation and the stmt. When you retrieve a line of the cursor after t1, Oracle will see stmt has changed since t0 and logically will build the data as it was at t0, using the rollback segment information.

    ...
    time passes
    ...

    -To the t2 (2 hours after t0), you get a new line of the cursor. Oracle attempts to logically reconstruct the data as it was at t0, but information was crushed in the rollback segment. Oracle may come back in time indefinitely. The setting for the withholding of information of cancellation you defined is too low.

    You can either increase the retention time (undo_retention), it will have the effect to say Oracle: "wait longer before overwriting the cancellation information so that I can query the data to an earlier point in time. Or you can 'save cursor data' yourself, read all the lines, while you can (as before).

    I hope that this will help you understand why you get this error.

  • Download cursor position of tracing DURING the movement of the cursor.

    Hello

    I use MS 2013 with Vstudio 2010.

    During the dragging plot mouse cursor, the current cursor position is updated dynamically System.Windows.Forms.MouseEventArgs.

    However, the "scatterGraph.Cursors [0]." Which"is only updated on the event"AfterMove", when the cursor is released.

    I want dynamycally key to change the plot, WHILE the cursor is moved, as:

    private void scatterGraph1_CursorChanged (object sender, EventArgs e) {}
    scatterGraph.Caption = "X =" + scatterGraph.Cursors [0]. XPosition.ToString("#00.0") + ", Y =" + scatterGraph.Cursors [0]. YPosition.ToString("0#.0");

    }

    In the course of displacement, that is raised, but which Yposition do not change until the mouse button is released.

    I can see dynamic changes in a field in the small box attached to the cursor, but I can't find a way to extract the location of the cursor until the mouse is released.

    How can I do?

    Thank you, Igor

    Thank you

    I did run, but used the AfterMoveCursor event:

    ' Private Sub scatterGraph_AfterMoveCursor (object sender, NationalInstruments.UI.AfterMoveXYCursorEventArgs e) {}
    var Xpos = e.Cursor.XPosition;
    var Ypos = e.Cursor.YPosition;
    scatterGraph.Caption = "X =" + Xpos.ToString("#00.0") + ", Y =" + Ypos.ToString("0#.0");
    }

    Igor

  • InDesign CS6 after each movement of the cursor hourglass

    CS6 inDesign, I get the hourglass for about 2 seconds after I do anything with the cursor. For example, to move a text box, hourglass. Make a change to the text, clear and the hourglass is there for about 2 seconds. place a picture, hourglass. The hourglass flashes and nervous during this period. Even using the keyboard shortcuts, Ctrl Z ex m, I get the hourglass.

    This is seriously slow me down while I wait for the hourglass finish until I can move.

    This only happens with InDesign.

    I've deleted preferences. Computer rebooted, removed the preferences again and always occur.

    I use CS6 on Windows 7. In general, I HAVE and PS opened at the same time.

    I appreciate all the advice.

    Michele

    Two things come to mind: check spelling dynamics is running, preflight check is on.

    Depending on the power of your computer, this can take a long time to complete all cheques.

  • stop the cursor buttons movie clip

    I animated movie clips as buttons. When she reaches the point where the cursor is on the button, it disappears. Here is the script that I have on the main timeline:

    news_mc is the instance name of my movie clip button

    news_mc.addEventListener (MouseEvent.CLICK, news page);
    news_mc.addEventListener (MouseEvent.MOUSE_OVER, newsRollOn);
    news_mc.addEventListener (MouseEvent.MOUSE_OUT, newsRollOff);
    news_mc.buttonMode = true;
    function newsRollOn(event:MouseEvent):void {}
    news_mc.gotoAndPlay ("in");
    }

    function newsRollOff(event:MouseEvent):void {}
    news_mc.gotoAndPlay ("out");
    }

    function newsPage(event:MouseEvent):void {}
    gotoAndStop ("news");

    I know that there is something on
    news_mc. Mask =? I don't know if I have, of course, what part of the mask that I use. I have a layer that contains the background of the button (the name of the instance - background) then the 2 layers that form the animated mask - the layer mask contains a copy of the background of the button (instance name - context.2) and then the animation later mask contains a gradient which slides on the button (instance name - Masker).

    What is going on?

    ROLL_OVER and ROLL_OUT rather than mouse_over and _out did the trick!

  • Where are the options of the trackpad in Sierra OS?  In El Capitan the trackpad there NO light tap (ENTER) and just one click HARD (ENTER) and could move the cursor.

    Where are the options of the trackpad in Sierra OS? In El Capitan the trackpad there NO light tap (ENTER) and just one click HARD (ENTER) and could move the cursor.

    System Preferences > Trackpad!

  • MacBook Pro hangs at startup. Now don't go off not even when closed.  It's getting hotter and hotter and the cursor will not move!

    MY MacBook Pro screen froze on start up.  Do not move the cursor.  It turns off when I close it and it is just hotter and hotter!  Help.

    Turn the power off using the power button, unplug the power apparatus.

    If this is repeated once again, bring it into an Apple Store or an authorized service provider of testing it.

  • To Word on MacBook Pro photo collage, photo is not displayed, but the cursor moves to the bottom of the page. Tried rebooting already

    I try to copy and paste a picture of Word on a MacBook Pro, but it does not show. The cursor moves to the right distance to the bottom of the page and by positioning the mouse on the space shows that it is there, just invisible. I tried to reboot twice.

    Thanks for any help!

    It is the forum Pages.

    Have you tried Microsoft Word for Mac forum?

    Peter

  • Why doesn't the cursor disappears whenever I use it to move the window (Windows: 32.0 FF)?

    Why doesn't the cursor disappears whenever I use it to move the window (Windows: 32.0 FF)? How to bring back the cursor?

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • Menu main movie Audio playback during the film

    Hi all

    Good evening

    I'm watching the X - men First Class movie, I bought a long time ago. Unfortunately, once that I touched READING the menu main iTunes film starts but continuous loop during the movie main menu theme music makes it impossible to hear the audio and enjoy the movie.

    I tried several options, nothing seems to work. Its as if he has 2 windows, 1 of the main menu and the 2nd movie, but I cannot close the main menu without closing the film.

    Any help would be appreciated.

    Kind regards

    No worries found a solution, I just selected the film only in my iTunes list, has not noticed it before. Just goes to the film without having to go through iTunes extra version.

  • Not fully functional mouse with MacBook Pro 2010. I can scroll up and down, but can not move the cursor.  The mouse works with my new Macbook 12. No mouse problem but Macbook Pro?

    Not fully functional mouse with MacBook Pro 2010. I can scroll up and down, but can not move the cursor.  The mouse works with my new Macbook 12. No mouse problem but Macbook Pro?

    What specific mouse?

  • Sections black in the list of bookmarks when you move the cursor over the list.

    When I click to open the list of bookmarks and then move the cursor to the list I have sections of the list blackened, although the position of the slider is not blackened fortunately.

    I tried uninstall and reload, firefox restart Firefox, but nothing seems to help.
    Help please.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the start safe mode window or make changes.

    Try disabling hardware acceleration in Firefox.

  • During the Olympic Games, I put my national flag as a theme of background on my search home page, can't get rid of it

    During the Olympic Games, the option was given to set your national flag as a theme in the background on my homepage to google search. So I have the flag on the top and bottom of my google forward margins. problem is now I don't remember how I installed this and wants to get rid of it. any help would be appreciated, thanks.

    Have you installed a character for the style of the user interface of Firefox or have you set a background for pages in Google?

  • What is going on??? MY screen goes up and down control when I move the cursor and extends and shrinks when I move the cursor on the screen.

    When I move the cursor to the top or the bottom of the screen literally flies upwards or downwards. When I move the cursor through the scree, it expands or shrinks.

    Try disabling hardware acceleration in Firefox.

    You may need to also a (hardware) problem with the mouse or the mouse driver.

  • When you type in Firefox, the cursor moves to the left while everything is written backwards.

    Recently, whenever I try to type so that Firefox 9.01, the cursor moves to the left while everything is written backwards. I can normally type into a word document to have done with it and cut and pasted in this message. I use Windows XP. I closed Firefox and restarted my computer twice with no success to solve this problem.

    Maybe this recent thread on the issue even helps.

Maybe you are looking for