Small problem with scrollbars

Hello

I've implemented a custom Manager where I paint the scroll arrows myself.  It works fine on the touch non-ecran models, but when I try to scroll on the storm, the scroll bars are being developed faster than the screen is repainted, it looks like a big mess.

Any ideas on how I can avoid this?

I have attached a screenshot to illustrate the problem.

FYI, my solution has worked.

in the constructor:

setScrollListener(this);

Add this method in the handler:

public void scrollChanged(Manager manager, int newHorizontalScroll, int newVerticalScroll) {
    invalidate();
}

I don't notice any effect on performance.

Tags: BlackBerry Developers

Similar Questions

  • Small problem with the events of the listener

    I have a small interface with 5 radio buttons and a buttonfield and when i click buttonfield I create an event. all this works fine, but when I want to go back to the previous page I see pop up with 3 had to 'save, ignore, reject' and when I click on one of them I create a duplicate of the trial before.

    How can I go to the previous page without showing the pop-up with 3 coiches and without creating duplicate event?

    It's the listener code

    FieldChangeListener listener = new FieldChangeListener() {}
          
    ' Public Sub fieldChanged (field field, int context) {}
     
    {if (delivery. IsSelected())}
                               
    Time zone tz = TimeZone.getTimeZone ("GMT"); We want the time gmt
    Calendar gc = Calendar.getInstance (tz);  It gives the time date and gmt
                     
    int ore = gc.get (Calendar.HOUR_OF_DAY);
    int min = gc.get (Calendar.MINUTE);
    s int = gc.get (Calendar.SECOND);
                     
    Co co = new coordinate (longitude, latitude, ore, min, sec, 9, "Delivered");
    CoorVect.addElement (co);
    Dialog.Inform ("send event");
                       
    } else {}
    {if (GuastoMeccanico.IsSelected ())}

    Time zone tz = TimeZone.getTimeZone ("GMT"); We want the time gmt
    Calendar gc = Calendar.getInstance (tz);  It gives the time date and gmt
                         
    int ore = gc.get (Calendar.HOUR_OF_DAY);
    int min = gc.get (Calendar.MINUTE);
    s int = gc.get (Calendar.SECOND);
                         
    Co co = new coordinate (longitude, latitude, ore, min, sec, 9, "Guasto Meccanico");
    CoorVect.addElement (co);
    Dialog.Inform ("send event");

    } else {}
    {if (IncidenteStradale.IsSelected ())}

    Time zone tz = TimeZone.getTimeZone ("GMT"); We want the time gmt
    Calendar gc = Calendar.getInstance (tz);  It gives the time date and gmt
                          
    int ore = gc.get (Calendar.HOUR_OF_DAY);
    int min = gc.get (Calendar.MINUTE);
    s int = gc.get (Calendar.SECOND);
                          
    Co co = new coordinate (longitude, latitude, ore, min, sec, 9, "Incident Stradale");
    CoorVect.addElement (co);
    Dialog.Inform ("send event");

    } else {}
    {if (LavoriInCorso.IsSelected ())}
                             
    Time zone tz = TimeZone.getTimeZone ("GMT"); We want the time gmt
    Calendar gc = Calendar.getInstance (tz);  It gives the time date and gmt
                           
    int ore = gc.get (Calendar.HOUR_OF_DAY);
    int min = gc.get (Calendar.MINUTE);
    s int = gc.get (Calendar.SECOND);
                           
    Co co = new coordinate (longitude, latitude, ore, min, sec, 9, "Works in Corso");
    CoorVect.addElement (co);
    Dialog.Inform ("send event");
    } else {}
    {if (SenzaConsegna.IsSelected ())}
                                          
    Time zone tz = TimeZone.getTimeZone ("GMT"); We want the time gmt
    Calendar gc = Calendar.getInstance (tz);  It gives the time date and gmt
                            
    int ore = gc.get (Calendar.HOUR_OF_DAY);
    int min = gc.get (Calendar.MINUTE);
    s int = gc.get (Calendar.SECOND);
                            
    Co co = new coordinate (longitude, latitude, ore, min, sec, 9, "Not delivered");
    CoorVect.addElement (co);
    Dialog.Inform ("send event");

    } else {}
    Dialog.Inform ("Nessun elemento indication!");
    }
    }
    }
    }
    }
    }
    };

    Added on-screen, this code will replace the popup screen.

    I don't understand the second part of the question, that is to say the second invent.  Add this code and make sure that the popup is removed and then tell us if all your problems are solved.

    Also search the doc for this method in the object Screen to understand how it works.

    /*
    * Override to ignore the save/discard/Cancel dialog box
    */
    public boolean onSavePrompt() {}
    Returns true;
    }

  • Small problem with Captivate 6 quiz...

    I wonder if someone could help me with this little problem with Captivate 6 quizes?

    I've set up a quiz and disable the playback bar to save screen space

    I turn off the button 'next' on the issues because it allows to the learner in order to bypass the unanswered questions (and does not trigger the incomplete caption)

    And so I rename the button submit to 'next' - and that's fine, but when the quiz is reviewed there is no 'next' button to navigate between issues

    I thought that I might be able to hide the real button following behind the submit button (labeled 'next'), but finds that it is not possible to change the stacking order of buttons issue

    So, how can I stop the learner without going through questions without answer AND allow navigation during the review of the quiz?

    Pointers gratefully received

    Simon

    Hide the next button (Skip) under the clear button.  When you add a quiz for the Clear key is usually on a higher default stacking order.  But if it isn't, just remove and replace the button 'Clear' and it will be over the next button.  Usually, removal and replacement of the buttons on the quiz questions are the only way to manipulate the stacking order.  It's a pain, but this is easily achievable.

  • Small problem with Photoshop CS3

    Hi, I have a little problem with Photoshop CS3, I don't know if it's because only option of Windows that I messed up, but the thing is that I got in all the options, or some sort of preferences.

    http://img256.imageshack.us/img256/3554/62467600.jpg

    I don't speak of the 'little window' (I don't know the exact name) come, in this case, the filter and analysis options, they just turn right and usually, down it on their left side. It's really annoying.

    Not a big deal, but I can not really work properly. I hope you guys can help me, and this is my first post, I hope I don't break any rules.

    You have activated the left-handed Tablet support in your system settings. Turn the power off and everything will be back to normal.

    Mylenium

  • Custom problem with scrollbar in kifani

    Hi, I have a class that extends kifani. This class displays a JEditorPane inside a get for simple HTML display (I have try it with text, the problem persists).

    The problem is that, so I put a date in the JEditorPane and the scollbars are visible, they are positioned at the end of the 'view '! I try to reproduce the problem with a simple swing application, but it works.

    Any idea?

    PS: I'm using Jinitiator 1.3.1.25

    Here is the code:
    package ch.ceg.ecoles.forms.pjc;
    
    import java.awt.Rectangle;
    
    import javax.swing.JEditorPane;
    import javax.swing.JScrollPane;
    
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VBean;
    
    public class HtmlFrame extends VBean {
    
         private static final long serialVersionUID = 1L;
         // property to set the content
         public final static ID pSetContent = ID.registerProperty("SETCONTENT");
         // private variables
         private JEditorPane htmlPane;
         private String content;
    
         public HtmlFrame() {
              super();
    
              htmlPane = new JEditorPane("text/text", "Chargement en cours...");
    
              htmlPane.setEditable(false);
              JScrollPane scrollPane = new JScrollPane(htmlPane);
              add(scrollPane);
         }
    
         public boolean setProperty(ID pId, Object pValue) {
    
              if (pId == pSetContent) // set and display the new URL
              {
                   String sValue = (String) pValue;
                   content = sValue;
                   htmlPane.setText(content);
                   
                   htmlPane.scrollRectToVisible(new Rectangle(0,0,1,1));
                   System.out.println("après le scroll");
    
                   return true;
              } else {
                   return super.setProperty(pId, pValue);
              }
         }
    }

    Use:

    htmlPane.setCaretPosition(1);
    

    Instead of

    htmlPane.scrollRectToVisible(new Rectangle(0,0,1,1));
    

    François

  • Small problem with the tween class?

    Hey everyone, I have a site that incorprerates several different interpolations, interpolation, running on a timer in the main movie(scrolling text), another developed with a button click (scrolling images) in a film that is loaded into the main movie. My problem is that tweens sometimes freeze, especially the scrolling text and from time to time, random images, interpolation of images scroll freezes. I should mention that I have several different EventListeners in the background to mouse clicks, and I have small (15 k) SWFs loaded into the film every 3.5 seconds. If anyone knows why the tweens freeze sometimes? could it have something to do with the loading and the EventListeners, or I have to live with?

    Thank you for reading and suggestions that you may have;


    The draft of the site is www.sunnysideosc.ca (select Gallery > pictures)

    Interpolations of freezing is usually caused by the instance of Tween getting the garbage collector. You must have the persistence of a reference to the Tween to prevent it of to GC would be. In other words, if you do this:

    new Tween(obj,'x',etc...)
    

    While Tween will get destroyed the tracks of time following GC. Instead, follow these steps:

    tween = new Tween(obj,'x',etc...)
    

    steerage "would be a property of the object in scope when the Tween is created.

    Also, you can create the Tween instance once at the beginning and assign to a property and use Tween.continueTo () to make the animations.

  • small problem with the printer dialog box

    I recently added a Brother printer to my IMac and ran into a minor problem.  When I put in place using my WiFi and AirPrint, the dialog box has a convenient box for the black and white that I was able to check in one easy-to-replace step and just print in color.  However, the alarm time and the answer is a bit slow.  So, I then plugged a cable and add this version of the printer.  Now the box is missing and nothing I've been able to do, to delete and add new printer allowed me to bring that?  Any ideas on how I can get this feature practice appears in the dialog box with the printer connected to the cable?  Thank you.

    If I understand correctly, you have now two entries separated for this printer to Print & Scan? It's OK, although AirPrint is better for various reasons.

    I understand the printer takes an unacceptable amount of time to wake up to when choosing the AirPrint printer, and you want to avoid this.

    If you have added a separate entrance - one for the USB printer connected - how who you? Did you leave the print & Scan install this printer automatically on its own, or did you download and install a driver of brother separately?

  • Two small problems with CSC

    Hello Dan and his friends.

    I've known two little glitches for a few months with CSC. Can someone confirm them please?

    First of all, the RSS FEED no longer work, unless I connect. Without you connecting to CSC, STREAM RSS are not downloaded - my RSS reader (brief plugin for Firefox) simply displays an exclamation point and download anything, as if the URL is not valid. Unfortunately, I can't provide any further information that the communication is done via HTTPS, so the entire conversation between my browser and RSS feeds to the CSC is encrypted.

    Secondly, I am under Firefox 12.0 (actually, Iceweasel 12.0 under Debian, which is just a Firefox renamed due to licensing issues) and is no longer automatically fills the stored credentials to access the page of connection on the CSC. I don't know if there is a change in the behavior of CSC or if it is a bug in Firefox, but I wanted to ask if anyone else has the same problem.

    Dan, is this expected behavior? Thank you!

    Best regards

    Peter

    Hi Peter,.

    I sent your last message to our development team, and they identified the problem.  They will work on a fix and it will be added to our queue for one of our next release.

    Thanks for that bring to our attention

    See you soon,.

    Dan

  • Small problem with calendar

    I can't access the dates beyond February 28, 2009.

    Poet:

    Problem solved!  I had several daily repeat events every day during the month of March.  When I eliminated, the calendar worked again.

    The end date is not the issue; I tried to place an 'end date' and the problem comes back.  The problem occurs with any event that repeats in March 2009. Recurring events until February 28, 2009 and after March 31 are very good. Any periodic event in March freezes to the top of the machine if it has assigned an hour (recurring events "without time" don't cause a problem).

    Thanks again for your help.

    Message is about: Treo 680 (unlocked GSM)

  • small problem with authentication biometric javacard

    Hello
    I develop fingerprints on the card and I want to use the javacardforum.org API (http://www.javacardforum.org/Documents/Biometry). My problems are:

    1. where can I find a java api to communicate with my sensor to obtain the finger model and send it to the map
    2-How to use the bio API javacardforum for you sign up/check the fingerprint data received (from step 1) on the map

    Thank you

    + 1 where can I find a java api to communicate with my sensor to get the finger model and send it to the card.
    IMHO, this question is manufacturer of sensor.

  • Problem with ScrollBar

    I created a form several pages, with the first page, which is used to collect data from the user that is used to fill the subsequent secondary forms and print them in the form of documents.  On the first page that is used for data entry, I created a PREVIEW button that initially, I placed at the bottom of the page. The PREVIEW button displays PDF documents that are completed once the data entry is complete.  The problem is that when the PREVIEW button is at the bottom of the page, when I display PDF documents completed, the scroll bar shows first the OVERVIEW documents to halfway to the bottom of the screen and the user must scroll to the top to see the beginning of the document.  After much trial and error, I discovered that the problem is due to the fact that the user must scroll complete data entry page and apparently the scroll position is maintained when I display the first page of the PREVIEW.  I was able to work around the problem by moving the button PREVIEW to the top of the page, but from the ergonomic point of view, it is far from ideal.

    So, the question is... are at - there a way to force the overview pages (basically just unmasking filled subforms) to display from the top of the form when the previous page has been the subject of a scrolling down?

    What happens if you programatically move the cursor from one field to the form th etop before the preview?

    xfa.host.setFocus ("FieldName to set focus in")

  • When I click on the home page, it gives me the page but oriented to the bottom of the page. What is a small problem with the last update? How to fix it please.

    Updated Firefox to day today. Suddenly, my homepage is upward. When I click on home, he goes to the correct page, but pulls down of it every time. I want to straighten it please.

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

  • Small problem with Audio with m9500y

    I just updated my computer to Vista Home Premium x 64 to Windows 7 Home Premium x 64. I've only updated, I did a clean install. My sound works, but when I plug my headphones (at the front), the sound still plays across the screen. I looked at the device and it says it's working properly. I don't want to uninstall, because I don't know where to find the software for the audio components before. I managed to figure out that I can get the headphones to work if I do the helmet, the default playback device.

    I'll have to reinstall it the device, or there at - it another way to fix it?

    Thanks for your help.

    Hello

    Try downloading and installing a slightly older Realtek driver on the link below.

    FTP://ftp.HP.com/pub/softlib/software11/COL30523/PV-75647-2/sp44431.exe

    After it has installed, restart the PC.

    If the above did not help, run the troubleshooter automated Microsoft on the link below to see if that helps or highlights the problem.

    http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-fixing-common-sound-problems

    Kind regards

    DP - K

  • small problem with a simple diagram

    I tried the new Multisim 11 and so I decided to reproduce the diagram below, I took a book. It should be conducted intermittently at intervals, but I can't make it work. Well want to can someone tell me why it is not working (flashing)?

    Hello Poldoj and Andrew. I agree with Andrew. He has not worked with 470 kOhm (the time is long, but nothing the case - even if you wait awhile). It seems that the simulation never reaches the flash point. I dropped 470 kOhm to 220 kOhms and then it works. In the simulation, the LED flashes (briefly), but it still not completely eject 2.2 uF. I added a resistance of 100 ohms across the LED to discharge the capacitor more. It is easier to see what is happening in the graphic, then, but not is probably not necessary in the real circuit. See the two graphs with and without the 100 ohms.

    W.kr.

  • Problem with scrollbar after update with App Builder 32.4.4.

    Hey,.

    I just created an app update with the new version of the DPS App Builder (32.4.4.). After the update the scroll bar (of the Viewer - no content drop-down) moved to it of original position. (see screenshot)

    Any ideas?

    screenshot-bug.png

    The update went live Saturday. If you do not have automatic updates enabled for your devices, then you should see the update in the App Store Update tab.

Maybe you are looking for