Problem in the scroll bars when the screen is not any field focus...

Hi all

I have a screen on which I need to display a list of items. and the list total appears at the bottom of the list. everything works fine if the lily a few number of lines. but as soon as the number of rows and Lily exceeds the length of the screen, there is the problem. I don't see the total at the bottom because I can't scroll the list. Here is the code in my class. in the class list, I use a CustomGridManager, which shows data in a table (I downloaded it). I made a few changes in the present. the code for this handler is also attached. Please tell me what changes should I make, so that the screen can be the object of a scroll. (Please go through the code)...

SerializableAttribute public class MyClass extends {screen

public MyClass (dataList DataList []) {}

Super(Manager.VERTICAL_SCROLLBAR |) Manager.VERTICAL_SCROLL);

Super();

int noOfColumns = 2;

int noOfRows = dataList.length;

int [] columnWidth = {50.50};

CustomGridManager gfmHeader = new CustomGridManager (noOfColumns, 0, columnWidth);

Adding headers

LabelField lblHdrCol1 = new LabelField ("Col1");

gfmHeader.add (lblHdrCol1);

LabelField lblHdrCol2 = new LabelField ("Col2");

gfmHeader.add (lblHdrCol2);

VerticalFieldManager vfmTitle = new VerticalFieldManager();

vfmTitle.add (new LabelField ("my class"));

vfmTitle.add (gfmHeader);

setTitle (vfmTitle);

Addition of body

GFM CustomGridManager = new CustomGridManager (noOfColumns, 0, columnWidth);

for (int i = 0; i)< noofrows;="">

LabelField lblICol1 = new LabelField (dataList [i] .getCol1 ());

GFM. Add (lblICol1);

LabelField lblICol2 = new LabelField (dataList [i] .getCol2 ());

GFM. Add (lblICol2);

Adding a footer

CustomGridManager gfmFooter = new CustomGridManager (noOfColumns, 0, columnWidth);

LabelField lblFtrTotal = new LabelField ("Total");

gfmFooter.add (lblFtrTotal);

LabelField lblFtrValue = new LabelField ("CalculatedValue");

gfmFooter.add (lblFtrValue);

Add (gfmHeader);

Add (new SeparatorField());

Add (GFM);

Add (new SeparatorField());

Add (gfmFooter);

Add (new SeparatorField());

}

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

SerializableAttribute public class CustomGridManager extends Manager {}

private int [] columnWidths;

private int [] staticColumnWidth;

private int columns;

private int allRowHeight = - 1;

/**

* Built a new CustomGridManager with the number of columns specified.

* Lines will be added to the need to display the fields.

* Fields will be added to the grid in the order they are added to this Manager.

to complete each row from left to right:

*

* For example, a Manager 2 column:

*

* [Field1] [Field2]

* [Field3] [Field4]

* [Sphere5]

*

* Column widths are equal, and the Manager will attempt to use the entire available width.

Each line height will be equal to the height of the field higher in the same row.

* Styles positional field are met, then the fields that are smaller than the row/column

* they can be set to left, right, up down, or centered. They have by default at the top left.

*

@param columns number of columns in the grid

@param style

*/

public GridFieldManager (columns int, long style) {}

Super(Manager.VERTICAL_SCROLLBAR |) Manager.VERTICAL_SCROLL);

Super (style);

This.colonnes = columns;

}

/**

*

@param columns columns number of columns in the grid

@param style

@param columnWidths width of each column in a table

*/

public GridFieldManager (columns int, long style, int [] columnWidths) {}

Super(Manager.VERTICAL_SCROLLBAR |) Manager.VERTICAL_SCROLL);

Super (style);

This.colonnes = columns;

this.staticColumnWidth = columnWidths;

}

protected boolean navigationMovement (int dx, int dy, int, int time status) {}

int focusIndex = getFieldWithFocusIndex();

While (dy > 0) {}

focusIndex += columns;

{If (focusIndex > = {getFieldCount())}

Returns false; The focus moves on this manager

}

else {}

Field f = getField (focusIndex);

