Advice on the display to scroll

Hi all

I have a scrolling display and 3 containers placed inside, containing 1, 2 tank and containing 3.

When I drag everything right, the other must be displayed.

and when I drag from left, previous should appear.

containers are the size of the screen.

I tried scrollToPoint() from 0, deviceWidth to the 1st container, deviceWidth, 2 * deviceWidth for the second and so forth, on their notecard event.

but it does not work... someone has ideas.

Help, please!

following my code for onTouchEvents of containers:

void Tower:{nContainerOneSwiped (bb::cascades:TouchEvent * touchEvent)}
public static float dx = 0.0;
float currentX = 0.0;
If (touchEvent-> isDown())
{
DX = touchEvent-> localX();
}
Another yew (touchEvent-> isMove())
{
currentX = (dx - (touchEvent-> localX()));
if(currentX > _dragThreshold)
{
qDebug()< "threshold="" crossed="" cont="" 1"="">
_scrollView-> scrollToPoint (0, 768, ScrollAnimation:efault);
qDebug()< "scrolled"="">
}
}
}

void Tower:{nContainerTwoSwiped (bb::cascades:TouchEvent * touchEvent)}
public static float dx = 0.0;
float currentX = 0;
If (touchEvent-> isDown())
{
DX = touchEvent-> localX();
}
Another yew (touchEvent-> isMove())
{
currentX = touchEvent-> localX() - dx;
If (currentX > 0 & currentX > _dragThreshold)
{
qDebug()< "threshold="" crossed="" left"="">
_scrollView-> scrollToPoint (0, 768, ScrollAnimation:efault);
}
ElseIf (currentX < 0="" &&="" currentx="" *="" -1=""> _dragThreshold)
{
qDebug()< "threshold="" crossed="" cont="" 2="" right"="">
_scrollView-> scrollToPoint (0, 768, ScrollAnimation:efault);
}
}
}

void Tower:{nContainerThreeSwiped (bb::cascades:TouchEvent * touchEvent)}
public static float dx = 0.0;
float currentX = 0;
If (touchEvent-> isDown())
{
DX = touchEvent-> localX();
}
Another yew (touchEvent-> isMove())
{
currentX = touchEvent-> localX() - dx;
If (currentX > 0 & currentX > _dragThreshold)
{
qDebug()< "threshold="" crossed="" left"="">
_scrollView-> scrollToPoint (0, 768, ScrollAnimation:efault);
}
ElseIf (currentX < 0="" &&="" currentx="" *="" -1=""> _dragThreshold)
{
Nothing to do.
}
}
}

Can't answer your question directly, but you can try to use a ListView instead, with these properties:

snapMode: SnapMode.LeadingEdge
flickMode: FlickMode.SingleItem

Transform your containers in a custom listItemCompent and their size so that they fit the entire screen. I think you get the same effect with much less effort.

Tags: BlackBerry Developers

