Could not the two centre manager custom made size

Hello

I try to add two VerticalFieldManager with the background Bitmap to an existing VerticalFieldManager, who is then added on a screen.  The problem that I am running is that when the two VerticalFieldManager is added at the same time, I can not both of them at the Center.  They are both almost centered, but a fair bit aligned.  If, however, I would add only one of the two VerticalFieldManager, and then it focuses without problem.

I suspect that my problem might be because I'm from the substitution of sublayout() at the time of the VerticalFieldManagers, so that they are both the same size as the background Bitmaps.  Here's how I instantiated the VerticalFieldManagers:

final Bitmap container2 = Bitmap.getBitmapResource(Constants.DEFAULT_IMAGE_ROOT + "backgrounds/locations_details_bottombox.png");

VerticalFieldManager vfmContainer2 = new VerticalFieldManager(Manager.FIELD_HCENTER) {
    public void sublayout(int width, int height) {
        super.sublayout(container2.getWidth(), container2.getHeight());
        setExtent(container2.getWidth(), container2.getHeight());
    }
};
        vfmContainer2.setBackground(BackgroundFactory.createBitmapBackground(container1, 0, 0, Background.REPEAT_NONE));
vfmContainer2.setMargin(0, 0, 5, 0);
vfmContainer2.setPadding(15, 0, 15, 15);

Is there a problem with this operation I can not know?  I'd appreciate any help.

Thank you!

Remove your sublayout setExtent and add USE_ALL_WIDTH and USE_ALL_HEIGHT the style bits of your vfmContainer2 (in addition to FIELD_HCENTER) and see if that changes things.

Besides, it's a good practice.to use super.sublayout like this:

Super.sublayout ((width, yourWidth), Math.min Math.min (height, yourHeight));

Be a little paranoid allows you to save a lot of headaches later.

Tags: BlackBerry Developers

