Reinvest a presentation Manager and detect any changes in size

Hello

I am trying to create a user interface that mixes elements I draw myself with native widgets and I do this by substituting the painting and drawing to an image in the background before drawing the fields themselves.

To position the fields, I created my own Manager and position fields in absolute position based on my own component positions. For the base case works very well...

When I type in a field, it grows, I do not detect this growth so I can not ebb the user interface. How can I detect a change to the default size of the field? I followed the field muddy/Sales status but that doesn't seem to help here is a picture of my test case, white in the middle is a native field and find it me difficult to follow its growth in real time:

When I start the native UI scroll fields remain in place, I tried calling invalidateLayout, but it throws an exception? How to trigger the IU blackberry to call sublayout again?

That's what I mean fields are now on top of my drawn text box:

Thank you

Shai.

Yes, I noticed that you implement LWUIT. Two big thumbs up!

First of all - don't spend just a new Manager (...) as a parameter in your full screen (I hope you meant that when you wrote FullCanvas).  Create a handler that is personalized with its own sublayout() and do the work there. In this way, you will be able to instantiate this Manager custom rather than writing the same code over and over again.

Second - substitute object it inside the Manager, not the screen.  Not necessary, but once again - for the best control.

Third - It's weird that sublayout of your Manager is not called automatically, but you can force it anyway:

// in your MyClass:
protected void sublayout(int width, int height) {
  layoutDelegate(width, height);
}

Have not tested but it should work.  This way, you should be able to rearrange and re - position your fields in the same manager that has all the knowledge, he needs.

One problem remains, though - how are you going to partially show these fields when they slide to the edge of the screen?  I hope that you can set negative positions for them. Documentation for the manager class specifies all IllegalArgumentException on negative x and y in setPositionChild, so you might be lucky .

Tags: BlackBerry Developers

