setScrollPosition (int position) does not work

Hi all!!!

I have some problems loading MyTextField with text.

In the onDisplay() method, I use setScrollPosition (4000), but it doesn't work if I call Dialog.alert ("message"), I do not use dialogue before - it sets the scroll position on two screens 600px that's all, please can someone tell me what to do to make it work?

This is the Cod:

class MyTextField extends form {}

protected RichTextField textField;
VerticalFieldManager Manager protected;

public MyTextField {}

initUi();

}

public void initUi() {}

Manager = new VerticalFieldManager (VerticalFieldManager.VERTICAL_SCROLL
| VerticalFieldManager.VERTICAL_SCROLLBAR);

String text = "text here can be very long - more than a dozen screens to scroll with default font size";

textField = new RichTextField (text, Field.NON_FOCUSABLE);

Manager.Add (TextField);

Add (Manager);

}

protected void onDisplay() {}

Dialog.Alert ("message");

textField.getManager.setScrollPosition (4000);

}

}

Thanks in advance!

Thank you very much!!!

I already tried this - but it also doesn't work,

now, I solved this problem by using the timer

protected void onDisplay() {}
Timer = new Timer();
long = 400;
Timer.Schedule (new RemindTask(), time);

}

class RemindTask extends TimerTask {}
public void run() {}
MyTextField.getManager () .setVerticalScroll (scrollPosition);
Timer.Cancel (); Complete the timer thread
}

}

Tags: BlackBerry Developers