If (f.isFocusable ()) {/ / only move the focus on the fields of the object of focus}

f.setFocus ();

-DY;

}

}

}

While (dy< 0)="">

focusIndex = columns;

If (focusIndex< 0)="">

Returns false;

}

else {}

Field f = getField (focusIndex);

If (f.isFocusable ()) {}

f.setFocus ();

DY ++;

}

}

}

While (dx > 0) {}

focusIndex ++;

{If (focusIndex > = {getFieldCount())}

Returns false;

}

else {}

Field f = getField (focusIndex);

If (f.isFocusable ()) {}

f.setFocus ();

-DX;

}

}

}

While (dx< 0)="">

-focusIndex;

If (focusIndex< 0)="">

Returns false;

}

else {}

Field f = getField (focusIndex);

If (f.isFocusable ()) {}

f.setFocus ();

DX ++;

}

}

}

Returns true;

}

protected void sublayout (int width, int height) {}

int y = 0;

columnWidths = new int [columns];

If (staticColumnWidth == null: staticColumnWidth.length)<= 0)="">

for (int i = 0; i)< columns;="" i++)="">

columnWidths [i] = width/columns;

}

} else {}

for (int i = 0; i)< columns;="" i++)="">

columnWidths [i] = (width * staticColumnWidth [i]) / 100;

}

}

On the field [] fields = Field [new columnWidths.length];

currentColumn int = 0;

rowHeight = 0 int;

for (int i = 0; i)< getfieldcount();="" i++)="">

fields [currentColumn] = getField (i);

layoutChild (fields [currentColumn], columnWidths [currentColumn], height-y);

If (fields [currentColumn] .getHeight () > rowHeight) {}

rowHeight = fields [currentColumn] .getHeight ();

}

currentColumn ++;

{If (currentColumn == columnWidths.length | I == {getFieldCount () - 1)}

int x = 0;

If (this.allRowHeight > = 0) {}

rowHeight = this.allRowHeight;

}

for (int c = 0; c)< currentcolumn;="" c++)="">

long fieldStyle is fields [c] .getStyle ();.

int fieldXOffset = 0;

long fieldHalign = fieldStyle & Field.FIELD_HALIGN_MASK;

If (fieldHalign == Field.FIELD_RIGHT) {}

fieldXOffset = columnWidths [c] - fields [c] .getWidth ();

}

Else if (fieldHalign == Field.FIELD_HCENTER) {}

fieldXOffset = (columnWidths [c] - fields [c] .getWidth ()) / 2;

}

int fieldYOffset = 0;

long fieldValign = fieldStyle & Field.FIELD_VALIGN_MASK;

If (fieldValign == Field.FIELD_BOTTOM) {}

fieldYOffset = rowHeight - fields [c] .getHeight ();

}

Else if (fieldValign == Field.FIELD_VCENTER) {}

fieldYOffset = (rowHeight-fields [c] .getHeight ()) / 2;

}

setPositionChild (fields [c], x + fieldXOffset, y + fieldYOffset);

x += columnWidths [c];

}

currentColumn = 0;

y += rowHeight.

}

If (y > = height) {}

break;

}

}

totalWidth int = 0;

for (int i = 0; i)< columnwidths.length;="" i++)="">

totalWidth += columnWidths [i];

}

setExtent (totalWidth, Math.min (y, height));

}

}

Do you really want now fields is active.

You can try adding a NullField after your Manager - a NullField is active, if it does not size.

Other than that, you can try the substitution of navigationMovement and Manager.setVerticalScroll to go up and down the window scrolling.  I think it should work, although I never did.  You can control the scope of the first Manager to ensure that you do not have to scroll through to the end.

Tags: BlackBerry Developers