Similar Questions

  • How to fix "error 2738... could not access VBScript runtime for custom action' tries to apply the update to my service of Incredimail.

    How to solve the following problem found while trying to download an upgrade of my Service of Incredimail.

    "Error 2738...". could not access VBScript runtime for custom action"

    The most likely cause is the antivirus bloocking the script.

    Check your AV settings (AV is?)

  • Problem of uninstalling with the error 'could not access VBScript Runtime for custom action'

    I'm having a problem uninstall a program. I'm getting repeatedly blocked in error: "could not access VBScript Runtime for custom action.  That means this error in uninstall a program? Would appreciate a fix for this. The program is called Soluto.  Thank you.

    P.S. I tried as admin and type regsvr32 vbscript.dll then regsvr32 jscript.dll in the command prompt.

    As well as their registration as an administrator, you may need to remove the entries for them in HKEY_CURRENT_USER.

    See:

    http://blogs.msdn.com/b/astebner/archive/2007/06/07/3151752.aspx

    Also, make sure that your antivirus software is not blocking scripts.

  • Error 2738 - could not access VBScript Runtime for custom action during the INSTALLATION of broadband dongle by distribution VODAFONE K3565 rev2. ON WINDOWS 7 PREMIUM

    Whenever I try to install a dongle broadband PAYG Vodafone K3565 rev2, I get an error message; -error 2738 - could not access VBScript Runtime for custom action. I am running Windows 7 Home Premium on a Samsung R522 again.
    I found that I got the same error message when I tried to install INCREDIMAIL on the same computer laptop.

    On the vodafone website, I found a resolution the resolution I found was;

    1. run command prompt as administrator
    1.1 Start Menu-> all programs-> Accessories
    1.2 right-click on command prompt and select run as administrator of

    2. If you are using the 32-bit version of Windows:
    Type cd %windir%\system32 in the command prompt and press ENTER.

    If you are using the 64 bit version of Windows:
    Type cd %windir%\syswow64 in the command prompt and press ENTER.

    3. type regsvr32 vbscript.dll in the command prompt, and then press ENTER.

    When I tried this, I got a message that this had been done but I tried to install the programs and even once, they both failed and I got the same error as before.

    Can anyone help?

    Well... It has been a week. I know too much now.

    ATTENTION: This field is very complicated AND there are too many incorrect analyses out there.

    The problem for me is (FOCUSED) that the current user HK had entires THAT SHOULDN'T BE!

    The computer settings are found under the Local Machine of HK. HKLM must be correct.

    Procedure: REMOVE all entries in HKCU. Correct path the InprocServer32 value.

    My specific (2738) error occurred trying to find "vbscript.dll" (aka "\{B54F3741-5B07-11cf-A4B0-00AA004A55E8"})

    Some antivirus software redirects requests for certain things by herself (aka 'diversion'). If the

    InprocServer32 is EMPTY (in HKCU - for me). All of the solution has been to remove the HKCU entries.

    Another little attention is: (for example) vbscript.dll has several references (app, authorization, RegExp)

    so be on the lookout for the 2 and 3, as well.

    \{B54F3741-5B07-11CF-A4B0-00AA004A55E8}

    \{B54F3742-5B07-11CF-A4B0-00AA004A55E8}

    \{B54F3743-5B07-11CF-A4B0-00AA004A55E8}

    I removed the entries in HKCU. Run the error code again. (Mine = .msi)

    This information is redundant. Gokul T response (upstairs) was correct. It does not sink into my head when I read it. But this thread was open the door to the solution for me.

    Thank you...

  • Error 2738 could not access VBScript Runtime for custom during the installation of a turbostick action.

    I am trying to install a turbo stick on my acer aspire - and getting a 2738 error could not access VBScript Runtime for custom action. I am running windows 7 and acer and Bell - my provider have not been able to help.

    Kevin

    Hey Kevin,

    Thank you for the update.

    1. Run as administrator command prompt:

      1. Menu start-> all programs-> Accessories
      2. Right-click on command prompt and select run as administrator
    2. Type the following command at the prompt: reg delete "HKCU\SOFTWARE \Classes\CLSID\{B54F3741-5B07-11CF-A4B0-00AA004A55E8}" /f, then press on enter.
    3. Then, you must also type the following command: c:\windows\system32\regsvr32 vbscript.dll, and then press ENTER.

    Note: Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    http://Windows.Microsoft.com/en-us/Windows7/back-up-the-registry

  • When installing or uninstalling the software get error 2378 - could not access VBScript Runtime for custom action

    I get error 2378 could not access VBScript Runtime for custom action, when I try to install the software and uninstalling some software.

    I tried several online for regsvr32 vbscript.dll fixes and nothing has helped.

    I tried to remove the keys from HKCU\Software\Wow6432Node and it is said that they do not exist.

    I have registered the VBScript engine in the folder it is installed, said successful but still does not work.

    I tried with run as administrator of the command-line also.

    It is a Dell laptop with Windows 7 Home Premium 64 - bit.

    Any suggestion would be appreciated.

    Thank you

    Oldestman

    Hello

    What operating system is installed on your computer?

    Method 1: This error message indicates that the VBScript engine is not currently registered on the machine where the installation/uninstallation. I suggest to try the steps below and check if the problem is resolved. If you have already tried these steps then we do know.

    Delete the registry following key then save the VBScript code and check if that helps:

    Step 1:  If you have a 64-bit operating system, you must follow these steps:

    a. Click Start and type cmd in the box start the search.

    b. right click on cmd in the list programs, and then click Run as administrator.

    c. at the command prompt, type the following command and press ENTER:

    reg delete "HKCU\SOFTWARE\Classes\Wow6432Node\CLSID\ {B54F3741-5B07-11CF-A4B0-00AA004A55E8}" / f

    If you have a 32-bit operating system, you must follow these steps:

    a. Click Start and type cmd in the box start the search.

    b. right click on cmd in the list programs, and then click Run as administrator.

    c. at the command prompt, type the following command and press ENTER:

    Reg delete "HKCU\SOFTWARE\Classes\CLSID\" /f {B54F3741-5B07-11CF-A4B0-00AA004A55E8}

    Step 2: Register VBScript by following the steps below:

    a. Click Start and type cmd in the box start the search.

    b. right click on cmd in the list programs, and then click Run as administrator.

    If you are prompted for an administrator password or a confirmation, type your password or click on continue

    c. at the command prompt, type the following command and press ENTER:

    If you are using32 bit version of Windows, and then run the following command:

    regsvr32 vbscript.dll

    If you are using64 bit version of Windows, and then run the following commands:

    %windir%\syswow64 CD

    regsvr32 vbscript.dll

    d. after the command is executed successfully, try to install

    Method 2: Diagnose and correct program installation and uninstallation of the problems automatically

    http://support.Microsoft.com/mats/Program_Install_and_Uninstall

  • Error message saying "error 2738. Could not access VBScript Runtime for custom action'.

    I am trying to download the software Sky Player and get an error message saying "error 2738. Could not access VBScript Runtime for custom action'.  I have contacted sky and went through the procedure, they have recommended, but nothing helped.  Can anyone help please.

    Here is an article on this exact error message that can help solve the problem:http://www.jakeludington.com/windows_7/20091115_error_2738_could_not_access_vbscript_run_time_for_custom_action.html.

    Here is another article which basically says the same thing, although procedures vary slightly:http://www.nitropdf.com/kb/article.aspx?id=10106&cNode=3D8W4P.

    I hope this helps.  Keep me posted.

    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.

  • I could not the serial number. I have step by step

    I could not the serial number. I have step by step

    Christmas, please visit: troubleshooting installation | Photoshop Elements, Elements first. Windows

    To find the serial number, you can consult:

    1. https://helpx.Adobe.com/x-productkb/global/find-serial-number.html
    2. https://helpx.Adobe.com/x-productkb/global/redemption-code-help.html
    3. https://helpx.Adobe.com/x-productkb/global/find-serial-number-student-teacher.html

    Let us know if you need more assistance.

  • Error 2738 could not access VBScript Runtime for custom action

    Well, I have the same problem error 2738 could not access VBScript run time for action custom when I try to install incredimail I just do a restore to factory in the last 2 days I do not even have all yet loaded things back and I came across this problem so here is my contact information and what I tried already :

    I'm running Windows Vista Home Premium Service pack 2 32 bit
    I use Mcafee and installed and after reading just down to you ensure that I uninstalled and ran the cleaner program suggested and she has still not work, I reinstalled and not yet did not work so I've currently uninstalled again and the vacuum again 3 times
    I ran all the advice from the command prompt still does not work
    I tried to delete the registry entry suggested HKCU\SOFTWARE \Classes\CLSID\{B54F3741-5B07-11CF-A4B0-00AA004A55E8}, but he's not here to remove
    I ran this command suggested reg delete "HKCU\SOFTWARE\Classes\Wow6432Node\CLSID\ {B54F3741-5B07-11CF-A4B0-00AA004A55E8} and I think that maybe it wasn't a good idea but may not know whether it was or not.
    Then I read in this thread on Mcafee to a registry entry and redirecting somewhere it should not so I went to look at and that's what I found:
    HKEY_CLASSES_ROOT\CLSID\ {B54F3741-5B07-11cf-A4B0-00AA004A55E8} \InprocServer32 - default REGSZ C:\Program Files\Fichiers Files\McAfee\SystemCore\ScriptSn.20110417221023.dll
    and no I have not yet reinstalled McAfee and ran to the 3 times vacuum why is there always a register McAfee entry I followed the path C:\Program Files\Common Files\McAfee\SystemCore\ScriptSn.20110417221023.dll and guess what it's not exist, and yes I looked into the hidden files I even ran a search in all files and it is not anywhere
    I had already run the sfc/scannow once before I deleted the McAfee and it found corrupted files, but said they have been fixed as well, I ran again just to check and this time no errors
    HELP, I am at a loss of what to next in addition to another factory restore which I really really DON'T want to because I have an I had my computer since February 2007 as well as the amount of updates to Vista I need to do well is all together besides the Service Pack 1 and 2 there are more than 300 reviews have even not looked optional and yet if pardon my language is a pain in one @.
    Please can someone HELP!

    Whoo Hoo!

    Someone told me how to change the permissions on the registry key and DUH! I knew how to do this, so I changed the and then changed the key to C:\Program Files\Common Files\McAfee\SystemCore\ScriptSn.20110417221023.dll TO C:\\Windows\\system32\\vbscript.dll
    Restarted checked and then ran the installation for incredimail and IT WORKED!
    Thank God I've been playing with this for 2 days I really doesn't want to have to do another restore of factory which is what I was about to
  • Dungeon of Windows (not), the two Main Internet

    No matter what I do, computer stops responding and does not know what the problem is.

    I have:
    defraged, scandisk and steps all the recommended... nothing works can do any assistance?

    Hi SandeeMoulton,

    (a) what were the changes to the system between the time where everything has worked, and when you noticed the problem?

    I suggest you try the following steps:

    Step 1: Disable the security software and test, follow the steps mentioned below

    http://Windows.Microsoft.com/en-us/Windows-Vista/disable-antivirus-software


    Note:
    enable security software once everything is done.

    If everything works fine, as expected, try to update the security software.

    Step 2: Put the computer to clean and test start.

    Follow step 1 in the link below,

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

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

    If everything works well after a clean boot, you can deduce that some third-party services are at the origin of the problem.

    After find you the program that is causing the problem, you will have to perhaps to update or install a newer version of the program, if you rarely use that you should consider uninstalling the software

    Important: n ' forget not the computer to start normal follow step 7 in the link.

    If the problem persists,

    Step 3: Follow the steps mentioned in the link below:

    Error message when you log on to Windows Vista: "Windows Explorer has stopped working".

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

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Need help with HP8050 custom made size

    I would like to print photos of 8 x 12 inch on my Photosmart Hp8050.  Pls tell how to set up the printer for this custom setting. I'm on Mac OS10.6.8.

    Thank you.

    With your help, I now understand the "custom" option and provided a custom option 8x12in. "."

    Ive tried to test this custom functionality by inserting a sheet of A4 (different size than 8 x 12)... and get the following error message:

    Paper size error: the custom paper size specified is not supported in the selected tray.

     
  • 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.

  • Creation of custom made size presets

    Hello

    I have tried several times to create custom size documents in PES 10 without success. 

    I for example in the file Menu select New Document and key sizes needed to make any adjustment. I name the file and close the document.

    When I open a document to select a custom preset that I have created the custom view box but the drop zone 'Size' (where I have to choose my preset) is grayed out.

    Seems I'm not the only person who has problems with something which are normally simple and I wonder if the problem is down to a control, or a bug.

    Help would be greatly appreciated, thanks.

    Normally the photoshop elements does not allow the user to save the new document presets.

    You can add parameters predefined dialog box new document by editing the text of new document file, but it's a pain.

    This script (create new canvas of Paul Riggott) will save the document presets and you can also add guides. However, you still need to use this script to access

    the presets, they will not appear in the file > New > empty file dialogue. (this script should work in pse 6 pse 10 thru)

    (the only thing that won't work in the elements is the CMYK setting)

    https://Acrobat.com/#d=oBbSEVclD * KGKGGRBZ3bTA

    Installation:

    1. download and unzip the file

    2. right click on the script and choose copy.

    3. go to the folder of scripts 10 pse, right-click in an empty area and choose Paste.

    Windows x 64 systems:

    C:\Program Files (x 86) \Adobe\Photoshop elements 10\Presets\Scripts

    32-bit Windows systems:

    Adobe Photoshop C:\Program 10\Presets\Scripts elements

    I'm not sure of the exact path for a mac system.

    4. start or restart PES 10 and the new canvas create script should be listed under file > automation tools.

    To create a new preset press, add new canvas after opening of the script, enter the information and then press the Web button and preset should appear in the dialog box create a new canvas.

  • Could not get access to manage extensions / plugins under the help tab.

    I'm working on a desktop Windows OS 8.0. On the help tab, I can't access the line 'manage extensions', but just below the legal notifications. I'm Dutch, so I don't really know if it's the right translation. I use PS CC.

    I think you are talking about CC 2014

    Photoshop CC 2014 release: FAQ

  • CS6 updates could not be applied - Application Manager may be damaged

    Hello

    If I try to search for updates in After Effects with the menu point "updates... "I get the error"Update failed"since the Application Manager. See screenshot:

    AdobeApplicationManagerUpdateFailed.jpg

    If I click on the first link I get an html 404 error ' sorry this page is not available! "* GREAT *.

    the second links to the Customer Support page?

    http://helpx.Adobe.com/Creative-Suite.html

    not very useful...

    If I try to start the Application Manager manually by executing this file

    C:\Program Files (x 86) \Common Files\Adobe\OOBE\PDApp\core\PDapp.exe

    the Application Manager downloads an update (for the Manager himself), but the update process fails. See screenshot

    AdobeApplicationManagerInstallationFailed.jpg

    All this happened suddenly and completely unexpectedly and I haven't changed anything on my computer. Updates in the past have already worked well.

    This happens with all applications of the Creative Suites (CS5, CS5.5, CS6) and I'm not able to get updates for applications.

    I'm a bit lost now any help is very appreciated!

    _____________________________________________________

    System: Windows7 Ultimate 64 bit (Updated) (German language)

    CPU: Intel Core 2 Extreme Q9300

    RAM: 16 GB

    Graphics card: nVidia Quadro FX 2700 M

    Adobe Production Premium CS5 | CS5.5 | CS6

    Abhijit Hey,.

    because you had not replied to my last post I went my own way to fix!

    I did your steps

    Rename the folder OOBE OOBE.old starting from these locations

    C:\Users\(your username) \AppData\Local\Adobe

    C:\Program Files (x 86) \Common Files\Adobe

    but instead of download Creative cloud of creative.adobe.com I installed AdobeApplicationManager.exe of temp folder!

    It turned out that my temp folder AdobeApplicationManager.exe was the same installer as the creative cloud!

    Well, first I was a little afraid that I now have creative cloud installed on my system, but I think creative cloud is the new name or the version of the Application Manager?

    I also want to account for other users having the same problem that the menu/help/update... features in the CS Applications work again as expected!

    One question remains:

    Could safely delete the renamed folder OOBE.old of these places without any harm to my system?

    C:\Users\(your username) \AppData\Local\Adobe

    C:\Program Files (x 86) \Common Files\Adobe

    Thank you very much for your help Abhijit

    Kind regards

    Felix

    _____________________

    www.felixdames.de

Maybe you are looking for