Immediate paint on the screen!

Hello

I am writing an application show free hand in writing. I have the observer, if we draw the lines using the graphical display manager, these lines does not appear immediately, all my drawings appears only after once the screen refreshes on event like pressing button or switch the screen backlight option.

If I call invalidate after each line draw erase all lines, lines never appears. If I just called doPaint(), he is unable to do the painting. If I press the menu of options, he painted the entire screen as he painted menuitems on the screen.

Any body has the same problem.

Thank you

Marie-Paule

I would try to call Screen.updateDisplay)

This empty current graphic content for the display device.

Tags: BlackBerry Developers

Similar Questions

  • the latest version of ff loaded 10.1 - it crashes just after the painting of the screen. error is "stopped communicating with windows.

    using W7 and AVG anti virus

    Matt_G

    He worked thereafter. Troubleshooting extensions and themes had instructions titled for XP. The path to the menu for Firefox is a little different for 10.1 rel. It could be updated to the new version.

    Options, Options, advanced, general tab, disable hardware acceleration.

    It finally worked. If there was a fake "Firefox unresponsive message." I was (not) moving pretty fast so the "not responding" message went away and things started working.

    I am very happy because I had loaded Chrome in the meantime and Chrome is NOT Firefox. And I'm positively allergic to IE.

    Thanks for your help. Please pass it along to the update of the statement for people to help screen.

    John

  • Firefox 5.0 is partially paint on other screens of the application

    Since the installation of Firefox 5.0, I'm having a problem with Firefox partially overwritng the screen I am currently looking. Initially, I noticed that when you look at a screen of Outlook I would get repainted Firefox Outlook parts at some point, but for now, I'll have a big problem with downloads of Firefox screen partially painting on the main screen of Firefox every 30 seconds or so that I'm downloading a large file.

    In the case of Outlook, I have the impression that Firefox has a kind of feature repaint delayed but doesn't realize that the visible screen is so more than Firefox when he decides to repaint. It could be the same for the screen of downloads as the bar at the top of the screen is not reappear every 30 seconds, only a part of the screen.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

    Safe mode disables extensions in Firefox 4 and later versions, and disables hardware acceleration.

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.

    If disable hardware acceleration works then check if there is an update available for your graphics display driver.

  • appeal of painting in the class as xtends screen

    I'm quite new to blackberry programming, but I have a question. If I invoke paint in a class that extends screen Eclips gives me the following error message "Sub is an invalid type for variable painting."

    The app still seems to work perfectly. When I put on this screen a fieldmanager and run painting in that the error disappeared. The two just draw a simple circle on the screen.

    Why does this happen? code inserted below

    Error:

    public class UserInterfaceScreen extends MainScreen {
    
        HorizontalFieldManager FieldManager;
    
        public UserInterfaceScreen(){
    
            super();
            //FieldManager = new HorizontalFieldManager(Field.USE_ALL_HEIGHT | Field.USE_ALL_WIDTH){
                protected void paint(Graphics graphics){
    
                    int DevScreenWidth = Display.getWidth();
                    int DevScreenHeight = Display.getHeight();
                    graphics.fillEllipse(DevScreenWidth/2, DevScreenHeight/2, (DevScreenWidth/2)+100, DevScreenHeight/2, DevScreenWidth/2, (DevScreenHeight/2)+100, 0, 360);
    
                }
        }
        //add(FieldManager);
    }
    

    No error:

    public class UserInterfaceScreen extends MainScreen {
    
        HorizontalFieldManager FieldManager;
    
        public UserInterfaceScreen(){
    
            super();
            FieldManager = new HorizontalFieldManager(Field.USE_ALL_HEIGHT | Field.USE_ALL_WIDTH){
                protected void paint(Graphics graphics){
    
                    int DevScreenWidth = Display.getWidth();
                    int DevScreenHeight = Display.getHeight();
                    graphics.fillEllipse(DevScreenWidth/2, DevScreenHeight/2, (DevScreenWidth/2)+100, DevScreenHeight/2, DevScreenWidth/2, (DevScreenHeight/2)+100, 0, 360);
    
                }
        };
        //add(FieldManager);
    }
    }
    

    You try to set the method object within another method, which is syntactically incorrect.  Put before or after the code for the constructor and you'll be fine.

    The difference in the second case, is that you set paint inside a class - an anonymous HorizontalFieldManager extension, which is a place perfectly for the method definition.

  • Screen.Paint see the empty bitmap

    Hello

    I'm doing a transition screen animation but I can't find a way to do the same thing, doLayout method is. I work with OS 4.5 on Curve 8300 and the doLayout method does not exist in the API.

    I tried updateLayout, invalidateLayout doPaint and nothing works. I don't want the screen to be visible before the end of the transition, so I can't use the Display.screenshot () method.

    Here's the method I use. Graphic design is a part of a bitmap. With OS 4.1, I was super.doLayout just before the first method of painting.

    public void getScreenShot(Graphics graph) {     super.paintBackground(graph);       super.paint(graph); }
    

    Hello again,

    I found a solution to my problem. Simply put this part of the code before super.paintBackground (graphics);

    if (super.getWidth() == 0) { super.layoutDelegate(Display.getWidth(), Display.getHeight());}
    
  • Fields from painting hidden on the screen

    Hello

    I have a screen that adds custom himself fields. Custom fields contain information downloaded before the loading screen and an image that is downloaded from a PHP script, when the field is painted. Currently, what happens is that when you scroll down, and a new field is revealed, it runs the paint method, which downloads the image and stores it in memory.

    What I want to do, is have a default image for all objects, and have two sons: one that downloads photos while the user is using this screen, and another thread that redraws the fields if their images were downloaded. This is the code that sets up the screen:

    public void CreateIncidentList(ResponseGroup rg) {   for (int i = 0; i < rg.getIncidentsUBound(); i++) {        IncidentListItem ili;     try {         ili = new IncidentListItem(rg.getIncident(i));            add(ili);         //ili.invalidateLaneBitmap(); //XXX: Do we need to do this to force it to paint blank lanes the first time?         } catch (Exception e) {            continue;        }        if (i < (rg.getIncidentsUBound() - 1)){            add(new SeparatorField());            }    }
    
      threadLaneBitmapDownloader = new Thread(LaneDownloader);  threadLaneBitmapRepainter = new Thread(LaneRepainter);    threadLaneBitmapDownloader.start();   threadLaneBitmapRepainter.start();    try {     threadLaneBitmapDownloader.join();    } catch (InterruptedException e) {        e.printStackTrace();  } try {     threadLaneBitmapRepainter.join(); } catch (InterruptedException e) {        e.printStackTrace();  }}
    

    Here is the Downloader executable:

    private Runnable LaneDownloader = new Runnable(){
    
    public void run() {
        //Manager m = me.getMainManager();
        int numIncidentListItems = getFieldCount();
        IncidentListItem ili;
        Incident i;
    
        for(int x = 0; x < numIncidentListItems; x++){
            try{
                ili = (IncidentListItem) getField(x);
                i = ili.getIncident();
                for(int counter = 0; counter < i.getUBoundLocalIncidentInformation(); counter++){
                    if(i.getLocalIncidentInformation(counter).getLaneBitmap() == LocalIncidentInformation.blankLane){
                        i.getLocalIncidentInformation(counter).downloadLaneBitmap();
                    }
                }
            } catch (ClassCastException e){
                continue;
            }
        }
    }
    
    };
    

    This is the executable Repainter:

    private Runnable LaneRepainter = new Runnable(){
    
       public void run() {       while(threadLaneBitmapDownloader.isAlive()){          Manager m = me.getMainManager(); //Don't know if this is correct!         int numIncidentListItems = getFieldCount();           IncidentListItem ili;         Incident i;
    
              for(int x = 0; x < numIncidentListItems; x++){             try{                  ili = (IncidentListItem) getField(x);                 i = ili.getIncident();                    if(ili.getPaintedLaneBitmap() == LocalIncidentInformation.blankLane){                     final IncidentListItem mIli = ili;                        UiApplication.getUiApplication().invokeAndWait(new Runnable(){                                public void run () {                                  mIli.invalidateLaneBitmap();                                  mIli.setPaintedLaneBitmap(mIli.getIncident().getLocalIncidentInformation(0).getLaneBitmap());                             }                         });                   }                 try {                    Thread.sleep(100);                 }                 catch (InterruptedException ioe) {                        System.out.println(ioe.getMessage());                 }
    
                   } catch (ClassCastException e){                   continue;             }         }     } }
    
    };
    

    What I want to accomplish is to allow the user to scroll the fields while the images are uploaded and refreshing while scrolling. IncidentListItems are wrappers for field for objects of Incident which is where the image is stored. There is also a field called paintedLaneBitmap, which is supposed to store the picture that was painted when the IncidentListObject is created. This should normally be the image of blankLane. The idea is so that only one thread download background images and another thread checks to see if laneBitmap of the object of the IncidentListItem Incident is different from being painted and repainted the field.

    How can I accomplish this?

    Thank you very much in advance.

    Sorry I did not yet look your code because I would actually do what you want a different way.

    Here's a quick suggestion.

    Have a Thread dealing with your downloads.  He works outside a queue, you add the pictures you want to download in the queue.

    The queue is just a vector of objects.  Each object contains enough information for the Downloader to get and keep the useful image somewhere.  There also a "passable".  The executable is responsible for the update of the screen.

    If your thin wire of downloading an image, it's simply an invokeLater on the floor, which then becomes responsible for the update of the screen.

    So there is no vote, no loop, you use notify/waiting on the download Thread so it uses all resources except if we work to make it.

    There are many many variations on this theme, but I hope it's enough to make you rethink how you treatment works, that he will do what you want more efficiently.

  • I have just Setup iPhone 3GS from my wife. Through iTunes, I loaded music, Photos, Contacts, and calendar. There is no Photos icon on the screen. They are responsible because appear it as choices in the selection of paper painted. help please. Thank you.

    I have just Setup iPhone 3GS from my wife. I.O.S. 6.1.6. Through iTunes, I loaded music, Photos, Contacts, and calendar. There is no 'Photos' icon on the screen. The photos are loaded because appear it as choices in the selection of wallpaper. I would be grateful for any help with this. Thank you.

    Jimbo1307 wrote:

    I have just Setup iPhone 3GS from my wife. I.O.S. 6.1.6. Through iTunes, I loaded music, Photos, Contacts, and calendar. There is no 'Photos' icon on the screen. The photos are loaded because appear it as choices in the selection of wallpaper. I would be grateful for any help with this. Thank you.

    Double check the app folder or home screen.

    Cannot delete the built-in app, so go to settings - general - reset - Reset available to the home screen.

  • Satellite A200-1UV - how do I print the screen?

    Hello-

    I have Toshiba Satellite A200-1UV - can someone tell me how to view the screen, I'm looking.

    For example how to print 20-30 small jpg.pictures screen I see when I open a folder with photos of som I in the folder?

    Can I copy a put in a document, and then print or I can choose all the images and print them on plain paper?

    Thanks by

    Hello

    You can print the screen using the keys CTRL + print
    Now you must open a graphics editor like paint or something like that.
    In paint, click new file/photo and then use the CTRL + V keys to past the print screen.

    Welcome them

  • Satellite X 200-line appear on the screen and the computer to stop responding W7

    Hello

    I installed windows 7 a few days ago. I have download all the drivers, but:

    After starting the computer and connecting to windows, if I run an application too quickly (perhaps outlook, google chrome, internet explore explore...), it seems that the pilot does not display (and windows try to restore), and lines appear horizontally on the screen (only have 3/4 left of the screen, the right 1/4 is normal: S). after 30 seconds the screen goes black, and 15 seconds later, a beep comes from the laptop. After that, the only solution is to stop via pressing 5 sec the power :(button

    My graphics card is a nvidia geforce 8700 M GT. I have trid the drivers on the toshiba site (but this is for vista, W7 those not released... for this laptop). It changed nothing, so I download them from the nvidia site (one graduate and Beta 1), same result, it has not changed anyting... (I precise that I uninstall all drivers before reinstalling the new)
    So, I have updated the bios, nothing better.

    I read a solution on the microsoft Web site (for example to remove 5 keys register HKEY_USER /.) DEFAUT/control panel/Desktop and HKEY_CURENT_USER/control panel/Desktop), but these keys did not exist on my system, it couldn't be that.

    So, I'm in the wall.
    Someone has an idea?

    Thank you

    Post edited by: noescape69

    After many internet research, I found an interesting answer, and it was my solution!

    On the nvidia site, you can go the archived drivers.
    For mine (geforce 8700M GT), there are 179, 185, 186 and 195 immediate release. I have download the 179 (oldest), and... everything works great!

    My problem is solved.

    Hope this will help other people!

  • At startup, I get to the login screen, but the screen is dead, there is no response to any finger taps.

    At startup. I go as far as the login screen (showing the four accounts). But this screen is dead: there is no response to finger taps or gestures. only by pressing the power button gets a response (immediate panic stop)

    There is a story backward. Yesterday, at the start, I received a popup saying "message wants to use the login keychain, enter the password". I get my password for connection which, until now, the password of the login keychain. He dislikes that pw (he's trembling). Same with "connectsd" instead of "message".  I could send startup, but it was totally insensitive. I use Safari, but the popup remained on the screen.

    Now, today, I can not use my MacBook at all, as described in the first paragraph.

    Help!

    It starts in Safe Mode - that is when you start and press command + R?

  • How to remove the contrast to appear on the screen

    My monitor shows a contrast, and the screen is disrupted. This computer is not connected to a Web server.  This may correct or I have to buy or replace the monitor? (Dell)

    Hello
    • What is the version of Windows running on your computer?
    • If it works well before?
    • What were the changes made before the problem occurred?
    • How long you have been facing this problem?

    I suggest to start your computer in safe mode and check for the issue.

    Advanced, including safe mode startup options
    http://Windows.Microsoft.com/en-us/Windows7/advanced-startup-options-including-safe-mode

    You can collect screenshots of color 256 and transfer it to the http://skydrive.live.com/ using your Live ID and I'll check it:

    Screenshot

    ========

    1. press the button print screen (print screen) on your keyboard.

    2. click on the "Start" menu, type "mspaint" in the search bar and press ENTER.

    3. in the Paint program, click on the "Edit" menu, click on 'Paste', click on the 'File' menu and click 'save '.

    4. the dialog box "Save as" appears. Type a file name in the "filename:" box, for example: "screenshot".

    5. make sure that "JPEG (*.)" JPG; *. JPEG; *. JPE; *. JFIF)"is selected in the box 'Save as type', click Desktop in the left pane, and then click"Save ".

    ===========================================================

    See the discussion that follows for more information on how to display a capture in screen answers forum:
     
    How can I post screenshots of my question in the Forum of answers?
    http://social.answers.Microsoft.com/forums/en-us/vistaassistant/thread/ca5463aa-ec2f-4497-8cc4-cfe7fd5861e6

     
  • Signature on the screen

    I try to use my TouchSmart in the context of a paperless office. But when I sign documents on my signature screen turns to printing. My old TouchSmart allow me to do. How can I keep the script as a script, do not print?

    Hello litegal:

    Welcome to HP forum.   First left click your mouse anywhere on your screen. Select veiw then the check box show the desktop icons. Now left click of mouse any where on the document journal still reselect then select srceen. Open it if your pen driver is not installed, it will ask you now want to install it. Something to that effect. Click on install. See the journal is always open the test your writing hand and shut up. Left click your mouse anywhere on the screen select veiw uncheck brand show destop icons if you wish. Now open Microsoft Office Word 2010 document. On the tab bar tool feather showed. I click on it. After sleeping with her some how I managed to send the shortcut for it by W (except botton) two arrows high because it was so hard to find in the first place. Now I can access freely. I have an amount the rest of the Microsoft Office software works the same way.

    You can always send your documents to paint found in chattels and very easy sign. Microsoft Office of course did not the easy to use toolbar. I just click on everything until the tab pen presented themselves. Some how a message you want to add. I click Yes now I have it too easy. Now I'm going to try tab drawing as well. frrw

  • I have Dell ispron B130 running windows xp, how do I print what is displayed on the screen using the PRNT SCRN key?

    I have Dell ispron B130 running windows xp, how do I print what is displayed on the screen using the PRNT SCRN key?

    The 'Print screen' button is misnamed.  In fact, what happens when you press it, it is that an image of the screen is copied to the Clipboard.  You must then open an application that can work with images (paint works) and paste in the opened window (or right-click > paste or edit > paste).  Then you can use the regular print of this application (for example, the file > print).

    You can also download free IrfanView.  It is a very handy utility.  It allows you to open and view a wide variety of image file formats and also has the capability of the bulk renaming of files and - for your current number - capture screen images and prints them out.

  • Could not paste bitmap screenshot in Paint, paste the function not active

    Vista paint non-active control V to paste the screenshot.  Why?

    Thanks for the suggestion, but...

    No joy - open Paint, back at the office, shift F11 (Prt SCRN), returned to paint, paste the icon is not active and V control has no effect.

    In the paint Edit menu there is a "paste from" icon that is active, but I don't know where the Clipboard is and can't find it. This folder contains the bitmaps on Clipboard?

    =========================================
    Sorry... I do not have the answer. As far as I KNOW... each screen
    shooting overwrites the previous one... so there is only one at a time.

    The tool Vista capture might be worth a try.

    Use capture tool to capture screenshots
    http://Windows.Microsoft.com/en-us/Windows-Vista/use-Snipping-Tool-to-capture-screen-shots
    (Vista Home Premium, Business, Ultimate, Enterprise)

  • LARGE & SMALL ICONS, WORDS, ETC. ON THE SCREEN

    When I left earlier today, my computer was such that it is always, when I came back a few hours later (had left comp on) my icons on the screen & top of my Firefox page (ie: file, edit, history, Favorites, tools, help) are now HUGE!
    But, my sidebar, clock, news items, etc., are MUCH smaller than normal.
    What the hell happened between when I left & came back?  I always just leave when I go to the store, or something & it's never happened before.
    I checked that my screen resolution is at recommended, I checked my IPR, I don't know what else to do.
    Help, please!
    TY!

    Hi Patti,

    Try this another way. I would like when even you download what you saved in the documents on SkyDrive folder.

    (a) first of all, download the question you would like to see me on your screen.

    (b) on your keyboard, you are looking for a print screen button or Prt Scr or Prt Scn Print Scrn. Press this button.

    (c) click Start and type Paint in the box to start the search.

    (d) open Paint , click on a blank part of the window and press Ctrl + V to paste the picture.

    (e) save this image that you would normally save a file. I use Ctrl + S.

    Now to download the files.

    (a) go to www.hotmail.com and sign in to your Microsoft account.

    (b) at the top left he seems ideally Outlook and you will see your email. Click on the small arrow next to Outlook downwards and you would get a drop down. Select SkyDrive.

    (c) on the Ribbon at the top, you will see a download option. Click on that and it allows you to fix all the images that you have saved to be downloaded.

    (d) select the file and click on sharing of the Ribbon at the top of the page and allow the files/folders to share.

    (e) then click on a link and select show only. Post the link here.

    Hope that's easier for you to understand. Let me know if you need anything that anyone else.

Maybe you are looking for

  • Cannot install Photosmart C6380

    Photosmart C6380 all-in-One installed the printer almost all the way to the wired network. Then, he fails to finish. I've even set up 100%, then get a fatal error. I uninstalled the software, rebooted the computer, reset the printer and that she fail

  • How can I download Pentax Optio 33l driver Web site

    I have a Pentax Optio 33 L and you should download the software on my laptop, for some reason, the pilot won't download from Pentax.  Why is this? It is obsolete and is no longer available?

  • Any solution for "The Audio Service is not running"?

    Searching high and low on the Internet, I can't find a solution to the difficulty of the notification in the status bar:"The Audio Service is not working" even if my audio works.  I find that this problem exists for many people using Win7. I just fou

  • 3 express Iriscan

    I have a new scanner portable iriscan express 3.  I am able to install it in windows 7, but not in windows 8 (64).  It is supposed to be compatible with windows 8 (64).  Y at - it an easy solution to this problem.  I tried with the downloaded driver

  • Invalid file size App Builder

    I can't download my application, cause I always get the error: 'invalid file size analysis returned Icon-29@2x-png '.I tried different file names: 'startscreen 29x29.png "; '29x29.png '; "29.png.I tried different png files: 24-bit-png; 8-bit-png; I h