VerticalField Manager Custom Image display and scrolling problem

I have the following code, which does a great job to display my buttons and text in my 8530.  The problem I have is when I view it on another phone the image goes all the way to the bottom of the screen (for example on a 9550 sim card).  When I add the value of Field.USE_ALL_HEIGHT that the image goes all the way to the bottom of the screen, but when I scroll down to close I see lots of whitespace below of the image with the button close all the way to the top.  I tried to create a manager of sinople not floating with the background image and put the buttons on a second, assigning it to the first with no luck.  How can I get so there is not any white space below the image? Thank you

///////////////////////////////////////////////////
Creates the button and the text on the main screen
VerticalFieldManager vor = new VerticalFieldManager(Field.USE_ALL_WIDTH |)
VerticalFieldManager.VERTICAL_SCROLL |
VerticalFieldManager.VERTICAL_SCROLLBAR |)
{
Override the paint method to draw the background image.
public void paint (Graphics graphics)
{
Draw the background image, then call super.paint to paint the rest of the screen.
graphics.drawBitmap (0, 0, Display.getWidth (), Display.getHeight (), bgImage, 0, 0);
Super.Paint (Graphics);
}
};
                           
LabelField para_1 = new LabelField ("mark your location, then"+ ")
'generate a route back to this place.
LabelField.FIELD_HCENTER);
LabelField para_2 = new LabelField ("* you must Access to GPS *")
LabelField.FIELD_HCENTER);
vFM.add (para_1);
Fnt font = this.getFont () .derive (Font.BOLD);
para_1.setFont (FNT);
vFM.add (para_2);
vFM.add (viewCurrentLocBTN);
vFM.add (viewMarkCurrentLocBTN);
vFM.add (markCurrentLocBTN);
vFM.add (routeBackBTN);
vFM.add (closeAppBTN);
This.Add (vFM);
///////////////////////////////////////////////////

Thankss!  After reading the reference that I realized what I had to change this

Super();

to do this at the beginning of the method that creates the screen

Super (NO_VERTICAL_SCROLL);

Tags: BlackBerry Developers