Similar Questions

  • Div positioning does not work in Firefox w ApEx 4.0.1

    I have a page that has been developed with ApEx 3.2. It shows a dynamically generated report in which there are several elements of apex_item.text. Each element becomes a unique ID by concatenating a name with the row ID. Each line has number (SKU) of information. When the text qty item gets javascript focus causes the item availability div to appear just below the qty selected text element.

    We write a similar application of ApEx 4.0.1. When I run the page that it works as expected. When I run it in Firefox (3.6) div availability is displayed in the same location, left and top, regardless of how much of the field is selected.

    Here's the javascript code:
      function showAvailability( pThis ) {
        var l_ndx = pThis.id.substring(4);
        var gAvail = new htmldb_Get(null,$v('pFlowId'),
                                  'APPLICATION_PROCESS=PQ_GET_AVAILABILITY', 0);
        gAvail.addParam('x01', $v('item_nbr_' + l_ndx));
        gReturn = gAvail.get();
    
        var locateThisTop = 42;
        var locateThisLft = -48;
        var node = pThis;
    
        while( node != null ) {
          locateThisTop += node.offsetTop;
          locateThisLft += node.offsetLeft;
          node = node.offsetParent;
        }
        $s('availability', gReturn);
        $x('availability').style.top = locateThisTop;
        $x('availability').style.left = locateThisLft;
        $x('availability').style.display = 'block';
      } /* end function showAvailability */
    Summary: It works on Firefox 3.2 apex. It works in ApEx 4.0.1 on I.E. It does NOT work in the ApEx 4.0.1 on Firefox.

    No idea why? More importantly, any ideas how to fix?

    Thank you
    Gregory

    CSS dimensions must include a unit of length. Prior to version 4.0, built-in themes APEX were designed to render in quirks mode, accepting any old HTML, CSS and JS tag soup. The new APEX 4.0 themes are designed to operate in standard mode, in which will be Firefox - correctly - ignore an invalid style rule. (In this case, it's IE that is non-compliant.)

    This new application uses a new theme of APEX 4.0? If so, try:

    $x('availability').style.top = locateThisTop + 'px';
    $x('availability').style.left = locateThisLft + 'px';
    
  • Stick to the original Position does not work as expected

    Experiencing a bug "Stick to the initial Position": the copied sequence is stuck slightly forward with regard to the point of law

    What are the LPX and OS X versions?

  • When I want to install express inte intaler then he said that he failefk to install it. Why and my sound system does not work.

    My sound system does not work. my sound card on the motherboard is damaged then I bought a new and it worked fine then when I reinstalled xp wasn't working the audio device. What can I do now?

    Hello

    ·         You get an error code?

    ·         What is the brand and model of the computer?

    ·         What is the brand and model of the sound card?

    ·         Using Intel motherboard?

    I suggest you follow the troubleshooting steps form the article and check if it helps.

    No sound in Windows

    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows

    You can also check this link for Intel Express installer fails to start and check if it helps.

    http://www.Intel.com/support/motherboards/desktop/sb/CS-014565.htm

  • Service Web REST-output parameter does not work in the Manager POSITION

    I created a RESTful Web Service in Oracle Apex, using a POST method as a 'Manager'   I have installation 11 input parameters which all work fine, this is my setting an output that does not return successfully.

    Here are details on the output parameter

    Name: returns

    Name of the bind Variable: : return

    Access method: OUTPUT

    Source type: response

    Parameter type: String

    The actual source is a call to a pl/sql package that returns a value that I set: Returns equal to (for example: Returns: = v_result).   I tried this with header Type of Source and still the same result, "no exit".

    I see APEX calls wwv_flow_api.create_restful_param to generate the (import) settings, is there documentation on this procedure?

    How can I get this output parameter to return something to the answer?

    The application accepts a load of Json.

    Any help greatly appreciated

    Thank you

    James

    Solved my problem: feedback does not need to go back

    Does not work

    Name: returns

    Name of the bind Variable: : return

    Access method: OUTPUT

    Source type: response

    Parameter type: String

    Works

    Name: returns

    Name of the bind Variable: returns

    Access method: OUTPUT

    Source type: response

    Parameter type: String

  • update 10.9.3 Mavericks and now scrolling does not work in Firefox.

    I've updated yesterday, and now the wheel on my mouse (optical mouse Belkin) does not work in Firefox. It works everywhere else, but not in Firefox.

    Can scroll you with the keyboard?

    On Mac, scroll bars may be hidden and are showing them when you scroll down the page, so you can see the current scroll position.
    The idea is that a Tablet is used that does not need to be visible and therefore more screen real estate for the navigation area, scroll bars.
    You can make scroll bars always appear:

    • System Preferences > General > display the scroll bar > choose "always."

    Note that on Mac you can turn on or off the mode full screen with command + SHIFT + F.

  • Troubleshooting Guide: Audio does not work after a Certain period of time

    Hi all

    Thank you for choosing the HP Forums!

    If your sound recently stopped working on Windows 8.x or Windows Server 2012 and you suspect an update of Windows is involved, then look like! This is the troubleshooting guide that will explain how to solve the problem!

    Explanation:

    Currently, there is a Windows update that may cause the sound on your computer to stop working. The update is KB2962407, and it is now an "Important" update This means that it will be installed by Windows Update unless hide you it.

    This thread also covers generic sound troubleshooting which can solve the problems of "no sound".

    Before the update itself, since an update of Windows cannot be the culprit, there are a few troubleshooting can be done.

    A round of troubleshooting:

    1. run the Audio Troubleshooting in Windows 8 may solve the problem. It does not contain the possibility of eliminating any parameter that affects sound. Here are some steps on how to perform this troubleshooting:

    (a) hold down the key "Windows" and "R" and type "Troubleshooting" and then press ENTER.

    (b) a window will open. On the left, click on "Show all", then "Audio playback".

    (c) click on 'Advanced' and run it as an administrator. Then click on 'Next' to complete the process.

    2 try to create a new user account. The changes forced by the update that is likely to affect only a single user. This HP document shows you how to create a new user in the section "creating a new account in Windows 8": users and connections (Windows 8) account management

    3. try a pair of headphones or external speakers. This is set by the whole issue if the sound does not work via an output of second or third device.

    4. an alternative is to uninstall the driver manually and then force to be installed again:

    (a) open the Device Manager and go to the section "audio, video controller and game."

    (b) make a right click on your audio driver and select "Uninstall".

    (c) restart the computer. This will force the material to write a new driver at startup.

    5. Finally, to ensure that the remaining steps that you have not tried this document are tempted: no sound from speakers (Windows 8)

    New inclusions:

    Deactivating and activating the audio driver has been tested with success results enough for me to post here. Here are the instructions to do this:

    (a) open the Device Manager and go to the section "audio, video controller and game."

    (b) make a right click on your audio driver and select "disable."

    (c) wait a minute, then right-click on it and select 'enable '.

    Also, the restoration of the system is also a valid troubleshooting step. This will return the computer to a point before the update or an external source of the issue has occurred. Here is a document on how to perform a system restore: System Restore

    If you want something strong, an update of Windows completely refreshes Windows 8, without affecting the files: refresh your PC to solve problems (Windows 8)

    Also, this is a sound of Windows troubleshooting tutorial. Just out of curiosity, I've recreated the problem on a Windows 8 and went through this tutorial. He has been able to solve the problem: no sound in Windows

    *Everything in italics is currently untested, but will be tested as soon as possible. I believe that these steps will help:

    In the search bar, type "services.msc" and press ENTER.

    Hold down the 'Windows' and 'R '. Type "services.msc" and press ENTER. Look for the following services:

    -Audio service

    -Windows audio

    -Windows Audio endpoint Builder

    I want you right click on each of these services and select "Stop". When they all stopped, right-click on each other again and select 'start '. So, make sure that the status of each service is "started" and their startup type is "Automatic".

    Troubleshooting of the update:

    At this point, unless you want to reinstall the operating system, the only other option is to tackle the update, KB2962407. Please note that the following troubleshooting is ONLY a workaround, for now and should be done only if the computer has installed this update.

    First of all, you can try the hotfix package content in this document from Microsoft, specifically at the KB2962407 address: RT of Windows, Windows 8 and Windows Server 2012 cumulative hotfix: June 2014

    If that doesn't help, then uninstall the update of Windows and then hide it, are the only way to eliminate the question if she caused by this update. Here is the procedure to uninstall the update:

    1. go in Control Panel, then click on "programs and features".

    2. click on "view installed updates". Look for the update with ID KB2962407.

    3. right click on the update and select "Uninstall". Restart the computer.

    Then, here is the procedure in order to hide the update:

    1. go in Control Panel, then click on "Windows Updates".

    2. click on ' Check for Updates '. When the process is complete, is expected to find important updates available. By clicking on the message will open a window where is the important updates.

    3. right click on the KB2962407 update and select "Hide update". This will prevent the installation update next time that Windows updates are installed.

    Conclusion:

    At the end of this guide, you will have the sound works again (assuming that the cause was the update of Windows, or the less focused on the software). Please let me know if you have any questions or concerns. Thank you!

    Mario

    I worked on behalf of HP.

    @Charlton26 ,

    As @vhawk1 recommended, please give my long post suddenly. You should have a positive resolution when you are finished. These steps are tested and solve the problem

    And @vhawk1 , thanks for getting the word

    Mario

  • On Qosmio G20 DVD player does not work

    On my laptop dvd player does not work perfectly.
    I can watch DVDs and CDs, but I can't burn CDs or DVDs at all.

    This laptop is a former view model and think that when I bought the store I bought it since deleted most of the information

    Help, please

    Thank you

    Hello

    There are two possible reasons why you are not able to copy anything to the CD or DVD.

    First, it may be possible that the drives used are not entirely compatible.
    In such cases, it s always advisable to test different CD and DVD from different manufacturers.

    Secondly, the issue could be related to a defective laser lens; in many cases, this can happen because of a physical constraint. If the laser lens can not calibrate in a good position, then the player will not be able to handle the inserted discs.
    This could be the worst case, because this issue is not repairable. Just a STRANGE replacement could help.

  • M40-265 - 2 of 3 USB ports does not work

    Hi all

    Since yesterday, I have my Toshiba Satellite M40-265.

    My problem is 2/3 ports USB does not work.
    I've tried different USB devices such as memory stick, mouse usb and usb printer plugin.
    Just plug the device into the left USB port, if they will be recognised by windows xp home.

    Any ideas what's wrong with my laptop?

    CU,

    GG

    Hi Gerold,

    It looks like a hardware problem with your USB port. Visually check the ports that do not work and you should see a central plastic ankle against which should be four strips of copper fitting. Make sure that none of the tapes is twisted or damaged, it is quite common for one or several of them have been accidentally bent out of position or ankle Central plastic must be broken.

    Kind regards

  • Satellite L50-A013 - touchpad does not work

    Hi all

    I've had my L50-A013 Satellite for about 7 months now.

    In the last month or so I started to have problems with the touchpad, freezing and does not not my contact.
    This lasted a few minutes at a time, then came the back of its own accord, almost like a very long latency period.
    This morning, however, I turned on my laptop and the touchpad does not work.

    Device Manager does not display a mouse or pointing device at all until I attach a mouse USB.
    By pressing the key that normally activates / deactivates the touchpad does not work - nothing changes and the light does not turn on in both positions.

    I tried reinstalling the drivers without result, and windows is no update that might help (or any recently that might have caused the problem).

    If anyone has any other ideas for what I can try, it would be amazing.
    The laptop is under warranty so I can hopefully get it fixed, but if possible I would really do not have to go without a computer until it's settled.

    Thank you all for your time,
    -Sase

    Hi Sase

    It is not easy to say what the problem is, but I can imagine that there is hardware problem. Perhaps touchpad loses the connection to the motherboard. I mean if this piece of hardware is not detected I can imagine this scenario.

    Of course best test you can do now is to reinstall OS and test functionality with the factory settings, but will delete your actual configuration of OS and software pre-installed.

    If this kind of test is possible do. If not, I think you must contact the nearest Toshiba service provider and ask for help. They have special diagnostic tools and they can check it for you.

  • Tecra A4: Display backlight does not work

    Hi all

    Thank you for taking the time to read this. I came across a dilemma. My sister laptop screen broke (baby) and it was far from always being in warranty and we had not assured him. So I bought a new screen for it and it mounted fine. When I turn on the laptop, I can hardly do anything on the screen as if the backlight does not work.

    I see that it is there, it's just very very dark. I thought this would be a problem with the inverter. So I bought a new one of those too, but alas, it still does not. I can do all things beautiful to display on an external monitor via the VGA port.

    Someone at - it ideas?

    Thank you once again

    Danh

    Hello

    I understand you want to save money, but especially help the technician is most recommended as repair by yourself.
    In any case, as mentioned, you should be sure that the cable has been connected in the right way.
    You must connect the LCD/FL cable to connector LCD/FLand connect the cable to connector HV HT. Place the module LCD, the FL inverter board in the correct position.

    Good luck!

  • Satellite A500-17 x - wifi does not work - not found in Device Manager

    Hi people,

    I need help please.

    My wireless adapter does not work.
    It worked perfectly until I connected to a wired connection in a hotel I was staying in and since then I can not connect to my wireless router.

    I tried restoring the tosystem several times to old dates, but it has not solved the problem. When I restart the computer laptop and go into devices and printers, I thought that the computer needs to be troubleshooted.

    The program runs and try to install the driver for the Wlan but returns with errors. Namely, windows could not load the driver or can verify the digital signature.

    There is also no icon in the network for lan wlan connections only. When I use the radar in connectivity doctor tells me that the WiFi network is disabled but I can't understand how to activate it.

    When I start in safe mode and go to Device Manager I see the wireless network adapter, but when I try to install the driver I leave safe mode and restart. I did and then the WiFi network is displayed in the Device Manager but when I try to load the driver, I thought that the driver is updated and then the adapter disappears from the Device Manager.

    I'm so frustrated at this point and I'm very close to a full erase and start over.

    I also tried to reload and load the default configuration settings in the installation program, but didn't make any difference.

    My laptop is a Satellite A500-17 x with windows 7 64 bit.
    The WiFi network is Realtek RTL8192E Wireless Lan 802.11 PCI - ENIC

    Hello

    Go to BIOS (press F2) and set it to default settings.
    Save the changes and restart the device.
    Then try to reinstall the WLan driver again.

    If that does not help, download the most recent and updated BIOS to BIOS first day.
    Then, restart the device and try reinstalling the Wlan driver.

    Last but not least you could test the WLan feature on laptop running with factory settings current (after using the Toshiba Recovery)

    PS: in order to use the WiFi network you must use the FN + F8 key combination and must turn on the WLan (in front of the laptop) switch to position.

  • Satellite A100-499 - function for the WiFi button does not work

    Hello, I have a Toshiba Satellite A100 - 499 PSAA9E.

    I formatted my laptop and installed XP with SP3. I downloaded and installed the drivers (in the right order) for this OS of the toshiba - Europe.com and everything is going well except Fn + F8. It is assumed that this combination has toggle Wifi & Bluetooth. When I switch side 'off' position and I press the keys, appears a message saying that I should switch to position 'on' but when I switch lateral position 'on' and I press Fn + F8 it does nothing.

    If I want to disable the wi - fi I have to do it with other methods: the function key does not work correctly.

    Any clue?
    Thanks for the advice (and sorry for my English).

    When the WLAN switch is on orange LED is also on?
    You can scan area available networks?
    Have you tried to use the WLAN without using FN + F8?

  • Satellite L50-B-211 - Touchpad does not work

    Hi I have a question

    We just bought a Satellite L50-B-211, but the touchpad is not working properly.
    Move the pointer autour is no problem, but the buttons do not work.

    Using the buttons does nothing, left or right clicking has no effect?
    If I want to get the properties of a file right-clicking does not work?
    (two fingers press work)

    The hardware is correctly installed, there is no problem in the configuration of the device.

    Do I have to return the device (before installing our software / config the device to our needs)
    or is this a software bug?

    According to specification for laptop, your laptop was supplied with Win8.1 pre-installed so that all the necessary drivers are installed and all hardware should work fine.

    Try please check all the touchpad settings and check if changing the settings has positive effect.
    What you can try to do is to reinstall the original recovery image and test once more with the factory settings. If the result will be the same, I recommend you to contact your dealer as soon as possible and explain the situation. Ask if you can get the new machine.

  • Communication satellite U500 wifi switch control does not work

    Hello

    I have problem after update of the operating system from Vista 64 bit to win7 64-bit. The problem is in the wireless communication switch command before notebok. When I was with win vista, it works fine, post off - wifi off and post-wifi on (without restarting). But when I updated to win7 and install all the drivers of toshiba upgrade dvd, my wifi switch works as follows:

    When I turn on notebook with wifi off button - its turned off all the time and the wifi does not work and fn + F8 (shortcut key for wifi) does not work too. I have to restart the PC with wifi switch in position-the wifi works fine and fn + F8 is able to turn on and turn off the wifi. But that put the material do not react to pass and - diode LED is always on (in case when I start the pc with position control on and in the case where is when off wifi LED is not clear and switching does not work).

    I've updated wifi realtek drivers but still it does not work. IAM verry sorry for my English. I was looking into Toshiba diagnostic tool and there is no modem device, but yes, wifi is perhaps problem here?

    Thank you very much for the reply. Tom

    Hello

    Different Satellite U500 (and other models) supports various wireless network cards, and that's why you'll find also different WLan card drivers.

    Your U500 seems to be equipped with an Intel Wlan card and here you can also download the right Intel Wlan card driver for this card:
    http://APS2.toshiba-tro.de/WLAN/

    Welcome them

Maybe you are looking for

  • HP Envy: plugged in, does not support

    I get a notification "plugged in, but not chargin. I tried to uninstall and reinstall the driver from the battery. I did the battery check and it came right back. I bought a new power cord, and I still get the same message.

  • Hey, question on my new IdeaPad z50-75 (AMD fx-7500) - cpu not no clock to the top

    Hello everyone I just got two or three days old Lenovo IdeaPad z50-75, running on the FX-7500 AMD really happy about some things Firstly, I noticed just now that my CPU runs at 1.07 Ghz, before it was always more than 2 Ghz or so that was good... but

  • Updates auto, stuck in a reboot loop

    original title: Auto updates My 4 computers at work have auto update, but he keeps asking me to restart even if I already have several times. Any advise?

  • 2nd 2 TB Seagate hard disk not detected

    Currently, my Dimension 3100 desktop, 2.8 GHz P4 w/HT, 1.0 GB of ram has a Seagate 2 TB (6 Gb/s) inside. This hard drive replaced two hard disks, size 1. TB and 500 MB. The original 2 TB drive is full, 85%, so I bought another hard drive, exactly the

  • Copy and DVD playback

    When I watch a DVD that I recorded since my camara to safety at home on a DVD recorder that I can't fast forward on HP media which is default as Microsoft media does not allow visualization.  I also want to make a copy of the DVD but I am unable to c