Manager of custom scrollbar


Welcome to the forums!

If you have no active field either (your manager is for display only, not for the intervention of the user), you can replace the setVerticalScroll() navigationMovement() to scroll according to your needs.

Something like this should work:

private static final int SCROLL_STEP = 30;
...
VerticalFieldManager vfm = new VerticalFieldManager(VERTICAL_SCROLL | VERTICAL_SCROLLBAR) {
  private int totalHeight = 0;
  private int screenHeight = 0;
  private int scrollPosition = 0;

  protected void sublayout(int w, int h) {
    super.sublayout(w, h);
    totalHeight = getVirtualHeight();
    screenHeight = getVisibleHeight();
    scrollPosition = getVerticalScroll();
  }

  protected boolean navigationMovement(int dx, int dy, int status, int time) {
    if (dy != 0) {
      scrollPosition += SCROLL_STEP * dy;
      scrollPosition Math.min(totalHeight - screenHeight, scrollPosition);
      scrollPosition = Math.max(0, scrollPosition);
      setVerticalScroll(scrollPosition);
      return true;
    }
    return super.navigationMovement(dx, dy, status, time);
};

If you have focusable fields and some behaviors more sophisticated, as slowly through the non-focusable parties and change the emphasis to the focusable fields when they become visible, the task becomes much more complex (a project on its own for several weeks/months).

Tags: BlackBerry Developers

Similar Questions

  • Custom scrollbar question

    Hello

    I was wondering if it is only the textFields that you can make a custome scrollbar for?

    I found a custom scroll bar code and it works fine on textfileds, but I have a container movieclip that contains a few dynamically loaded movieclips.

    I want to be able to scroll the container if too many child clips are created.

    Also, how to you tell a container movieclip to not show the overflow of its child mc?  The current container has her child of mc overflowing through the lower limit.

    Thank you

    Shaun

    A bar scrolling (custom or otherwise) essentially just controls the position of an object with respect to its handle.

    As well as a simplified example, lets say you have a scroll bar with a handle that has a full range of movement of 300 pixels, and you have a clip that you want to move it vertically on a beach of 600 pixels.  Ideally, you want to locate the handle and the movieclip, as they are initially at a y = 0 value compared to any container where they live (life of the handle in the scroll bar).

    When you MOUSE_DOWN on the scroll bar handle, initiate you a startDrag() method on the handle and a MOUSE_MOVE event listener and handler function adjust the property y of the movieclip based on position there of the handle to the scroll bar.  The value of y movieclip at any time would be...

    -1 * 600 * handle.y / 300;

    The-1 is because the handful of scrolling down should compensate the parchment of movieclip so that it seems to be scrolling down.

    When you handle MOUSE_UP remove you the MOUSE_MOVE event listener and stopDrag().

    For that which is hidden the overflow of a movieclip, it isn't an overflow... Unlike a stage, that's all that is inside.  So to hide something outside certain areas normally a mask is used.

    You may be able to get some help by using the version of textfield, or you could search and try to find one that uses a movieclip.

  • Pages Managed by custom app

    Hi guys,.

    Anyone know if it is possible to create a custom application to manage business catalyst pages (default page). I know that the application must be in json etc etc in order to operate within British Colombia, but can you actually add, edit and delete pages outside the tab of default pages? I'm looking to create an application that allows the user to create and manage their pages in a more simple way while the current system allows, but I need the application to add pages in the directory root (www.domain.com/pagehere).

    Someone at - he saw or know if it is possible?

    Kind regards

    Nate C.

    Not sure how you can get more simple then creating page of BC.
    There are the BC page API, but you don't have any middleware, which means that you do not have access, file manager, Manager of images or the editor in British Colombia so you would have to code them yourself and you can't replicate them completely and the time to develop them is A long time.

  • Dynamic text with custom scrollbar

    Hello

    I am adopting oriented programming OBJECT Scrollbar 2 of Lee Bremelow to load external text. So far without success. This tutorial uses three classes. There is in the FLA scrollbox movieclip, within which are the dynamic text field (txtField) and the custom scroll bar (consisting of two elements: the thumb and track).
    If I copy some text in the text field, everything works. If the load external text in the text field, text is loaded but it doesn't scroll.
    Here are the codes of all the classes:

    Ok. Solved. Use this code to load the text in one place:

  • Site Studio Manager and custom properties

    Hello

    In Site Studio Manager, when I want to edit a custom BOOLEAN
    property and I check the box (so I put on 'TRUE'), the change is
    not reflected in the dynamic lists on my site in which this custom
    property is used.

    When I change this value (passing it to 'TRUE') to the Site Studio
    Designer, the change is reflected in the dynamic lists on my site.

    This problem only happens with the Boolean value when I put it
    'true '. When I try to set it to 'false', no problem and with a TEXT
    custom property, no problem also.

    Did someone never reproduces this problem?

    Thank you in advance.

    How you use the setting? Maybe it has something to do with the way that you use it in your code of dynamic list?

    You do something like that?

    or you test the value with something like strEquals... like:

    strEquals (prop, "true") or strEqualsIgnoreCase (prop, "true")

  • vReaplize dashboards operations Manager 6 Custom and XML

    Hi vmware community,.

    In the custom dashboards vCOps 5.x, we used to write supermetrics ID in the XML file. I found that supermetrics in vROps ID is very long code. Even I tried to add this long code for the XML flie but I got blue box (no data).  I'm on the right track?

    Thank you very much

    the first looks OK except you must sm_ before the id in accordance with my first post.

    see you soon

  • ESW-520-24 P has not managed the custom VIRTUAL local network traffic

    Hi all

    We recently bought a switch ESW-520-24 p to replace a CE500 end-of-life.  The facility where the switch is installed has access wireless connected to the VLAN 110 points.

    Course the ESW-520-24 p switch does not support VTP so none VLAN is to be propagated to it.  So I created 110 VLAN manually and ports assigned to him.  But the devices on ports communicate with anything.

    All ports are configured as access with 110 ports VLAN not identified.  The uplink is the g2 port which is in binding mode.

    Can someone please tell me what I can have configured wrong?

    Thank you

    -Steve

    Hi Steve,.

    If it is for UC500 installation, the default configuration on the ESW is normally perfect and the switch has to be turned on.

    Otherwise that looks like you have made the correct things.

    I guess VLAN1 is always present on the ESW switch, but excluded by access ports...

    All ports are not marked in VLAN110 except for the uplink, given that the packages of vlan tagged while waiting to switch receiver VLAN110 or unmarked packages?  (something to think quickly)

    But the result is if you are still in a stalemate, why not call the Small Business Support Center, the switch is probably still under warranty and telephone support.

    http://www.Cisco.com/en/us/support/tsd_cisco_small_business_support_center_contacts.html

    Best regards, Dave

  • Customer management - t410 - HP zero

    Ok.  I need to know which management option to use for the t410 and why there are two; no good documentation on explaining the differences.  We use both?  I've been playing with zero service HP Device Manager and customer.  Looks like Zero Client Services is a configuration all or nothing; which means that your limited to one profile and if you want to have different settings for other devices, you must create a structure of folders to MAC address.  Could turn into a nightmare when the count of device gets over 50 or more.

    I am also unable to find any documentation on explaining how the image and push with Zero customer service packages.  There is not a management console for the zero customer service see all features that are deployed and easily allows the concealment, such as Device Manager.  Is there a rule of thumb to go when deciding on what management console to use?  Also where kits of Client for the zero customer service?  I need of advice and help on the update of the images, pushing packages, customer Kits and shadowing remote with Zero Client.  HP Device Manager seems to be explicit.

    Thank you

    Knox-TN

    Hello

    Please find the steps to install packages via SMART zero client

    1. Download and save the file (for ex: file .deb/xar)
    2. In your server have. C:\Program Files (x 86) \Hewlett-Packard\HP customer smart Service\auto-update
    3. In the folder paste the file in the packages folder
    4. Go to the C:\Program Files (x 86) \Hewlett-Packard\HP customer smart Service\auto-update
    5. Index.txt open and the following lines.

    Packages /.

    For example: (packages/xxxxxxx.deb)

    1. Save the file.
    2. Restart the workstation.

    ******************************************************

    Regarding its use, I recommend using HPDM 4.6 as he got both built-in profile editor.

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

    Although I am an employee of HP, I speak for myself and not for HP. ===

    * Click on the star of CONGRATULATIONS on the left say "thank you."

  • CS5 & manage custom printing sizes.

    Whenever I try to 'manage custom sizes' when printing, Photoshop "unexpected." I use Photoshop CS5 and Epson 7800 and Mac Yosemite. I did all the updates and reinstalled the driver. Any ideas on troubleshooting?

    This looks like a problem that has been reported to Adobe. There are some official comment from Adobe in this link:

    Photoshop CS5: Can't choose the custom with Yosemite 10.10 paper size

    The crash in Photoshop only occurs when you create a custom paper size, by opting-out it. While there is a better answer, the workaround is that a couple of you said that you use: create your custom paper help to manage sizes custom dialog box print in another application. Then go back to Photoshop, open the dialog box print and choose the custom paper size.

  • HP Pavilion 15 laptop: bluetooth drivers are not not in Device Manager

    I have a HP Pavilion 15 laptop. I upgraded my windows PC 8.1 for Windows 10 (64-bit) and bluetooth in the box wireless icon is missing and I do not see the bluetooth drivers in the device manager driver custom anymore.my bluetooth introduce yourself at all, I tried unistalling all pilots under networking and their resettlement and my internet has and is working fine. Although the bluetooth does not appear in the devices I have no idea why I worked hours so he could work with anything does not. Also I do not understand how the Bluetooth support service can run withpout a good driver installed. I just want to be able to use my headset bluetooth on my laptop. I tried all the drivers, I could think too much of that and similar to laptops.

    Please help me fix this isssue!

    Hello

    Your HP Pavilion 15-p043cl has NO Bluetooth:

    1. characteristics:

    http://support.HP.com/BG-en/document/c04316163

    2. the parts list:

    http://PartSurfer.HP.com/search.aspx?SearchText=G6U06UA

    Are you sure that he intended to Bluetooth before the upgrade? Maybe a different machine.

    Kind regards.

  • The pool management and quality Service

    I've had problems with HP for over 2 years now. The first laptop, they have replaced and gave me a 8570p Elitebook that they new was not good and gave to a member of the family of the same model. I have had problems with it, run hot and fingerprints from December 2013 and open a file. Tech was released in January and replaces fan and then the numeric keypad now works sometimes. Tech said needed to order parts most never heard talk about him again. They sent an email saying they have closed the case without being fixed pc. I called and had another one opened and got a case manager very rude who called and chatted with me for two days telling me he would give me a same unit renovated, it take or leave. He told me that nobody will do better than that even though I have the extended warranty and care Pak. I told her no but my family members had problems and did not have all of the warranty and they gave him a new one as a replacement for 8770w. I continued to try to work with tech and they will call him each week saying that they have an appointment and no one does or call. Mind you, this has happened since December 2012 and it is the end of February 2014 and my pc has not yet been set. I work from my pc as a business and may not have that going. Then they tell me that we cannot replace because it was given to you in 2011 and I have documentation I received in 2012 at HP and they don't judge. They say it's still too old. It's not my fault for your product. I was treated very brutally and been put on hold and they are standing by their product. I'm not recommending them or buy from them. They have these foreign people who do not in any ways whatsoever and they call it management and customer service. HP is not going to pay my salary is their pc as a last shutsdown I did. If you can replace it for one person, then you must replace for all.

    This is NOT official HP customer service and I, like most other people on this forum do not work for HP. It is a forum for users of peer-to-peer supported for class for the HP consumer products. HP maintains no official presence on this forum and it is unlikely that HP will respond in an official capacity. Response of an employee of HP represents his own opinion and not that of HP.

    Your best course of action is to contact the official HP customer support via Contact HP - United States of America to the United States or Contact HP - worldwide in the rest of the world.

    If you have any other questions, feel free to ask.

    Please click the 'Thumbs Up' white LAURELS to show your appreciation

  • How to get the original size of pictures? Microsoft office Picture Manager

    I used household image and all my photos are made smaller, but now I want size beck to original size. How can I do?

    You can enlarge the current versions of the photos
    in the photo... Manager using custom or
    Options of percentage but there is no way to return
    to the original version in Office Picture Manager.
    Extended versions is not the same quality
    than the originals.

    Info about photo manager
    If you resize a photo with Picture Manager and
    save it when you see the dialog box saying:

    "There are changes that have not been saved"

    The original photo will be overwritten (replaced)
    with the rezized version... IOW the original will
    be unrecoverable.

    To keep two versions of the picture, resize it
    and go... File / save as... Enter a new name for
    version resized and on the left, click on the "Save" button.

    When you close the photo manager and see the
    dialog box:

    "There are changes that have not been saved"

    On the left, click the do not save"" button. Now
    have both versions.

  • Forcing scrollbars on Playbook Soft

    In the app I I do have one

    fixed height. User entered the longer div on the list, and eventually it will go beyond the bottom border. In my CSS I overflow set to auto so that when the list is longer that the div displays scroll bars. This works in all browsers, but not on the playbook. The div is userscrollable but I'm afraid that the user won't know to do to scroll from the bars do not appear. I tried a lot of different options and nothing makes the bars are displayed on the playbook. Anyone know what the trick is here?

    After that tneil advised me to abandon iScroll and use integrated native kinetic scrolling WebWorks, I had a problem with this - I had the DIVs with overflow but no visible scroll bar.

    My solution: adding a scroll bar custom for browsers WebKit as described here:

    http://CSS-tricks.com/9130-custom-scrollbars-in-WebKit/

    My specific implementation is encapsulated in this GitHub validation:

    https://github.com/yllus/lemma-for-the-BlackBerry-PlayBook/commit/cace1d022a544b8c7a9546d5044d42d489...

  • Custom ActiveTextHandler: handle #hashtag and @mention in the label

    Hi all

    Can we do a manager of custom text in the Label control?

    Example: I want to handle '#somehashtag' or '@someuser' when'm typed by the user.

    Currently, only html like 'http' if I using standart ActiveTextHandler, tag would get shares.

    Thank you.

    Yippee... I think it should work...

        Label {
                text: "www.w3schools.com;\">Visit W3Schools"
                verticalAlignment: VerticalAlignment.Center
                horizontalAlignment: HorizontalAlignment.Center
    
                activeTextHandler: ActiveTextHandler {
                    onTriggered: {
                       console.log("Seems to work fine"+event.text);
                    }
    
                }
            }
    

    I used the HTML in the text of the label...

    activeTextHandler can be used to handle the clicked event...

    Note: I havnt been to manage the click... I just checked with newspapers... If I m able to get the event.text.

    -Dishooom

  • Editing custom cropping ratios

    Hello

    In LR, there is absolutely no possibility of editing custom cropping ratios. Which is already a problem that should be fixed for a long time. Now suppose that the mechanism of accumulation managing these custom reports (5 entered max and first in first out management) is corrupted and stuck. What can you do? If you are a user without database management skills, nothing. Period.

    Curiously, these settings are not stored in the preferences file where they could be modified manually, but in the catalog, a SQLite database. If you can deal with a SQLite management tool, you will be able to solve the problem. Useful information is in the table named Adobe_variablesTable, entry named Adobe_customCropAspects.

    Maybe it's time for Adobe to make this more usable device?

    .. or add your vote here: Lightroom: ability to custom cultures name | Community customer Photoshop family

Maybe you are looking for

  • Behaviors can be used on the margins of the text?

    Motion 5 5.2.3 Final Cut Pro X (10.2.3) OS X (10.11.6) I have the text on which I want to use the behavior of the 'Link' parameter on the page layout > margins > left margin. Margins does not however seem to create keyframe or behaviors. Is there a w

  • There is no toggle for mirroring when I select Airplay.

    When I drag to the center of control and select Airplay on my iPhone 6, my Apple TV appears. I select, but the rocker for mirroring does not appear. I do not see the notice: "Airplay Mirroring allows you to send...". "etc, but there is no rocking. Au

  • Prevent others from changing the formula

    I created a Budget sheet to spread and have different contributors who will be able to add information, BUT I don't want their change of layout page or formulas etc. How can this be achieved?

  • I try to send more than 5 pictures gat, a message saying that I have only 5 attachments

    I use window live email (hotmail). Receive try to forward an email with more than 5 pictures, I get a message saying I need to delete some of the pictures because I can transmit only 5 photos (files).

  • Windows Update offers KB974479 again and again

    I use Windows 7 x 64 and since this morning Windows Update is to alert me that there new found updates. When I check updates told me it's the KB974479 update. I already tried to install the update and it ends without error, but after a few minutes, t