Similar Questions

  • T410 AiO customer CAPS, NUM, and scroll keyboard stop does not work with PCoIP view desktop computers

    We have problems with our t410 AiO customers, where the CAPS, NUM and scroll stop lights on the keyboard do not work with view PCoIP desktop computers.

    I found the below information and a work around:
    If you use the Protocol PCoIP to display on a client system Ubuntu 10.04, the CAPS Lock, NUM Lock, and Scroll Lock lights on your keyboard do not work with desktop view. Although the lights do not work, the keys themselves work.
    Solution: Set the following configuration in a configuration file, such as/etc/vmware/config:
    mks.keyboard.useXkbSetNamedIndicator = 'TRUE '.

    The problem is this difficulty is already in place via the latest version of the HP, Z6A440, software that is installed within our Organization.

    What I discovered, is that the model that we initially bought for the test doesn't have this problem.  However, the models that we ordered since that time, DO have the problem and the solution above does not work as expected.

    The model originally ordered for test is still a customer of IOA t410... but there are 4 "under models' for customers of IOA t410... that we have to test is a H2W20AA, while those we receive and distribution are the H2W21AA model.

    No idea why, when connected to the desktop from view, that models of H2W21AA have this problem?

    H2W20AA is with Teradici PCoIP optimized, which can support PCoIP better, but H2W21AA is not with Teradici. That's the difference.

    However, the issue that you are experiencing does not matter in fact, we have not heard of this problem before. I would suggest that you do the following to see if there is no change:

    1. Go to download the latest VMware View 2.3.4 for t410, follow the instructions to install.
    2. If suggestion 1 does not work for you, try to connect to another VM group or set up a new machine virtual clean
    3. Call HP service center to save your problem for further investigation if the suggestion above did not work

  • Background image of display and scrolling VFM

    Right now, I'm stuck trying to give the desired result work on my screen. I already know the basics of adding a background to a Manager (value bit flags USE_ALL_WIDTH and USE_ALL_HEIGHT so that paint void). However, I must also deal with a child growable VFM attached to the screen can scroll if the height is greater than the height the screen less the height of the top banner field. What I want to achieve is the following: having a screen that does not scroll with a background image that is attached to the dimensions of the screen less field height of the banner (first low-level with the BG Manager). However, I want the VFM child to be able to scroll if necessary while the BG image is displayed in the background. Here's what I have so far to my constructor:

    public MyMainScreen(){
       super( NO_VERTICAL_SCROLLBAR );
       VerticalFieldManager myVFM = new VerticalFieldManager(
                                    VerticalFieldManager.USE_ALL_WIDTH
                    | VerticalFieldManager.NO_HORIZONTAL_SCROLL
                    | VerticalFieldManager.NO_VERTICAL_SCROLLBAR
                    | VerticalFieldManager.FIELD_TOP
                    | VerticalFieldManager.TOPMOST
                    | VerticalFieldManager.BOTTOMMOST );
       setBanner(myBannerField);
       //fields are added to VFM.....
    
       VerticalFieldManager bgManager = new VerticalFieldManager(
                                    VerticalFieldManager.USE_ALL_WIDTH
                                    | VerticalFieldManager.USE_ALL_HEIGHT
                                    | VerticalFieldManager.NO_VERTICAL_SCROLL){
               public void paint(Graphics g){
                  //my BG gets drawn here...
                  super.paint(g);
               }
       };
       bgManager.add(myVFM);
       add(bgManager);
    }
    

    So, I just need to know if I'm doing something wrong here. Of course, it may be obvious to some, but for some reason that I'm completely stumped. Thanks in advance.

    Tried again without the substitution of sublayout, and he managed to work given my VFM populating routines, because the domain in question (HFM) that is updated is added without all the fields added initially, so my VFM has all the fields, it needs at that point to have himself. You're right, if I wanted to complex me and choose to place the fields of optimization of resources on particular points, it would be wise to replace sublayout and define to what extent, accordingly, but in this case, it works fine without it. Anyway, the people, the answer today is that your screen does not scroll by setting super (NO_VERTICAL_SCROLLBAR |) NO_VERTICAL_SCROLL) in the constructor, however, if you want the custom vertical scrolling on your VOR with BG, you must set to vertically, do scroll down and use the height by passing the following style bits:

    VerticalFieldManager.USE_ALL_WIDTH
    | VerticalFieldManager.NO_HORIZONTAL_SCROLL
    | VerticalFieldManager.VERTICAL_SCROLL
    | VerticalFieldManager.NO_VERTICAL_SCROLLBAR
    | VerticalFieldManager.USE_ALL_HEIGHT

    then you replace paintBackground appeal of this optimization of the resources any desired call paint and that's it.

  • PC Tablet tx2000 - display and wireless problems

    Hey people. I have a HP tx2000 tablet PC laptop with a year of purchase warranty - which expired last month, and now two serious and potentially debilitating problems encountered. I spent about four or five hours with the Livechat nice people, who were on the whole patient and temporarily managed to fix one of the questions.

    (1) the wireless device may not be detected - wireless laptop card is not read. It is a big downer for me because I'm using wireless exclusively at home and work and I really want to shell out money for a smart card to replace the technology on a laptop that is 1 year and 1 month. The first thing I tried was re - install Vista. The wireless adapter has been detected and worked just dandy until as soon as I restarted the computer. Then he disappeared from the Device Manager list. I have re-installed twice and it's the same thing. LiveChat directed me to a new BIOS to install, so I installed that, too. It's the same thing. Then Livechat instructed me to delete the program HP Wireless Assistant and bingo! The wireless worked very well and through several reboots. For a day and a half. Now, it is not found yet.

    (2) when the laptop from sleep or hibernation, the display is not 'wake up' again. The fan will be UM, the LED flashes, but display refuses to wake up. The only way to solve this problem is to restart the computer. This also happens / every time / I switch on the computer itself. The display will be activated, no post screen, no beep system seconds later. The only solution is to hold the power slider until the system is a closed hard down, and then click again to turn the computer back on. This usually works, but sometimes it takes 2 or 3 tent.

    The Livechat was to update my video drivers, and they sent me a nice handy nvidia update.  To restart the installation, the computer performed normally, but as soon as I rebooted again (after the conclusion of the session of Livechat marathon at 5 in the morning) the white screen problem has occurred. I also tried to install the latest drivers from the nvidia site (which have been updated from those HP gave me), without result.

    I've read about these two problems on various boards of the internet; Wireless outage seems to be something very common with pavilions and the chipset, even if it is fairly unique in that reinstall allows the system to 'find' immediately and it works very well, and Livechat HP gave me a working solution where the wireless ran for a day and a half and ten or twelve of the low power/ups power. The problem with the monitor, however, seems very widespread and is frustrating in the extreme to me and many others. Much the assumption it implies the tablet technology. My previous laptop was a Dell Inspiron with a large, 2 "hole diameter engraved on the screen, and Support from Dell wouldn't even talk to me even if they had a unique way of extension of the guarantee for what is a major problem of manufacturing. Nevermind, I have below the 3-year warranty, and they would just me shuttle for a salary-service as soon as I gave them my tags. I lost all faith in Dell products accordingly. HP, on the other hand, was very polite by Livechat, and I read some of these forums... It seems that if people know what they are doing here. I don't want to throw more money on another laptop, and the Tablet functions are the bomb. I want just a working laptop.

    See you soon,.

    Hello!

    I got a free replacement of Hewlett-Packard after 30 or two hours and two months of work with HP, as follows:

    (1) contacting a case manager (call HP, o askt be xferred to the records management) and pointing out that:

    (A) my laptop (as well as many others here and elsewhere) suffers from symptoms described in the limited warranty Service extension (http://support.hp.com/us-en/document/c01087277 and HP can agree with that

    (B) the only reason for which it is not covered by the LWSE that the above is that my system is not listed as an attack (it is yours or thousands of others)

    (2) However, 2 months out of warranty case manager first offered a half - off repair (what tech support told me was $428), then again a repair for $90.

    (3) I refused both offers, because it is - of course - a manufacturing defect that affects much more than just a handful of systems. HP is completely ignoring people and hoping it will go away. I got ahold of all the e-mail addresses of single senior partner/CEO/worker I could and started FREE shipping asked to fix my laptop as I MERIT because it is DEFECTIVE.

    (4) Finally, one of the e-mails came to the attention of the Executive customer relations. 15 minutes to speak to a representative, he decides to give me a free repair. All there was to it. The mail box arrived at my door two days later.

    Yes, good luck for the rest of you... I stand testament to the fact that HP gave a free repair to an owner of a machine of series tx, suffering from the failure of GPU Nvidia (missing sporatically wireless are the first and the most common symptom of this). You can get your machine fixed and must never pay for it. Components of a laptop should last more than 13 months! NVIDIA and HP as well acknowledge the failures, but not released any information on what parts have been affected. It is to you, noble drive, to make a pretty big stink to get HP to fix your investment.

    And don't forget... Do not buy HP again!

    See you soon!

    Message edited by Wendy on 21/06/2009 20:48
  • ItemRenderer type image display and the object

    I have an element converter that displays my image and object type (in the text which is scheduled on my image) as below snapshot.  How can I remove the text of object type?

    wrongTypeDisplay.jpg

    The first line is supposed to be, supposed to be a chart title.  But my problem is whence the text "[BitmapImage object]"?  Here is my code itemRenderer:

    <?xml version="1.0" encoding="utf-8"?>
    <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 
                        xmlns:s="library://ns.adobe.com/flex/spark" 
                        xmlns:mx="library://ns.adobe.com/flex/mx" 
                        autoDrawBackground="true">
         
         <fx:Script>
              <![CDATA[
                   protected function getImage(event:MouseEvent):void {
                        //largeImage.load(event.currentTarget.getRepeaterItem());
                   }
              ]]>
         </fx:Script>
         
         <s:states> 
              <s:State name="normal"/> 
              <s:State name="hovered"/> 
         </s:states>
         
         <s:Image source="{data.source}" maxHeight="100" maxWidth="100"
                    horizontalAlign="center" verticalAlign="middle"
                    click="getImage(event)" />
    
         <s:Label text="{data}" maxWidth="60"
                    color="blue" textAlign="center"
                    verticalAlign="middle" />
    
    </s:ItemRenderer>
    

    The source is from a DataGroup in the main.mxml with a dataprovider of an ArrayList:

    <s:ArrayList id="tempData">
                   <fx:String>1 Picture</fx:String>
                   <s:BitmapImage source="I:\Documents\development\SERCO\SNA_media\pictures\1.jpg"/>
                   <fx:String>2 Picture</fx:String>
                   <s:BitmapImage source="I:\Documents\development\SERCO\SNA_media\pictures\2.jpg"/>
    

    Any help/direction on getting to not display the type of object would be greatly "reverend."

    Tony

    Hi Tony,.

    #1

    (first) that you are using the definition of unusual data source - which does not use instances of object with properties - direct burt of values ordered by the order in which they are declared (label/path/label/path) - although I've seen these examples by Adobe itself:

    http://www.Adobe.com/devnet/flex/videotraining/exercises/ex4_01.html

    That the first part of the series uses exact application you are currently using. You will see that it is quite complex because of the different nature of the objects hosted in the list table - which requires quite * rare * (read: not often seen) approach to data binding.

    #2

    (second) which is supposed to already you - and what is being discussed in the second part of the article from Adobe is the most common way to provide data to the lists: array of objects (list):

    http://www.Adobe.com/devnet/flex/videotraining/exercises/ex4_02.html

    It's more natural: there is an object that has * label * and * way *: label describes object that contains the path where the image.

    With this second part of the sample of Adobe list table example could be defined in a more natural way:

    [code]

    
         
         
         
    
    

    then in the converter of label.text element could be related to {data.label} and source of the BitmapImage to {data.imageFile} respectively (or any given property name, you must use when you declare your data providers) in the definition of your ItemRenderer (see related part of the Adobe tutorial which deals only)

    Is here more general informative tutorial from Adobe on 'data provider' (arraylist, list, etc.) in the Flex SDK kit:

    http://www.Adobe.com/devnet/flex/QuickStarts/using_data_providers.html

    HTH,

    Kind regards

    Peter

  • Where that we manage for the display and entry date formats

    the specification of the user that is displayed as DD-MON-YYYY dates. Is there a config or properties file that contains the date format for display? Is there a drop down calendar which can be positioned next to an input field to date for a question on a screen?
    Thank you
    Allan

    Hi Allan,

    Just had a look at this takeover bid 10.1 on my machine.

    I noticed that for an attribute date as on a screen, when you use Input type = Year, Month and Day edits (in the file screens), it seems to display the three drop-down lists in the same order (day, month, year), regardless of what's been defined in the configuration line "input-date-formats" in messages. file .properties (locale).

    However, I was not sure of your email if the DD-MON-YYYY format was necessary for the entriesto date, or just for the display of date output. If the latter, then using the following in your messages. (place) .properties file...

    output-date-format = yyyy-MMM-dd
    

    ... will translate dates displayed like this: 1980-Jan-27

    To force the OWD to accept only dates of entry of user in the format '1980-Jan-27' then you can edit the line input-date-formats of configuration:

    input-date-formats = yyyy-MMM-dd
    

    ... However, it is rare to restrict the dates of entry into a single format. As you will see in the messages. (locale) .properties file entry-date-formats is set to a combination of common entry to the regional settings date formats, in addition to the ISO international date format (YYYY-MM-DD, e.g. 1980-01-27).

    See you soon,.
    Jasmine

  • key control (ctrl) and scrolling problem

    Key control (ctrl) zooms window can not copy, paste, etc. using the function without the Zoom window key before, this does not happen with other browsers, it started about 3 weeks, possibly after the last update of firefix, windows 8

    When I scroll down a page, it automatically rises to the top. Not sure this is strictly related to Firefox.

    Modification of the foregoing did nothing for me (restarted my browser to make sure) If update the following to 1 (let's me still use the mouse wheel to scroll the page) worked like a charm

    Subject: config > mousewheel.with_meta.action > choose one of the following:

    0 (disabled)
    1 (scrolling content)
    2 (move backward/forward your story)
    3 (by default, zoom in/out)

  • Satellite L650-1EQ - black screen and overheating problems

    Hello

    I have a problem with my laptop Satellite L650-1EQ.
    A few days ago my laptop was overheated quite often.
    I would like to start playing a video game and the computer could actually turn off after 10 minutes of playing it.

    I realized that this was getting serious so I stopped using my computer to play games and I decided that I need to clean it. However, I was looking for online on how to clean up my computer and then my screen turns white!

    I didn't know what happened and was very scared.
    I turned off the computer.

    The next day I turned on the computer to see if it was good, and the screen was black however the laptop power light comes on and I hear the vents work.

    I turned on the computer and tried to start it again, and the computer started fine.
    The image appeared and the problems disappeared.
    But I knew that something bad was about to come so I took the laptop computer repair technician.

    I told her what happened.
    He has used the vacuum to "clean" the dust of the computer and told me to go back if the computer kept a overheating.

    I restarted the computer again when I came home, and after an hour and a half the computer screen turns white but I don't think that it overheated. : s

    I tried to start the computer and the screen is black, no picture, the only light on is the power one and I hear the vents work. I tried of transformed market but now it just stays as if it were now.

    I tried on another computer for solutions such as the battery and pressing the power button for 2 minutes and other things, but nothing has worked. I don't know what to do so I decided to create a thread to get answers: s

    Please help me, thank you!

    PS: I'm sorry for my English, I know that's not the best

    Hello

    This does not sound very good boyfriend. I'm afraid that there could be some sort of dysfunction material Mr. something like the problems of graphics card or motherboard issue.

    You can try plugging the external monitor to the laptop just to see if something would be visible on 2nd screen.
    But if nothing will appear on the 2nd monitor, I think that the chip of the graphics card died :(

    Of course, this is just my personal opinion and a laptop computer technician must check the laptop to know what part of the laptop could be faulty.

  • sequence Manager custom; What happens when?

    The page on screen mentioned using a Manager custom value USE_ALL_WIDTH and height, on a full screen, in order to get the screen of the device width and height without a signed key and without using deprecated code. I did it and it works. So I can set some static class and use these values throughout my program. All other class modules use the values very well.

    I have another custom Manager, in the same class as well as the first. He must know the width of the screen. Now, even if I am the creation and initialization of the class of ScreenInfo first, Member in the constructor of the class, the value of screen width is not available at the moment where the second Manager needs.

    Someone could enlighten me on this timing issue and let me know if there is a solution? Thank you

    Your sublayout must do much, much more than that. It is a centerpiece of any custom layout manager. It should say each field in the provision itself, choose positions for its fields and calculate and define its scope (size).

    Here are some articles to the knowledge base for beginners:

    The extension Manager

    Create a custom for a screen Manager (check the review here)

    As for where to add updateLayout: inside your sublayout, by checking if the sizes are already calculated (fields that have not been built before have their widths and heights 0). However, this is not a good approach at all. Better be used correctly the width and height in the sublayout as parameters, exposes the fields in the order you want, their demand for their size after that (if you call layoutChild first and then ask the child about its width and its height) and set their positions accordingly.

    It is not an easy task, unless you implement something totally obvious (for example, reimplement a VerticalFieldManager, well that even if this can easily go wrong if you're not careful).

    Here are a few examples of very good but quite complicated:

    Managers, the fields and advanced buttons

    Good luck!

    With respect to appellant layout in the layout - wrap your updateLayout() in invokeLater to the schedule until after that your sublayout finishes the job.

  • Problem with background Images and scrolling

    I had to face for a while to get background pictures are working properly. Here's what I do:

    VFM VerticalFieldManager = new VerticalFieldManager();

    Card of bitmap = Bitmap.getBitmapResource ("MyImage.jpg");

    Background bg = BackgroundFactory.createBitmapBackground (map);

    vfm.setBackground (bg);

    This works, but has entrapment. First of all, he painted only as much as you have fields too much room, so I have to add empty fields just to occupy vertical space. However, on a page with something like a listField, where the height is variable, this can lead to what the background image are starting to repeat and to allow scrolling.

    What I want to do is to block all the scrolling and have the training exactly fill the screen with no scrolling or white empty places.

    I'll just on this wrong? Would really love to help...

    Hello

    Hope this will help you.

    class LoginScreen extends MainScreen {    //Manager        private VerticalFieldManager _manager;
    
        LoginScreen() {        //Set Background image            _manager = (VerticalFieldManager)getMainManager();            Background bg = BackgroundFactory.createBitmapBackground(Bitmap.getBitmapResource("back.png"));            _manager.setBackground(bg);
    
       }}
    

    Add this manageron your screen don't add any component in this handler.

    You add fields in the Manager of the other, and adds that the Manager on the screen.

    Let me know if this solves your problem or not.

  • Random HTTPS of image not displaying and be abandoned

    This is a file that includes pictures posted on my site:

    https://polishwords.com.pl/dev/testAbort2.php

    They are provided by HTTP and they work well.

    But in this file:

    https://polishwords.com.pl/dev/testAbort.php

    But I show the same images over HTTPS not HTTP and every time I refresh the page (CTRL + F5) one, at random, pictures is not displayed and in console network red poster with information: abandoned.

    I've tried it in Chrome, Internet Explorer, and Opera, and everything is ok. Only in the latest Firefox.
    I tried with deleted complete privacy, restarted several times updated FF, disabled addons, extensions disabled and it's the same thing. Another person who also has FF me reported the same situation.

    In my server log, it looks like this:

    Bad load:

    [22/Mar / 2013:23:29:11 + 0100] "GET /images/mukonczeniestudiow.jpg HTTP/1.1" 200 6705 "-" "Mozilla/5.0 (Windows NT 6.1;". (RV:19.0) gecko/20100101 Firefox/19.0 "

    Good load:

    [22/Mar / 2013:23:30:41 + 0100] "GET /images/mukonczeniestudiow.jpg HTTP/1.1" 200 6907 "https://polishwords.com.pl/dev/testAbort.php""Mozilla/5.0 (Windows NT 6.1; (RV:19.0) gecko/20100101 Firefox/19.0 "

    What is the cause of this behavior?

    Hi tomaszs, based on your journal, your Web server is receiving and responding to the request, but the small size of the response suggests that there is some sort of glitch. Can you spot any model it?

    Unfortunately, I'm no expert on web servers and I find encrypted traffic very stimulating to see - using a debugging proxy can work around the problem that you are trying to diagnose by managing connections differently.

    It is without doubt a documentation on when Firefox give up the demand for a particular item.

  • scrolling problem large bitmap image

    City previous forums:

    Comments: comments
    scrolling problem large bitmap image
    Posted: Sep 28, 2007 14:47
     
    I want to scroll through a large bitmap image.i have read previous threads.i have added a null field before bitmap field. But the big picture scrolls, but shows an arrow down.
    Please help me.
    Thanks in advance.

    wang0043

    Messages: 12
    Join date: September 2007

    Re: image to large bitmap scrolling problem
    Posted the: October 1, 2007 03:35
     
    I have the same problem. After testing different ways using the BitmapField, I just changed paint the bitmap on the screen instead. More write the paint method and use drawbitmap to draw the bitmap to the screen. Track action wheelball to paint the bitmap can achieve the effect of view.

    Comments
    Re: image to large bitmap scrolling problem
    Posted the: 3 October 2007 18:10
     
    Can you guys post the code on how it's done?
    Thank you

    Comments: vicky
    Re: image to large bitmap scrolling problem
    Posted the: July 19, 2008 02:33
     
    Hello

    I get the same scrolling image problem. Can you please suggest some way

    thanx

    What kind of manager added the BitmapField to?  The support of the Manager there vertical or horizontal scrolling style defined?

    Here is an example of code that I use to show how to scroll through a screen image:

    Scrolling Image recipe

    The image of "test.png" is in the same folder as the source of java if you want to download that as well.

  • Management of scrolling problem

    Hello

    I have a sub VerticalFieldManager class. It shows a picture and some text and components. I show this in 2 ways either direct and via a pop-up screen. It displays directly works fine. For display on a pop-up screen, I added

    Super(VERTICAL_SCROLL |) VERTICAL_SCROLLBAR | HORIZONTAL_SCROLL | HORIZONTAL_SCROLLBAR);

    But only the vertical scroll works. Horizontal scrolling does not work. I put the picture as

    setBackground (BackgroundFactory.createBitmapBackground (picture));

    & text in object & components in sublayout. Searching the problem on this site, I found the solution "ScrollingImageRecipe" of St. Peter on http://supportforums.blackberry.com/t5/Java-Development/large-bitmap-image-scrolling-problem/m-p/214...

    Now, I view the image in object by using graphics.drawBitmap. By implementing these components added in sublayout are not visible. I guess that the painting is inspired by the componetns image and are not visible.

    How to make these visible front? Basically, to display a picure in the background with horizontal & vertical scrolling with text placed in the paint & components available under?

    Can someone help me with this problem. Any help is appreciated.

    Thank you

    Kevin wrote:

    Can give you the kind of nickname to treat navigationMovement more clearly and precisely.

    Thank you

    Something along the lines of:

    protected boolean navigationMovement(int dx, int dy, int status, int time) {
      if (dx != 0) {
        int maxScroll = getVirtualWidth() - getVisibleWidth();
        int currentScroll = getHorizontalScroll();
        currentScroll += dx * SCROLL_STEP;
        currentScroll = Math.max(0, Math.min(currentScroll, maxScroll));
        final int targetPos = currentScroll;
        UiApplication.getUiApplication().invokeLater(new Runnable() {
          public void run() {
            setHorizontalScroll(targetPos);
          }
        });
        return true;
      }
      return super.navigationMovement(dx, dy, status, time);
    }
    
  • Problem flashing with live viewing with IMAQ Image display

    Hello world

    I am writing a program for live imaging with camera Andor. I use some examples from Andor. The images are acquired in sequence and send in Image IMAQ and also graphical intensity display. There is minimal flicker issue in the graph of the intensity, but it is very bad flickering problem in display Image IMAQ. Maybe I wrong understand how to optimize vision tools. Does anyone know how to fix this? I enclose the code that I have tested. Thanks in advance.

    Best regards

    Han Yen

    HI Han,.

    You should try a right-click on the screen and choosing "snapshot". Who help me? In addition, you have a while loop nested in a while loop and the Interior more than while loop I see you have a Subvi I have not (GetMostRecentImage16) according to what is in this VI, this could slow down things - especially since the chart and display have to wait for the most secret while loop at the end of execution before the update.

    You can remove the inside while loop?

  • use of display and IMAQ image memory

    Hello

    I wonder how much memory is used when updating from imaq image display.

    I need to display images (512 x 512 size) acquired by a camera in real time. But I don't necessarily need show each of them so that can save me some memory. The camera runs at 50 fps and I can live with display rate 5 frames per second.

    Right now my image display is updated from the buffer (updated at 50 fps) continuous (Snapshot mode off). I guess I have 3 options:

    1 use the lifestyle snapshot and say explicitly on the screen to update. Whenever the display is refreshed, a copy of the image is created. But I guess that the previous copy is destroyed at the next update. If this method costs an extra copy of the image in memory.

    2. create an extra copy of the image that is updated only at 5 fps and connect it to the display of the image (Snapshot mode off). I think this is equivalent to method 1, with respect to the use of the memory.

    3. in the State. No additional copies of the image is stored. But the display is updated at 50 fps.

    Which is more expensive, update the display 10 times faster or holding an extra image even copy of the memory size?

    Thank you!

    It is not really a memory problem: you have an indicator to display images. Display an image requires additional resources, but there is no continuous memory allocation! Once the resources are allocated, the use of the memory of your application will remain stable. (Otherwise, something goes wrong and need to be identified and fixed.)

Maybe you are looking for

  • where can I report spam?

    Where can I report spam?

  • Version changed 28 download reading how is managed?

    In our environment of the room, staff prefer to have MP3s from various sources to download open directly in the window of the program from the outside (here Goldwave is the favorite program). However, with newer versions (28 and 29 more precisely) th

  • Can't get into BIOS on Satellite A100

    Dear Sirs, Although no one set a BIOS password on my Satellite a100 moms (bought new) it wouldn't let me enter.Is there a standard on the bios card? Ive already done an BIOS update. Maybe there's something went wrong.Is it possible to reset the PASS

  • Need a list of compatible motherboards for Satellite P205-S7476

    My laptop:P205-s7476.part No. pspb3u-02t00LSeries No. 97197588 k MoBo k000056710 wk737K I'm looking for a list of compatible motherboards. K000051440 will fit? Thank you.

  • Pavilion p7 - 1227c: SSD install problems

    I have a Pavilion p7 - 1227c. Only the keyboard and mouse and connected monitor. I installed a new 240 GB Intel SSD Kit.  I released the original disc of 2 TB and used the SATA and power for the SSD connectors. I restarted and put the 1st recovery of