Rotation of the screen with virtual keyboard.

Hey all, I am porting a no touch to work in touch devices, but the screen rotation throws me some curves that I can't find a good solution for. I have an image for the background of a screen. In the method of paint background vertical field Manager that holds everything, I check the current resolution and to draw the image appropriate for the portrait to landscape mode. This works well, as long as the virtual keyboard is hidden. I bring up the keyboard (of, say, by clicking in a text field) and the background image does not change (i.e. going from portrait to landscape leaves me with a white bar on the right side of the screen), and the fields have the same width and page layouts. Any advice?

Ah ha! Long story short, Display.getHeight () returns the height of the screen, but if the virtual keyboard is displayed, its height will not appear in the getHeight() value.  This was causing problems with my orientation detection code.

The strange display behavior was a result of me being too careful.  I put 'default' in all of my instructions switch during the original no touch development, so that when I don't add different resolutions, he displayed a screen that would be small, but grave not down.  I did not detect a known resolution and continued to display the portrait mode, but only while the keyboard was visible.

Tags: BlackBerry Developers

Similar Questions

  • Rotation of the screen with Automator and a script

    I have no knowledge whatsoever about scripts, coding or automator. I continue to read discussions about the issue, but I don't understand them. It would be a great help for me if someone please explain how to create a kind of keyboard shortcut that changed the rotation of the screen (the own macbook screen, not an external) using automator and a script on a Macbook Air running OS X El Capitan 10.11.2.

    Is this possible?

    Thank you in advance.

    One option is to use the utility command line fb - turn in Automator service and assign a keyboard shortcut. Download the GitHub source fb-rotation, compilation, following the indications on GitHub and output the binary to usr; or download a binary compiled and move to usr/local/bin.

    Create an Automator service, set the options "Service receives no entry in any application", add an action to run the Shell Script and set the options as "Shell: / bin/bash ', ' Pass entry: to stdin.  Type the command rotation fb for the desired degree of orientation of the screen such as ' / usr/local/bin/fb-rotation - d 0 - r 180 ' 180 ° on the main screen. Register the service under a name.

    Go to  > System Preferences > keyboard > shortcuts > Services. Highlight the service you created, select it, click "none" and create a shortcut using a unique combination of keys. Create separate services of Automator for the additional screen orientations. Quit the system preferences when you are finished.

    Tested with OS X 10.10.5 Yosemite and El Capitan 10.11.3

  • Is it possible to click and hold something on the screen with the keyboard?

    Original title: click and hold the function with a mouse?

    Is it possible to click and hold something on the screen with the keyboard? My mouse is dying and I can't afford a new right now, but I need to move things on the desktop and do not know how, is there maybe a shortcut for this?

    Hello

    There is no this keyboard shortcut to accomplish the task.

    For more information about keyboard shortcuts, see: keyboard shortcuts for Windows XP

    Hope the helps of information.
    Please post back and we do know.

  • Set the rotation of the screen to external monitor on Portege M400

    I would like to be able to use the screen of the mobile phone in the form of tablets, while the display to an external monitor. The problem is that when you use the laptop in its Tablet configuration (fixed and swivel screen on top) the external monitor displays the image upside down. If I rotate the screen image output, so I use the Tablet upside which is impossible when it is docked. Is it all the same independently set the rotation of the screen of the Tablet and the external screen?
    If someone could help me with this I would be grateful as at this moment whether or not I have to remove the Tablet and use backwards the external monitor.

    I use Windows tablet PC on a Portege M400 and a monitor external 22 "LCD

    Thank you.

    Before we start the discussion I just have one question: do you want to use extended desktop or office cloned on external monitor?

  • I click on options on the screen with General, research, etc. I can't click anything. I reinstalled it. I can't react

    When I click on the screen with the general options, the search, privacy etc.. I can't click anything. The page will just die. I reinstalled it. I can't respond to anything

    Start Firefox in Safe Mode to check if one of the extensions (Firefox, Tools/menu key > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox, Tools/menu key > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • I worked on a large document for several years and all of a sudden I can't scroll to the bottom of the screen with my two fingers on the touchpad, well that I have no problem scrolling to the bottom of this page to search for similar issues.

    I worked on a large document for several years and all of a sudden I can't scroll to the bottom of the screen with my two fingers on the touchpad, well that I have no problem scrolling to the bottom of this page to search for similar issues. I can navigate only to go up and down with the arrow keys.

    What version of Pages is running on your MBP?

    What version of Mac OS X is running on your MBP?

    The MBP is not iOS running.

  • If I click on an email link in a web page instead of an empty message is opened I still get noise toward the top of the screen with a log-in for googlemail. I don't have and won't have a googlemail account. I just want to be able to send e-mail messages b

    If I click on an email link in a web page instead of an empty message is opened I still get noise toward the top of the screen with a log-in for googlemail. I don't have and won't have a googlemail account. I just want to be able to send e-mail messages by using Outlook.

    See this article.

    http://support.Mozilla.com/en-us/KB/changing+the+e-mail+program+used+by+Firefox

  • Cannot adjust the brightness of the screen with the keys Fn on new L540 (8.1 x 64)

    Hello everyone. I just bought a new L540 with 8.1 of Windows x 64 on it and have met a problem that I see is apparently common. While my other Fn keys work as expected, I can't adjust the brightness of the screen with them. By pressing the buttons just does nothing and the laptop is in running at full brightness at any time, even on the battery. I installed the latest driver for managing power and from what I can tell, there is no version of the management software supply for something newer than Windows 7. I also installed the latest driver for the shortcut key (in fact, I installed all the latest drivers for this machine.) I read in another thread that this may be caused by the latest driver from Intel's HD graphics card but in fact, I can not install even this driver (said my system is not supported) so I always use the latest version of the driver Lenovo provided.

    Can someone please help with this? I want to be able to quickly adjust the brightness of the screen when it is on battery, but I can't do it right now. Thank you!

    I have the same problem with my L540. It started with the BIOS update to version 1.65. Because I have not found a solution, I went back to BIOS version 1.64, where all the brightness options are there and are working properly.

    You can download older versions. When on the page with the new drivers (http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS037285) go to BIOS driver 1.65, then choose "learn more." At the end of the next page, you will see all the old versions.

    You can install the version 1.64, you should choose the Option "Secure RollBack prévention" in the BIOS: restart the computer. When you see the option "to interrupt normal startup, press enter", press ENTER. Once more, press ENTER. Press F1 to enter BIOS Setup utility. Click on 'Security'-> then "update Bios UEFI Option'-> then"set RollBack prevention. " Change this option to "disabled". Press F10 to save the configuration changes and exit.

    After you restart Windows, you can install BIOS 1.64.

    Another possibility is to wait for the next version of BIOS...

  • After installing Windows Vista, upgrades of office is now only 2 thirds of the screen, with one third black.

    Original title: April 16 to restart my computer after installing Windows Vista upgrades, my office is now only 2 thirds of the screen, with the third other black

    The whole office is there, but it is located in the Center, if the screen, with black bands at the top and bottom. By clicking full screen on the top right has no effect.

    Hi Jeremy,.

    Thanks a lot for your help. You're right, I should have said no upgrades and updates.
    There were a total of 10 updates:
    4 a security updates for Vista,
    1 security update for the Microsoft 2010 information access path,
    1 day of cumulative security for IE9.
    1 windows Live essential 2011
    1 definition update Windows Defender (KB915597)
    1 "" for Office 2010 "
    1 April 2013 malware tool
    I uninstalled Windows Live Essentials. I felt that I should not uninstall the updates of security, and the Defender update can not be uninstalled. It made no difference.
    I also checked the graphics card and told me that I had the latest version of the software.
    Then I checked the configuration of the monitor and graphics card configuration and found I could set the configuration to full frame. I did it and now all is well again.
    How and why the full frame disappeared April 16 remains a mystery.
    Thank you very much for your information without your help I would have been unable to delve deeply into the system. I learned a lot.
  • I rebooted my machine yesterday and now when it comes to the screen with the scroll bar it restarts in loop. Impossible to enter Safe Mode (arrives at crcdisk.sys and while it recharges) or normal startup mode.

    I restarted my machine yesterday and now when it comes to the screen with scrolling bar (think Night Rider), it restarts in loop.  Impossible to enter Safe Mode (arrives at crcdisk.sys and while it recharges) or normal startup mode.  Startup Repair is unable to repair.  She argues that the onus of a BadPatch.

    Startup Repair shows the following:

    Problem event name: StartupRepairV2
    Signature of the problem 01: external Media
    Signature of the problem 02: 6.0.6000.16386.6.0.6001.18000
    03:6 problem signature
    Signature of the 04:262148 problem
    Signature of the problem 05: BadPatch
    Signature of the 06 problem: BadPatch
    Signature of the problem 07:0
    Signature of issue 08: 1
    Signature of the problem 09: SystemRestore
    Signature of the problem 10:0
    OS version: 6.0.6000.2.0.0.256.1
    Locale ID: 1033

    Hello

    I hope you made redundant data backups as I suspect that the drive has failed. If a PC, you must
    remove all power and remove and reinstall all the cables (at both ends where possible), memory and cards. Do
    not tighten, effectively remove and replace them with care.

    Click here for the manufacturer of your hard drive and launch their diagnosis on your drive.

    By manufacturer diagnostic utilities
    http://www.techsupportforum.com/hardware-support/hard-drive-support/302602-hard-drive-diagnostic-utilities.html
    SpeedFan
    http://www.almico.com/sfdownload.php

    HD Tune
    http://www.hdtune.com/

    ----------------------------------------------

    If necessary:

    You can try an In-Place Upgrade (hopefully save programs and data) or a repair installation (if all goes well
    saves the data, and you need to reinstall the programs). Be sure to do a good backup or three.

    You can use another DVD that are not protected but you will need to copy you have the product key.

    On-site upgrade
    http://vistasupport.MVPs.org/repair_a_vista_installation_using_the_upgrade_option_of_the_vista_dvd.htm

    If nothing works, you can make a repair facility that must save the data but you will need to
    Reinstall the programs. This also requires correct Vista disks especially for OEM versions. You will be
    need to know your product Code.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    How to perform a repair for Vista Installation
    http://www.Vistax64.com/tutorials/88236-repair-install-Vista.html

    No new chances.
    Rob - bicycle - Mark Twain said it is good.

  • I recently accidentally dropped my laptop and now whenever I try to turn it on, it gets frozen on the screen with the logo of "starting windows."

    * Original title: start Windows 7

    I recently accidentally dropped my laptop and now whenever I try to turn it on, it gets frozen on the screen with the logo of "starting windows." When it disappears, the screen just goes black and nothing else happens. Logins appear not at all. I also tried to run in safe mode and safe mode with networking mode, but it has not loaded yet even to the windows splash screen. I ran Startup Repair 3 times now and he has not yet fixed my problem. I was wondering if it might have been damaged in the fall.

    Probably yes it is damaged in the case otherwise he would start.

  • Blocking rotation of the screen - 4.6.1 SDK

    Follow the latest code I did:

    What's up guys!
    I'm trying to run an application on curve 8520 and tourch 9800, so I use sdk4.6.1.
    I would block the rotation of the screen on the torch, but I know that the 4.6 SDK is no such API. I tried to override the paint method and invalidate sublayout, trying to put the paintSuspend as true.
    I need, in addition to block rotation, ask the user to return to the correct orientation (portrait), but dialogue does not work.

    My last code below:

    public final class MyScreen extends MainScreen {
     ...
     public void invalidate() {
            String deviceName = DeviceInfo.getDeviceName();
            int width = Display.getWidth();
            int height = Display.getHeight();
    
            System.out.println("diogo ------------display: " + width + " " + height + " name" + deviceName);
    
            if (width == 480 && height == 360 && deviceName.equalsIgnoreCase("9800")) {
    
                synchronized (UiApplication.getEventLock()) {
    
                    loadingDialog.setEscapeEnabled(false);
                    loadingDialog.doModal();
    
                    UiApplication.getUiApplication().suspendPainting(true);
                    System.out.println(UiApplication.getUiApplication().isPaintingSuspended());
    
                    return;
    
                }
            } else {
                if (UiApplication.getUiApplication().isPaintingSuspended())
                    UiApplication.getUiApplication().suspendPainting(false);
                loadingDialog.close();
            }
            super.invalidate();
        }
    }
    

    Might be easier to upgrade your 8520 for OS 5.0!

    I looked at your code seriously not, but invalid do seems to be a dangerous place to do so.

    I'd do it in sublayout.  sublayout is called when the rotation is detected.

    If you detect a rotation, then to sublayout, create an invokeLater (you will not be able to do this kind of thing in sublayout, you must start a new process).  The invokeLater push a new screen of your production.  In sublayout of the screen, check the orientation by using the width and height.  When that detects the correct orientation. have pop himself (in another invokeLater.  I think it should work and hooks in a defined place.

    Ask if this is not clear.

  • Need help to open two images with the same file with different exposures on the screen at the same time in the Photoshop creative cloud (in previous versions we could open two images of the same nef (raw) file and then combine them on the screen with the

    Need help to open two images with the same file with different exposures on the screen at the same time in the Photoshop creative cloud (in previous versions we could open two images of the same nef (raw) file and then combine them on the screen with the move tool. They have become a composite of two layers which could be developed further with the mask tool.

    Hello

    Please go to the preferences > workspace and uncheck the option 'open the document in the tabs '.

    Now you can click on file and choose file > open and open the two images in two different windows which can be arranged side by side.

    Thank you

  • Uncheck the box "Fill the screen with a page at a time"

    Is it possible to put a javascript to turn off the preference "Fill the screen with one page at a time" when entering mode full screen? So that it replaces, the Acrobat or Reader application preferences when the PDF file is opened on the computers of the users.

    All that is supported is documented here: http://livedocs.adobe.com/acrobat_sdk/11/Acrobat11_HTMLHelp/JS_API_AcroJS.89.768.html

    Unfortunately, what you want is not supported.

  • Image showing in the middle of the screen with the CSS... (Please help!)

    Hi, I am a newbie with CSS and I'm having a picture as background in my container, but the image shows in the middle of the screen with the text not in the right places. Help, please!

    Here is the link to the page: www.bcaatxsports.com/index2.html

    No, you can move it in the stylesheet, as well as any other travel

    styles you have in the top of the document (keep it clean).

    I did it only for testing purposes - otherwise, I wouldn't have access to

    the css to change

Maybe you are looking for

  • HP Pavilion 14 t: Trackpad is not working - HP Pavilion 14 t

    I have a 9 - month old HP Pavilion 14 t with without a touchscreen. Recently, my trackpad will simply stop moving. I can do any kind of movement with my fingers on the trackpad, but the mouse on the screen will not move or click. Since I have a touch

  • Pregnant T440s Ultradock Buzz

    I have a set of 6 new laptops from T440s as well as Ultradocks. I ordered 2 sets of 3, with one month of inbetween. I'm having a problem where all my Ultradocks producing a buzz loud speakers connected whenever the laptop is off or not anchored. If t

  • WSUS is lack of update KB950760

    My WSUS server has no KB950760 in its database. Is there a reason for this? It shows as a security bulletin, and I certainly updates security checked in the Classifications.

  • Need help to get the drivers on my new E520

    Hi, I just got my new ThinkPad E520. I bought new without any OS. I just installed Windows 7 Professional 64-bit, but now I have a problem because there is no drivers and I can't connect to WIFI to download drivers (as the wlan drivers are not instal

  • AnyConnect-Always-on does not work

    Hello I have been always - on VPN on ASA5510 (version 9.1 of the software). I used a Windows PC to connect, the always-on the job very well. But on the iphone (ios8.1.2) or android smartphone the always - it did not work. Tried specific to the list o