Similar Questions

  • Status bar at the bottom of the screen will not allow

    Status bar at the bottom of the screen will not even when I try to activate with display > verified status bar

    This has happened

    Each time Firefox opened

    Hello Darryl.

    It is possible that you have a problem with some Add on Firefox which is an obstacle to the normal behavior of your Firefox. Have you tried to disable all add-ons (just to see) to see if Firefox goes back to normal?

    Whenever you have a problem with Firefox, whatever it is, you must make sure that it is not caused by one (or more) of your installed modules, whether an extension, a theme or a plugin. To do this easily and cleanly, start Firefox in safe mode (remember to select disable all add-ons when you start safe mode). If the problem goes away, you know that it's an add-on. Disable them all in normal mode and allow them one by one until you find the source of the problem. See this article for more information on troubleshooting extensions and theme and this one for plugins.

    If you need help with one of your modules, you will need to contact the author.

  • When I click and drag a window to move its location on the screen does not move properly.

    When I click and drag a window to move its location on the screen does not move properly. It leaves a "track" of windows. Whatever the problem is scroll is also affected when the page moves in waves. Why he started to do this, and if someone can offer a solution? Thank you!

    original title: "leakage" of windows

    It is a common problem with how XP displays the items on your screen. When things get a bit bogged down, you'll start to see trails of the window as you drag. Unfortunately, there is no solution, but future versions of Windows do not have this problem with a new rendering of the graphics system.

  • Satellite Pro L20-someone ' one can tell me if I have a problem with the screen?

    Hello

    I have a Pro L20 - PSL25E and I recently had problems with the screen, it was intermittently flickering/lose color and whiting almost (when the color fades white vertical lines begin to appear).
    This seemed to worsen after that I dropped it (only from about 2 feet off the ground, not a big drop).

    I thought that the sceen can go, but the performance of the laptop seems to be affected when this happens, the laptop started to run very slow (tracks mouse slowly, programs I clicked take ages to run and it freezes sometimes to stop flashing) that had me thinking that it might be a virus or performance problem.

    My screen, drivers are updated, I did a full scan with McAfee, ran a clear-up system and a Defrag.

    I was wondering if anyone knew if it seemed to be a problem with the connections of the screen and would need replacement or if it could be repaired or if it were a performance problem?

    Any help would be great thank you appreciate!
    Rebecca.

    Looks like the graphics chip has a problem, which I think is a motherboard replacement.

    You can get a quote for repair to an authorized service provider. There is a list of ASP on the Toshiba site.

  • Problem with the screen on IPAD curtain

    Hello

    I'm a bad psychic, and I have a problem with the screen curtain.

    A longitudinal of Voice Over, the screen curtain is automatically activate.

    Normally to turn it off, you must type three times with three fingers. Only on my IPAD when I type three times with three fingers is "saying that turns off or preach. Find it me impossible to disable the screen curtain when voiceover is active.

    The latest version of IOS 9.2.1 is installed.

    I reset the Ipad and nothing changes.

    Can someone help me?

    Thank you

    Is is possible that the zoom is also on your iPad? If this is the case, try to use a quadruple 3 finger tap to turn off screen curtain.

    If the zoom is not active, try:

    1. Possessing the sleep/wake and home button until the Apple logo appears or 15-20 seconds.
    2. If, you can't remove the curtain of the screen, I would advise you reset the settings of the iPad. Settings > general > reset > reset all settings. It will be his turn VoiceOver off, but then you can use iTunes to turn on VoiceOver. Voice-over should return without the curtain of the screen automatically active. IOS - Apple Support using accessibility features

    The of is it possible that zoom is also active your iPad? In this case, you must use a valve 3 quadruple finger pour disable the screen curtain.

    try if the zoom is not enabled:
    1. While holding the button market / sleep and home to ' to the Apple logo, or 15-20 seconds.
    2. If you still can't delete the screen curtain, I recommend to RESET the settings on the iPad. Settings > General > RESET > RESET all settings. This turns off VoiceOver, but you can then use iTunes to turn on VoiceOver. Back to turn voiceOver should without the curtain automatically active screen. Use IOS - Apple support accessibility features

    -AJ

  • problem on the screen

    My second generation G motorcycle has a problem on the screen: I play at some point, and it is clear that I play a point below. You can avoid I less the status bar. To resolve I have to turn on/off the screen again. Bothers a lot. It is a software problem?

    Your question looks like now. You should organize a replacement with original point of sale or repair.

    (Closing remarks)

    Mark

  • Absent from the bar spots and the screen is not good

    Original title: move screen up

    How can I move the windows screen?   Can't see my bottom toolbar?  There is about 1/2 space black above the windows open or even the windows page.   I have also two windows superimposed in facebook.   I can't click on the rear window to get rid of it.   When you play games farmville, pioneer trail, etc.  I have to click on things about 1/4 inch to the right of the object.   At the top of the screen is about 1/2 inch on top and to the left.   How do I get this all to move to adapt to the screen?

    Any help would be appreciated.

    I got the problem fixed with the double screen to upgrade my Intel HD Graphics Family.

    I use windows 7 on a HP Pavilian laptop g6.
    The only problem I have now is that I connect the laptop to my gateway FPD2275W TFT LCD Moitor as its bigger and easier to see.   Now on this gateway monitor I have space black above the scree so unless I do my toolbar on the largest background I can hardly see it.  I used for the button on the side of the monitor auto fit my picture and it runs for about 2 seconds and then it lowers the screen again.  I have the resolution set on this 1680 X 1050 monitor, which is the recommended setting.   If I liked I receive frequency out of range.
    All this began after I clicked on the key in google and went on google chrome and it updated something.
    Those that this isn't a big problem is possible to raise the screen on the monitor so that it is using the entire screen and not to leave about 1/4 to 1/2 black space at the top?
    Thank you for your help.
  • Bug: The screen does not sleep when the phone is plugged in / recharge

    The screen is not automatically timeout if the phone is connected via USB - it doesn't seem to be an option to change this.

    Looks like the screen is activated by default when loading, which means that it takes more time to load.

    Go into the settings of-> Applications-> development-> stay awake (uncheck)

  • The screen works not the Satellite Pro a

    My satellite pro, do not know what model because the sticker is worn, but I think its something like L18850
    When I was with her today, he went to sleep, when I rebooted, it just would not come on the screen.
    I tried removing the battery, now the Start button / stop for 45 seconds etc... That did not work.

    I tried to start and stop a lot of times, it starts the desktop computer, I can hear the sound of it connection, but it seems to take more time for the sound to happen now and it seems to the connection ring twice, 10 minutes apart.

    One of the moments where I turned it on it the screen worked and it has loaded the system recovery, I chose to keep my existing files and the partition, the screen worked for the half-hour it took to recover windows, then when it restarted the screen wasn't working again...

    It's very frustrating as a week ago, that the laptop was with Toshiba repair, there is no previous problems with the screen, I sent him with a cooling fan failure...

    Any help would be appreciated, I need laptop badly I work online and need to pay the rent...

    Sorry to hear that very annoying if computer laptop / computer starts to malfunction.
    From my point of view, no one here in the forum would be able to help this issue, because I think that there is something wrong with the hardware.

    You can connect the external monitor just to check if something is not visible on the 2nd screen but of course, this would not correct the problem of the laptop.

    Maybe the problem is related to the last laptop repair? You said that the laptop has been send to the service about a week ago, it's just a guess, but maybe the technician made some mistakes last time who knows that I recommend you to get in touch with the guys again

  • The screen backlight not working anymore on Satellite M

    Hello

    I have a problem with my laptop screen. The backlight of the screen does not work no matter how suspect more and I switch that turns off the screen when I close my laptop is broken.

    When I press the power button and release, a fast and light the backlight flash can be noticed.
    Does anyone have a solution for this so I can fix it myself?

    Thanks in advance, Stephan

    Hello

    I wouldn't recommend trying to fix it yourself if you n t have any experience with the laptop repair and do not be angry with me, but it seems that you don t have this experience
    In this case contact a technician and explain the problem

  • Satellite A210 1AP - the screen does not turn

    I had a problem about a month ago with my Toshiba Satellite A210-1AP, just that the screen did not turn. Was working on the computer, all the lights were on. The light that shows the HARD disc flickered, as usual, but with display always off. So I stop, and the next time I tried it was warking as usual, with display turned on, he asked if I want to start windows normally or in safe mode (as when it is restarted abnormally). Then worked normally for a few days, and then it happens again. At this point, I could not go to the service (computer was in warranty, and how do you prove that something happens sometimes if it happened there). So I continued to use it, and as the time past the problem was more often. So I decided to go to the service.

    Guy in the service, said that the problem is the motherboard, so he changed the motherboard and it took months for him to do, and then when I called he said that it still does not. And maybe he has change rooms, display, graphics card is perhaps a problem, that he has not seen the problem like this...

    So my question is do you know what could be the problem? And the second question is can I demand of him, because he went from 30 days to give me a new computer rather change all parties to this issue?

    Thank you
    Nikola

    Hi mate,

    It's really hard to say what causes this problem, but I think that notebok technicians do a good job and they will be committed to repair your laptop as soon as possible. Maybe they ordered some new parts, but they are not available at this time

    Theoretically, all that could be the reason of this problem FL inverter, LCD screen, motherboard, graphics card, cable, etc.

    So I think you should call the technicians still what is the current status.
    But I doubt that you can get a new laptop for free. If it of still under warranty, it will be repaired.

  • My iPhone 4S is sensitive to my computer and turn on siri, however the screen does not turn

    I have an iphone 4S with the newest ios (as of December 4, 2015). It was connected to a laptop (not a mac) to recharge when the laptop and the phone have both froze. The laptop has rebooted while the phone was still plugged. The laptop is fine, but the phone never turned back. It is always sensitive when I plug it into the computer laptop and if I hold down the home button.

    • So far, I have tried holding down the home button and power for about 10-15 seconds.
    • Now I tried the power button down for 10 seconds
    • I had plugged into wall to charge for about 20 minutes.

    There was no change in the screen. I think it's maybe a problem with the screen, the phone was hot to the touch when the screen stopped working. Someone was playing a game on it at the time it was plugged into the laptop. I don't have a warranty of any kind on the phone.

    Would appreciate a help,

    Kind regards

    A worried user 4S

    I pressed power and the button "home" for about 20 seconds and the phone has rebooted and is back on again once.

  • Keys (Fn + F6 and F7) function to set the brightness of the screen does not work

    original title: Fn + F6 and F7 to adjust the brightness of the screen does not

    The function Fn + F6 or F7 has suddenly stopped working. It has been fine until now, but when I press on them now, nothing happens. I use a toshiba laptop with windows xp, can provide more information if necessary

    Thank you

    Hello

    1 have had any changes made to your computer before this problem?

    2. What is the number of the model of the computer?

    3. the other function keys work as should.

    Perform the steps mentioned below and check:

    Step 1:

    Check if the problem persists when the computer is in clean boot state.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: Make sure that you put the computer to Start Normal once you have finished by referring to step 7 in the article.

    Step 2:

    I suggest you perform the steps mentioned below and check if it helps:

    http://forums.Toshiba.com/T5/keyboards-touchpads/fn-key-not-working/TD-p/253131

    (Valid for all models of Toshiba laptops)

    If the problem persists I suggest you to contact Toshiba to get help:

    http://Toshiba.com/Tai/support.jsp

    Let us know if it helps.

  • How can I get casscade toolbar at the top of the screen and not on the side

    taskbar

    How can I get casscade toolbar at the top of the screen and not on the side

    How can I get casscade toolbar at the top of the screen and not on the side

    If you mean that you want the taskbar to be placed at the top of the screen...

    Right-click on the taskbar, don't check that no check mark to 'lock the taskbar '.

    Method 1:

    Left-click in the taskbar and HOLD > drag the taskbar to the top of the screen.

    Method 2:

    Right click on the task bar > click Properties > tab taskbar at the top > in place of the taskbar on the screen, click on the pointer, and then select top > click OK when finished.

  • HP Envy 15 "touch screen power LED appears, but the fans does not and the screen does not light

    Hello!

    I'm a student in computer engineering at the University of Waterloo 1A, and I run a very serious problem with my HP Envy 15 "TouchSmart laptop computer running Windows 8.1. It is a problem that just started today, and I'd rather have a first support here before going to see the technical support Office sometimes tomorrow. It has to do with the screen and the fans where the Power LED lights in white, just as when the laptop works properly.

    (I have warranty on the laptop when it was purchased last June, except that if I find that I need to get a replacement, I'll lose all my work, I did on that since I started my semester.) It's so silly of me not to have all my work saved on a backup, because I have an external hard drive. Problem is, I've had too many problems in getting myself organized, I'm not being open-minded as I should, and worse, I'm not a balance between life and work at home.)

    Before I had my MATH 117 conference (Calculus 1 Engineering), I was in a nearby lab where my laptop was open and turned, works correctly. I've had NetBeans IDE running since I wanted to work on the second part of my current assignment of CS 137 (principles of programming). Because it was almost time for my presentation, I closed the laptop by simply moving the screen down on the keyboard, where it goes into mode 'sleep'. (Whenever I flip to the top of the screen, the laptop is supposed to return, and the sliding screen of Windows 8.1 connection will appear.)

    When I took my seat for reading, I wanted to spend a little time to work on my programming assignment. However, after the reversal of the screen to the top, instead of having the login screen appears, I encountered the problem: the power supply light is showing a white light, but I don't hear the fans between the ventilation openings on the left side of the laptop and the screen does not light. I tried to take the power for several seconds and once button at least 10 seconds, except that the power light continues to display on a white light. The Commission of the Wi - Fi light is not displayed.

    Whatever it is, I don't want to take out the battery because I have that on my last laptop, and it's from there that I couldn't turn to the former, a new market. If I leave the Envy laptop battery, it will short-circuit the connections between the battery and the computer, and so several components will FRY. For now, what I do let the laptop is to empty the load on the battery. Then, once I noticed that the power light does not project a white light, or plug in the AC adapter and try turning the laptop on the power button.

    It will take a little while for the circuit drain the load on my battery but...

    Anyway, please would you be kind enough to help me with this problem? I would really appreciate if you can give me several recommendations. Thank you!

    Hello @GregPDesWHP,

    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the Forums of HP, I would like to draw your attention to the Guide of the Forums HP first time here? Learn how to publish and more.

    I read your post on how your laptop is not on, and I'd be happy to help you in this case!

    In order to restore the features of your computer once more, I recommend you follow the steps described in this document on the computer does not (Windows 8). If the problem persists after having exhausted all the steps in this document, I recommend you contact our technical support at the 800-474-6836. If you do not live in the United States / Canada region, please click the link below to get help from your region number.

    http://WWW8.HP.com/us/en/contact-HP/WW-phone-assist.html

    I hope this helps!

    Concerning

Maybe you are looking for

  • Satellite 1800-354 is unable to load the driver when it is turned off during the night

    Hi could sombodu help me to solve this problem. My laptop wives is unable to load the driver when its been delivered overnight. It's normal runs when the drivers installed and when it was turned off for about a half hour.The laptop has windows xp sp2

  • Android market app missing?

    Someone had this problem? The widget is always on my desk a little... but it doesn't have a name or an image and it does not work. If I open the drawer with my apps, there is no sign of the market. It is also found on my AppBrain backups. Y at - it s

  • HP Probook 650 G1 - removable DVD drive?

    Hello I'm planning on buying a G1 650 Probook. I thought besides that remove the DVD player (or other it without it) and install an additional HARD drive in place. My main question is to know if the DVD drive is removable at all. In the pdf specifica

  • HP pavilion 15-n011tu: hp Pavilion 15-n011tu the back/front cover

    My laptop fell off my office accidentally. The bottom right corner my laptop broke and one side of the battery out even if it is locked. How can I change these parts. My laptop is under warranty. Will be those parts covered by warranty... ? 1. COVER

  • Examples of pictures of Windows 7 has lost?

    I had downloaded a cartoon character, some time ago, which was attached to my sample photos.  In properties, assigned to this photo, I clicked on "skin".  Now all my photos to sample, which I liked a lot, have disappeared.  Any ideas? Anna