Similar Questions

  • I get startup repair screen when I try to boot my laptop from dell inspirion windows 7, I run the scan and detects any errors. When I ran repair usb key received the error 0x400110020000100A

    I get startup repair screen when I try to boot my laptop Dell Inspiron windows 7, I run the scan and detects any errors. So, I tried to use a USB repair for a laptop Dell Latitude Windows 7 pro and I still can't the computer to start. Tried to restore to the factory settings, can not. I have no image, backups, all missing, restore points?

    After that I tried to launch the USB repair I got 0x400110020000100A error code and I received error (0x8007027E) indicating the device will not start without a reboot.

    Anyone know how to fix this?

    Any advice would be greatly appreciated. I'm not computer illiterate, but am not pro either. Just use them not program them or even understand all languages!

    ____________________________________________________________________________________________________________

    Dell Inspiron laptop about 4-5 years.

    Running windows 7 Home Edition.

    Does not start little matter what I tried.

    If I remember correctly, I looked in MS-DOS mode and noticed that it said something like "x: win...» "that seemed strange to me because I thought that it should say"c: victory... "but as I said I am not a computer wiz so if anyone can help me, I would appreciate it.

    I'm about to rip the hair off my head with my laptop. My latitude was blue planned, surprisingly I fixed it (don't ask how, you couldn't tell). Then my dell inspiron would not start right after my dell latitude fell out of my truck and landed on the sidewalk, wanted to kill the person, the screen is broken. I can use it but it is very difficult, see a mosquito net and not perfectly clear, works well. lol someone knows somewhere or that would install a new screen for a reasonable price? I live in the Boston area.

    Back to the laptop won't start not, when I ran repair USB key received the error 0x400110020000100A

    Hello

    Thank you for the update on the issue. I appreciate your time and effort in resolving this issue.

    You can try the following methods and check if it helps.

    Method 1:

    You can use the Bootrec.exe tool in the Windows recovery environment (Windows RE) to troubleshoot and repair the following items in Windows Vista or Windows 7:

    • A master boot record (MBR)
    • A boot sector
    • A Boot Configuration data (BCD) store

    Note: When you are troubleshooting startup issues by using the Windows RE, you should first try the Startup Repair option in the System Recovery Options dialog box. If the Startup Repair option does not resolve the problem, or if you must troubleshoot more steps manually, use the Bootrec.exe

    Use the Bootrec.exe tool in the Windows recovery environment to troubleshoot and repair startup issues in Windows

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

    If the problem persists, proceed to method 2.

    Method 2:

    Please follow these steps:

    1. Tool command prompt open in the mode of the Windows recovery environment .
    2. You will see X:\Sources
    3. Type chkdsk c:\ at the flashing prompt to launch the utility Chkdsk. replace c:\ with the letter of the drive that you want to run the Chkdsk utility. If the hard drive is d:\, then type that instead.
    4. After the "chkdsk c:\. "insert \f command to fix errors on the disk volume or the \r to recover bad sectors and then press ENTER.
    5. Restart the computer once the chkdsk command has completed.

    Note: Running chkdsk on the drive if bad sectors are found on the hard drive, it attempts to repair this sector, if all available on which data may be lost.

    For more information: Please refer to the section of the additional If you can not boot into Windows at all stages in the following link.

    Resolve stop (blue screen) error in Windows 7

    http://Windows.Microsoft.com/en-in/Windows7/resolving-stop-blue-screen-errors-in-Windows-7

    Hope this information is useful. If the problem still persists, please post back for further assistance, we will be happy to help you.

  • PS touch and able to change the size of the file

    Hello

    I would like to change the size of an image of 10 MB to 1 MB file, is this possible?

    Thanks to advancefile

    Finally, size in pixels determines the size of the file. Tap the icon of the ampersand in the upper right > Image size. (If you need a file size calculator, try Googling. There are tons of tools out there online.)

  • How to detect any change of a StepType field by sequence?

    Hi all

    Suppose I have this: a simple StepType 'TEST' with one added the custom field 'Source' from the String type.

    When you use the StepType in a sequence and change the value of "Source" (since the Variables Panel).

    the name of the sequence is immediately marked with a ' *'. That is wat we want :-)

    But if I change the value of "Source" code (c#), I see that my "Source" value is changed (in the Variables Panel), but not the sequence has detected this.

    Maybe it's StepType-flag that I have to pay or from code, execution of a trigger or so?

    Thanks in advance?

    Franky

    I speak for me, but FYI:

    because as I update my sequence of code (c#), I have the current stage as an object and

    so I know if all the fields are changed.

    With the help of this excerpt will mark my sequencefile as "changed":

    step. Sequence.SequenceFile.AsPropertyObjectFile (). IncChangeCount();

  • Find and restore any changes? Where/how?

    So one of the latest updates had "view and restore changes made to a document over time" as one of the new features, but no information on how to do it.

    Does anyone have instructions for this? Could be very useful.

    Thank you

    Jason

    After doing some more fiddling around with the program, I found versions.

    On the screen of the main file (where you take a spreadsheet to open), click on the button "Edit" "" at the top right.

    Ignore aid that says it's just for 'duplicate or delete worksheets' (see image below). Apparently that is not updated.

    After tapping once on no matter what spreadsheet in the edit view, you will see then "Versions" at the top right, next to the Finish"" button.

    Type this and will try to load all the previous versions that you can select.

    Jason

  • Satellite C50D with Win8.1 - cannot perform any change of Director

    I recently changed my account administrators of Microsoft for a standard account. Unfortunately I can not restore and make any changes to my computer's administrator.

    Please can someone tell how can I do this?
    Jargon in simple free instructions would be greatly appreciated

    There is a built-in Windows 8 and 8.1 Win system administrator account. You must enable it first.

    Start the command prompt (black box).
    To start this type in the CMD in search window and choose command line
    You can also go to C:\Windows\System32\cmd.exe, right click and RUN as administrator

    In the console window type: + net user administrator / active: yes +.
    Now log out of the system.
    Start the new laptop and now you should see the user account additional administrator
    Use this admin account to identify the system and create new user account or change the existing user account.

    Here's a nice video of Microsoft of HowTo:
    [Create an account user | http://windows.microsoft.com/en-us/windows/create-user-account#create-user-account=windows-8]

    Also check this youtube video, how to enable or disable the administrator account:
    https://www.YouTube.com/watch?v=c4T_N5wa17E
    ?

  • HOW TO CHANGE THE SIZE OF THE LABEL IN ADOBE READER

    I have the latest Adobe Reader and try to change the size of the label to print on a ZEBRA ZP 450 it says I don't have permissions. Thank you

    Hi microc86343322,

    Could you please let me know what kind of label is there in the PDF file.

    In addition, share the screen shot of the error message that is displayed before the exact cause can be analyzed.

    You are logged as administrator?

    Please note that the player in the only used view, comment on and sign a PDF file and not for editing. To modify a PDF file, you will need Adobe Acrobat.

    Kind regards

    Ana Maria

  • My floppy drive is not reading the disks. Device Manager does not detect any problems, I uninstalled and reinstalled the drivers. What should I do now?

    My floppy drive is not reading the disks. Device Manager does not detect any problems, I uninstalled and reinstalled the drivers.
    Convenience store said to click on properties Insert the diskette and
    Double click on open, but when I do that it stop computer
    and opens the recovery and ask for a correct diskette,

    Hello Tallm,

    Thank you for your message.  Did you get your floppy drivers of your installation diskettes?  If so, go to the website of the manufacturer of your computer and download/install the latest drivers.  Please let us know if this or help to solve your problem.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • There is the Red Cross in the icon network and cannot connect to the internet, to detect any wireless network.

    * Original title: Internet connection problem

    It has red cross standing in the network icon and I can't connect to internet via USB modem or WiFi. It is also not detect any wireless network.

    Aalishan salvation,

    -Have there been recent changes made on the computer before the show?

    This problem can result from network card or driver settings.

    I will only refer to the suggestions provided by Gokul T on May 14, 2010 and check if it helps.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-networking/Windows-7-is-unable-to-detect-any-wireless/9a7386ba-7775-4039-940b-20fa537c6084

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    For more information, see the links.

    Why can't I find a wireless network?

    Wireless and wired network problems

    Keep us informed on the status of the issue.

  • I can't detect any windows bluetooth device and other devices to activate bluetooth can also search for my laptop.

    Original title:

    I dualboot laptop dell inspiron 1440 I reinstall Home Basic to Windows 7 it spend to service pack 1. I can't detect any device Bluetooth window and other devices to activate bluetooth can also search for my laptop. I have problem bluetooth but my other os ubuntu 12.04 I can find any other compatible bluetooth and another bluetooth device turn on the device can get my cell phone. my windows 7 is up to date. I have installed and reinstalled my bluetooth driver official dell site I'm tired now please help me how to solve my problem when I uninstalled the driver window bluetooth and restart it automatically installed through the window, but still I can not able to associate all devices when I checked the driver for the update , it says driver is up to date, I activate the window to find this computer to other devices through the bluetooth setting.
    Please help me

    Hello

    You did changes to the computer, before the show?

    I suggest you to download and install the fix from the following link.

    Bluetooth devices do not work correctly on a computer that is running Windows 7

  • External hard drive says its read-only and wont allow any changes

    My IQ505a has an attached external USB drive which is a drive external drive USB Western Digital 3200JS, and for a reason that I am unable to make changes to the data on the disk because the system apparently marked the entire disk in "read-only" mode.

    I put my account as an administrator and belong to the Group of Directors with all the usual permissions, except that I'm unable to disabled marking read-only on this drive.

    I also tried to connect and make these changes with the administrator account, but nothing helped.

    This problem is only with the external drive and not on the embedded player.

    Any help would be most appreciated ith this issue frustrating.

    mclwlg

    NZ

    Concerning
    mclwlg - NZ

    Get on the Internet and found many others with external drives, Vista and this issue.

    Found this fix (solution?):

    Go to the computer, do a right-click on the icon of the drive, properties, tools, check now. Uncheck the two boxes and click OK.

  • I'm trying to reduce the duration of the google navigation and search boxes without any succuss. Numerious times the site was requested, but no response is the problem. I can change the size by using the line that separates the two boxes, but I only

    I added a cus 06/25/10, wanted to shorten the google search and navigation bars to see, but can't. Have re-installed the google toolbar, have chosen the version of firefox as my default tool bar and can then change the width, but when a box shortens the other if extension always fill the width of the screen. Customize toolbar doesn't give any options to reduce the width of toolbar, I am at a total loss. Would love suggestions if you have correctly fixed this.

    This has happened

    Each time Firefox opened

    is 25/06/10

    The address bar and the search bar have a flex property and take all available space.
    You can change the relative size of the two with this resizer between two bars.
    You can only do this by adding a lot of space in the view > toolbars > customize window.

    You can set a fixed width by defining the min-width and max-width for the same value.

    Add code to userChrome.css below @namespace.
    See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    #urlbar-container {max-width:400px!important; min-width:400px!important;}
    #search-container {max-width:200px!important; min-width:200px!important;}
    

    You can choose your own values as long as the min-width and max-width for each bar have the same value.

  • Error Client Services for NetWare has disabled the Welcome screen and fast user, any change by changing the account settings

    Original title: "Client Services for NetWare."

    When I try to change my account settings, I get this message "client for NetWare has disabled the display of welcome and Fast User Switching.

    To restore these features, you must uninstall Client Services for Netware ".»

    I checked and the customer service is not installed on this computer.

    He puts this message up no matter what I try.

    What can I do to remove this problem?

    Hello

    Were there any changes made to the computer before the show?

    Please follow the steps in the link.

    Error message when you try to turn on welcome screen or Fast User Switching

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

  • PC automatically shutsdown after every 30 min. I have the last MS Security Essentials installed and running and also the MS Malicious software installed, but none are able to detect any virus or harmful software. Please help in this regard.

    PC automatically shutsdown after every 30 min.  I have the last MS Security Essentials installed and running and also the MS Malicious software installed, but none are able to detect any virus or harmful software.  Please help in this regard.

    You get a bsod?

    Please check the event log to see if there are errors, helping to explain what is happening. Also check the c:\windows\minidump folder. Are there files .dmp created here with the dates that it closed? If so please download them on your skydrive so watch us closer.

    See you soon.

    MyPcHealth - free tools

  • I had to reinstall my windows OS and now I can't connect to a wireless device, tells me that it cannot detect any wireless network hardware

    original title: Wireless help network device

    Help, please. I had to reinstall my windows OS and now I can't connect to my wireless device. When I try it tells me that it cannot detect any wireless network hardware. I am currently connected via my laptop air card. Please help me to find and correct the problem.

    Have you installed all of the correct drivers?

Maybe you are looking for