Similar Questions

  • Desktop - cannot display the entire screen, scroll bar

    Cannot use the scroll up/down or see the entire screen when reading the mail/documents because that office titles show on the left.  What can I do for securities of funds do not appear when I read the emails? They take a part of my screen.

    This could be a matter of adjustment of the monitor.  They are hard to find and difficult to understand, but there should be buttons on your monitor that adjust to what is displayed.   The controls you want to make the display wider or narrower.

  • Is it possible that when the new record is inserted in a table then this empty inserted record is automatically displayed without scrolling?

    Mr President.

    Is it possible that when the new record is inserted in a table then this empty inserted record is automatically displayed without scrolling?

    Because I change the size property of the table 5 range and my new record is inserted at no 10.

    When I click the addRecord button the new parallel line does not appear, do scroll down to see it.

    I want that we don't have to scroll down.

    The line is displayed automatically.

    as shown in the photo my behavior of page.

    scrolling.png

    Concerning

    If you just need the newly created line to be visible,

    You can simply set contentDelivery = 'immediate' and displayRow = "selected".

    P.S. the blog mentioned above only.

    See you soon

    AJ

  • Cannot display web pages on explorer 8 without using the left/right scroll bar.

    I rebooted my system yesterday and now when I visit a web page on explore 8, I have to use the left/right scroll bar to view the entire page. Before I rebooted and am went full-screen page would correspond to the size. The graphic and type are larger, and I wouldn't change a thing.

    On the command bar, there is a marked entry Page.  Until it clicks.  (If you do not see this, right click on the toolbar of the tab and then click the command bar to add it to the other toolbars).  Now, go to Zoom and the size of the text and set each as required to get the page fit on the screen.  For me it works with the format as smaller text and 150% Zoom, but it may be different for you depending on the size of your screen and your graphics hardware.  If it's just a problem of zoom (and you don't need to adjust the size of the text), then there is a Zoom control on the right-hand side of the bottom bar State which also allows you to adjust the Zoom level on what meets your needs (and there are a little faster to join then the menu bar).

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Questions about the storm of scrolling

    Hey all,.

    I'm currently porting a project I wrote for Trackball BlackBerrys above storm using the API 4.7.  I'm having a lot of problems with scrolling.  In my project of trackball, that I have three screens that need to scroll and my version of Storm none of the screen are the scroll correctly.  I hope I can get some advice on what needs to be implemented on the storm to get the scrolling to work properly.

    Overview of the main issue:

    I have a screen that has 3 managers on that.  On this screen the upper and lower managers need to stay in the same position on the screen.  Middle extends from VerticalFieldManager and contains a large number of custom fields (varies depending on the field how much user generated).  Each of these fields is focusable.  The constructor for VerticalFieldManager calls:

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

    On the Trackball version just scroll with the trackball to select all of the fields that has been added to the screen.  On the storm version scroll doesn't work if you select a field that is partially hidden.  Once you use this to achieve you cannot select fields that are not on the screen to start (i.e. everything that is below the initial load of the screen).

    The functionality of typical scrolling where you just touch the screen and move your finger up and down does not at all.  If you do this it simply changes with a focus on the fields that are displayed (to access any scrolling, you must select a field that is partially off the screen or behind the Fund Manager).  I have a NullField which is active at the top and bottom of the Manager, but it still will not allow me to scroll.

    If anyone can give me advice on how to fix this I would really appreciate it... I can't seem to find any documentation that implements really shows how to properly scroll on a storm.

    Thank you in advance.  If anyone needs more information let me know.

    -Spencer

    Corrette, you set the scope to 80% of the screen.

    Virtual measurement must be set to the actual height (i.e. the total height of all the fields)

    http://www.BlackBerry.com/developers/docs/4.0.2api/NET/rim/device/API/UI/Manager.html#setVirtualExte...

  • Is there a shortcut to activate the display of the player?

    Is there a shortcut to activate the display of the player?

    See:

    • bug 1144749 - create a shortcut to the drive mode
    • bug 1160848 - add shortcuts to scroll to the next/previous paragraphs in Player Mode

    Please, do not comment in bug reports
    https://Bugzilla.Mozilla.org/page.cgi?id=etiquette.html

    You can vote for a bug to show your interest
    https://Bugzilla.Mozilla.org/page.cgi?id=voting.html

  • Changing the display of playlists

    Hello

    Since a few days, I have an update to iTunes to version 12.4.0.119. I was a bit puzzled after JF the new 'design' He could probably good for developers. but for me that's not - older versions were better for work.

    But the reason for my question is the following:

    I made a playlist (it took a lot of time, because I found no "more symbol" to create the list of reading (or folders) no more. Now, I have found a way to create the selection by scroll down and right-click in the last playlist 'nothing' - then a popup menu appears and I choose 'Create a new Playlist'.

    And it is the second biggest problem. I can't change the playlists view more. In the old version, it was shown as a menu drop-down (more often called "songs" (or other)). There I could choose the playlist display. iTunes shows my new created of playlists in "playlist" mode, but I prefer mode "songs". But after installation of the new version of this button is gone and I don't know, where I can change the playlist display.

    Help, please!

    Thank you

    Mooble

    Hi Mooble,

    To change the display on the reading list, select view in the view menu.

    To more easily create a new playlist, select the song (s), right-click and select Add to Playlist - you will see "New Playlist" at the top of the list.

    Hope this helps /Bill

  • What would cause the mouse to scroll slowly on Web pages, but normally on text documents?

    I have a strange problem. I have a Logitech M305 mouse on another machine which is too slow scrolling on Web pages. I ordered a new mouse, but today I noticed the old mouse normally scroll in text documents, even though the text document is displayed in Firefox (such as the "subject: config" page).

    Normally, a page will scroll 3 lines for each click of the mouse wheel.
    On Web pages, it changes and it takes 3 clicks of the mouse wheel to get the page to scroll.

    It is troubling to move the mouse wheel and don't have anything happen until the third click.

    So the question is, what would make the mouse wheel behave differently on the Web pages and pages of text, and how can I solve this problem?

    BTW, this is a clean install of Windows 7 64-bit. I use the same exact type of install now on another machine with a mouse Logitech M510 and normally scrolls on all pages.

    OK, a final report on this issue. Yesterday, before installing the new mouse M325, I decided to uninstall the Logitech SetPoint software. I wanted a new installation of the software for the mouse to go with the new mouse.

    To my surprise, after the set point has been uninstalled the old mouse M305 scroll normally on pages of text and Web pages. It seems that something mysterious happened in the relationship between Firefox and the original installation of set point. Firefox made some adjustments or updates of its own regarding record just as it does for modules, I saw it happen a couple of times before. /shrug

    New mouse + set works perfectly with FireFox now and the old mouse M305 + setpoint is now works well with an old laptop XP Pro, at least as long as the button pop-up gimpy holds.

    Solution, in this case: uninstall the Logitech SetPoint mouse software, and then reinstall a new copy of it.

  • The homepage do not have access to the tools of scrolling to the right of the screen is right-justified

    The home page for firefox is apparently justified to the right of the screen, and there is no access to the toll of scrolling that is normally located on the right side. Have tried to change the size of the screen, without change. Can only use the upper and down arrows to move around the page. There is also no tools scroll at the bottom, the arrows left and right, and ineffective for lateral movement.

    -> Tap ALT key or press F10 to display the Menu bar

    -> go to Menu help-> select restart with disabled modules

    Firefox closes, then it will open with Firefox comes from base. Now follow these steps:

    -> Update ALL your plugins Firefox https://www.mozilla.com/en-US/plugincheck/

    -> go to the View Menu-> Zoom -> click on Reset -> Style of Page -> select Style of base Page

    -> go to Menu view-> toolbars-> all unwanted/incompatible deselection with toolbars

    -> go to the Menu Tools-> clear recent history-> range of time: select 'ALL' -> click details (small arrow)-> location-> checkmarks on the Cookies, Cache , click clear now

    -> go to the Tools Menu-> Options-> content-> place the check on:

    Images of care 1) block popups 2) automatically) 3 turn on JavaScript

    -> go to the Tools Menu-> Options-> privacy-> history-> section Firefox will: select "Remember history"

    -> go to the Tools Menu-> Options-> advanced-> network-> Offline Storage (Cache): click on the clear now button

    -> Click OK in the Options window

    -> click on the favorite on the search bar icon-> click Manage search engines -> select all unwanted search engines and click delete -> click OK

    -> go to the Tools Menu-> Modules-> Extensions section-> REMOVE unwanted/Suspicious/Incompatible all Extensions (Add-ons)

    -> go to the Tools Menu-> Modules-> appearance section-> REMOVE unwanted/Suspicious/incompatible with all the themes (Persona)

    -> Restart Firefox

    You can activate your known & modules worthy of trust and themes later. Check and tell if its working.

  • Satellite L50 - B - 12 G - can't change the brightness of the display

    Hi people,

    For some reason that I can't find out, since yesterday I can not change the brightness on my deskop.
    It's a Satelite L50 - B - 12 G with Windows 8.1, 64 bit.

    (F2 and F3) function key does not move the scroll bar, and when I try the same thing on the control panel is like this:
    It is not simply to change the brightness

    At the same time, when I'm with an open office document or on a web page, don's work the cursor as usual... it is slower to move from one cell to another cell in Excel for example.
    The sane is to arrive with the page down key.

    Can anyone help on this? It becomes very annoying.

    Best regards
    Jose

    How did you try to increase or decrease the brightness of the screen?
    Did you press the FN key also?

    Well, as you said the F2 and F3 keys increases or decreases the brightness of the display
    The extra pressure of the FN button depends on the key mode feature which is located in:
    Office Assist-> tools & utilities-> Control Panel-> keyboard

    Permit special mode button allows you to use special features without pressing the FN key.

    That's why I recommend that you check this setting!

  • The display is very slow on the Satellite 1800 412

    I installed Windows XP Professional (do not use the Toshiba installation disc) and since then, the display is very slow refreshing when scrolling. It takes about 30 seconds to scroll one page down in Word for example. I tried to install the latest display driver but the installation block. Installing the driver in safe mode works but the computer hangs at startup and I needed to uninstall the driver. The laptop now seems to use a standard VGA driver of XP.

    Hello

    If you install the operating system from the original Microsoft CD you need drivers Toshiba. These drivers must be installed in the correct order. Is very important to install the driver from chipset to the first common modules and if they are available. Please also check what graphics card you have and install a good driver.

  • the poster of the Bookmarks window is too big (suddenly occurred with the new version). I can't figure out how to get the smaller screen. Zoom does not work on the display of the menu bookmark.

    I have the 4 version, just download and a Mac OS 10.6. w. 7.
    Display the bookmarks (when I pull to the low "bookmarks") is far too broad. I can't understand how to reduce the display size. The window is not persistent, so I can't yet get you a screenshot.
    Thank you, Sara

    It seems that there is a change in Firefox 4, where the width of the drop-down list is now determined by the length of the longest bookmark name in the displayed folder. Versions previous of Firefox would be to shorten a long name like this and add an ellipsis to indicate the name has been truncated.

    Sorry, I don't know how to change it otherwise that you advise to change the name of this long bookmark name and make it less wordy. Just scroll to the bottom of the list of bookmarks in this vast folder until see you the culprit, then right click on that bookmark and open properties and change the line of name at the top of this dialog box.

  • I can't get the page to scroll properly. It looks like its swimming pool when I go up and down the page and takes forever. How should I do?

    I had a conflict of interest in order to get rid of one of the display drivers.
    Since then, the page is a not properly scroll. I had this happen in the past and that you do not remember how I fixed it.

    This help if you disable smooth scrolling?

    Tools > Options > advanced > general: navigation: "Use smooth scrolling".

  • Satellite 1000-Z2: I need a driver for the display and the LAN

    Hello

    I reformatted my laptop S1000-Z2, and I have a real problem trying to find all the information about this model!

    Basically, I need a driver for the display and the LAN?

    Best regards

    Austin.

    What operating system do you use?
    If you use XP, you will not find the network on the site recommended driver driver!
    I can't give you advice where to find such driver because I don t know what the LAN card is installed in your oldie.

    But why you n t check yourself? Try to know what the LAN card you use and googel a bit for compatible applications ;)

  • No way to Dim the brightness of the display on the iMac to 2014

    I bought an iMac 27 inch nine in August 2014. Model no. A1419. It has been manufactured in 2013. As far as I can remember, there has never been the brightness slider in the display preferences and unction keys have never dimmed the screen. Initially, I ignored the problem but 2015 intense brightness became a real problem so I tried everything I could think of to correct it. Advice of the seller's customer support and reseller Apple has not managed to get a solution. More and more, it seems like a hardware problem or something in the Boot ROM. I am now on OSX El Capitan, which actually has no difference.

    Any suggestions please?

    I use the software "Shady"... This allows me to control brightness for as low as possible... you can try it once and check if it works...

Maybe you are looking for