Custom Manager not correctly rendered after having been added to a VerticalFieldManager in BlackBerry

I have a VerticalFieldManager that renders a white round rectangle.

This is the code:

VerticalFieldManager _vfmBackground = VerticalFieldManager(Manager.NO_VERTICAL_SCROLL | nouveau)
Manager.NO_VERTICAL_SCROLLBAR | Manager.USE_ALL_WIDTH) {}
public void paint (Graphics graphics)
{
Graphics.Clear;
graphics.setColor (Color.WHITE);
graphics.fillRoundRect (10, 10 460, 400, 25.25);
Super.Paint (Graphics);
}

protected void sublayout (int maxWidth, maxHeight int)
{
displayWidth = int (Display.getWidth ());
displayHeight = int (Display.getHeight ());

Super.sublayout (displayWidth, displayHeight);
setExtent (displayWidth, displayHeight);
}

};

Then, I created a custom handler named BaseHeaderBlueScreen class that renders a blue rectangle:

public void paint (Graphics graphics)
{
Graphics.Clear;
graphics.setColor (610212);
graphics.fillRect (20, 0, Display.getWidth (), Display.getHeight ());
Super.Paint (Graphics);
}

protected void sublayout (int maxWidth, maxHeight int)
{
int displayWidth = (Display.getWidth () - 40);
displayHeight = int ((Display.getHeight () / 2))-90;

super.setExtent (displayWidth, displayHeight);
}

Finally, I add this handler to the VerticalFieldManager with the white rounded rectangle:

BaseHeaderBlueScreen _vhbs = new BaseHeaderBlueScreen (environment, textBottom, 0);
_vhbs.setPadding (20,30,0,0);
_vfmBackground.Add (_vhbs);

That's how the rectangle blue should be displayed in the white rectangle.

But it is how the blue rectangle is currently displayed (note the gray space on his left side):

How do I do to make the blue rectangle, exactly like you want (without the left border gray)?

Thanks in advance!

Hi thanks, I just removed object calls these two methods clear() and now it works!

Tags: BlackBerry Developers

Similar Questions

  • Satellite L870-165 does not work after having been repaired by their service

    Warranty Toshiba Laptop does not work after having been repaired by their service twice.
    Model: Satellite L870-165

    Computer does not start, rest with black screen showing: No bootable device - please restart your system

    After restarting the same thing happening again.
    I called incident phone Toshiba and after trying several options, I said take it for repair service.
    Told me first of all it was the hard drive, then called me to indicate this resettlement and ultimately it was the motherboard, what would have changed. The next day, being chosen computer repair returned to give exactly the same mistake, due to a malfunction only one night.

    After another call to 902 Toshiba warranty service, I went back to take the service, this time I changed the hard drive. When I arrived home the computer does not start only once, again gives the same error.

    I think this team comes with a default factory that his solution is not easy, because even the technical service told me I didn't know what to do with it.

    Sorry to hear all this. Unfortunately, we can not help you much so try please clarify this service. They help you with your laptop even if all must be exchanged.
    > Warranty Toshiba does not work after having been repaired by their service
    To be honest I don t understand this sentence. How old is your laptop? warranty is already expired?

  • Canon 5 d MK IV LiveView stops immediately after having been pressed with Tamron SP 70-200mm F/2.8

    My Canon 5 d MK IV Live View will stop immediately after having been pressed with a Tamron SP 70-200 F/2.8 Di lenses.

    I don't see the problem happens with my lens F / 2.8 Canon 24-70mm.

    This problem happened in video mode.

    I hope that there is a setting I have to toggle to make this objective work in Live View mode?

    Thank you

    Mark

    I spoke to my local camera shop, they said, that it should be referred to the Tamron for the update of the firmware, they said, that Tamron has a fairly good hand around time of approximately 5 days. I've probably will send mine once I'm done with a shoot.

    The lens works very well for me, normally, the only problem for me is Live View. If this is not the case, use the LIve View, it seems to work great so it's not paralyze me right now, but it would be nice to just get it fixed if Live View will work.

    The camera is also on Firmware V1.01 so their will be updates firmware for it also and as a previous post said that Canon will also address the issues with 3rd party lenses. Great! After that all the Canon doesn't want people who have glasses of third parties avoiding the body of the camera for this problem. It's logical Canon would solve this problem.

    So far it is a minor bump with third party lenses. I've always been able to work with my Tamron and Sigma lenses. Just a couple of workarounds until the firmware is updated. It isn't a deal breaker for me. This camera is a pleasure to shoot with and I am very pleased with the Canon has advanced in the development, image quality with the dynamic range and low light performance. I am happy and have no regrets.

    I would still recommend this camera to a friend.

  • Must the updates and hot fixs remain on the hard drive after having been loaded? Is the information provided in the operating system?

    Must the updates and hot fixs remain on the hard drive after having been loaded?  Is the information provided in the operating system? Or do the lonely stand.

    Original title: need for disk space

    Here are the official specifications of Toshiba for your PC...

    http://support.Toshiba.com/support/staticContentDetail?ContentId=638405&isFromTOCLink=false

    All interface PATA (IDE) connectors are a standard 40 pin.

    I know that there is no restriction on the mixture of ATA drives with different speed capabilities and no restrictions on what cable you use, whether 40 wire or 80 strand (but still 40 pins).

    Faster drives will only work at the speed of the slowest car on any cable and 80 strand cables are needed to make ATA66 or higher drives run at their native speed.

    In addition, no player can work faster than the motherboard chipset permits, in your case ATA66.

    My provider of trade has still some disks 3.5 '' PATA in stock, but these are becoming harder and harder to find. Indeed, it is possible that production has ceased and that suppliers are just exhausted stocks.

    I can certainly say that, when repairs this technology were more frequent, I never had problems with discs theoretically faster on the same cable as slower drives, nor by using faster on 40 cable strands discs. In fact, of many penny pinching manufacturers (some of them major) regularly used for the optical drive and hard drive on the same cable as the motherboard has two connectors, resulting in a decrease in performance on the disk hard (although most of the people would not have noticed the difference). Sometimes, the cable would be 40 strand (understandable if you are penny pinching) and sometimes the cable would be 80 strand (laughable if you are penny pinching because they are [were] more expensive).

    Pass your question about vacant below the sound card. Unless your text confused me, this space is for expansion cards no disk drives. Space that you reference is probably to the back of the PC. Hard drives are normally located toward the front of the dedicated PC "berries". Unfortunately, I could find no photo on the Toshiba site, and still less those internal.

    Tricky

  • Windows 2008 R2 VM do not correctly restart after manual failover

    I'm having a problem where my W2K8 R2 VMs are not stop / correct commissioning after a failover.

    I have 2 servers in my group (2 x HP DL380 G7) running on ESXi 5.0.

    The administration server is an HP DL180 G6 running VCenter 5.0.

    I have two VMotion & configured HA.

    All virtual machines are linking my drive (HP P2000) FC array and my two ESXs have access to LUNS configured on my disk array.

    If we test failover HA...

    What we do is, we have x amount of virtual machines running on ESX1 and an amount x of virtual machines running on ESX2.

    Manually power on ESX2 shut down us to see if the virtual machines running on ESX2 migrate correctly ESX1.

    The VMs TO migrate ESX1 after disabling ESX2.

    But when they are migrated and restarted on ESX1, which VMs will tell you something on the lines of: "Windows has not shutdown correctly. You want to start in safe mode / normal mode / prompt etc. »

    Someone has an idea what might be causing this? I never had this before.

    I checked with one of my colleagues, and he has not seen it before either.

    All virtual machines in question have the VMWare tools installed on them.

    And for the monitoring of the virtual machine settings are for the 'VM' and 'Application Monitoring'.

    Thanks in advance...

    That is right.  An HA event will restart a virtual machine.  He cannot stop him from the accident.  Windows will crash.  The NTFS journal will usually protect file system issues, as it does with physical windows.  HA gives you just the protection against material defects, provides high availability, but not of fault tolerant, in itself.

    VMware FT will run a vm on two different hosts at the same time to ensure protection against this, but you are limited by vCPU.

    -KjB

  • Twitter does not correctly rendered

    Since I updated to Firefox 42.0, yesterday, no social media incorporates are correctly rendered, and it is through all Web sites. What is going on?

    Hello, if you have installed firefox could not remember any history (= permanent private browsing mode) you can see the new protection feature firefox 42 under the follow-up action.
    See for more information and how to disable Tracking in private browsing Protection

  • Client RDP does not correctly open after n time

    7 Enterprise x 64 SP1

    I've migrated to a new laptop about two weeks ago. Migrate to using Windows Easy Transfer. We use Remote Desktop Manager of devolution for RDP connections on my data center. I installed the latest version 8.3.1.0 since I am trying to set me up on top of another computer. It worked very well for most of the day, once I installed and imported my connections to the server. After maybe 6 hours of use, I was unable to reconnect to disconnected sessions or open new sessions. I thought it maybe something with this version, so I uninstalled with Revo Uninstaller to remove all left behind in the registry items, etc. Thinking that perhaps it was this new version, after a reboot, I installed the previous version we used without problem for months, 8.0.12.0.  Work started very well and then after half of my day, it's the same thing, impossible to connect to a disconnected or open sessions. After the closure of Remote Desktop Manager, it leaves the process running there a connection with something, that's not normal behavior. Then, while he was doing this, I tried Windows Remote Desktop connection to try to connect to a server and it gave me the same result. I type my server name in, it could begin the login process, warn me NLA, after pressing Yes and that she would go to the remote session configuration with the loading bar. However, it does connect not what either (work servers I know). Does not seem to mistake, just never loads anything. If I press cancel, it goes back to the screen to specify which server to connect to, but everything is grey, as a connection is suspended.

    I ran all of the important Microsoft and most of the recommended, and optional updates related to the operating system, less the language packs, Bing, etc.. SFC/scannow has detected an error with Diskmgt.chm and repaired. I came across a forum on XP and default.rdp missing in the Documents folder, but can't seem to find anything on Win 7. The only way to make it work again I found it to do a restart of the computer. Try logging off the coast, and then again, but it gives the same result, until I restart. It is not the case after the same amount of time, sometimes it's a few hours, at other times, it's almost the whole day until it happens.

    Any guidance?

    Hi Shakur,

    I posted there is first of all a few days ago and have not received a response yet, so I thought I would try here also.
    Happened yesterday again, worked for about 6 hours of the day and then wham! Will not work until a reboot. Worked fine on my old laptop and everybody on my team, this new notebook computer server. Trying to remove KB2592687. Someone mentioned that was causing errors with RemoteApps on 2008 R2. Thought it was worth a shot.
    Thank you
  • I can convert pdf to word format adobe acrobat, DC but my version of word is not correct because after conversion, fonts and lines are not correct in the original pdf document.  I am currently using version 6.1 of windows 7 service pack 1 build 7601. Is -

    I can convert pdf to word format adobe acrobat, DC, but my version of word may not be correct because after conversion, fonts and lines are not correct in the original pdf document.  I'm currently using version 6.1 of windows 7 service pack 1 build 7601 Home Premium. Is it possible that I might have to upgrade my windows 7 in order to get good conversions of PDF files in word files?

    No, it won't be linked to your version of Windows. Probably, you wait too long. Conversion cannot be perfect except for the files very easy.

  • Firefox does not correctly close after use with Thunderbird, is at the end of the task with the Manager tasks

    After clicking on a link in Thunderbird e-mail, Firefox opens the first time, but after the closure, I am unable to open it again, as it says that Firefox still works even if it isn't. The process runs as indicated by the Task Manager again and I at the end of task to reload Firefox.

    Have reinstalled several times, but no glance. So far, it seems to happen after the opening of Firefox via Thunderbird.

    Any help to solve this problem would be great because I don't want to resort to the use of IE

    Yes, this sounds like Bug 1005487. Comment 36, it is said that the bug is not reproducible on the latest beta version. Other users have reported that the problem has been fixed in Firefox 30 beta8. You can go ahead and download the latest beta version to see if the problem stops there. I'd like to hear if it is resolved.

  • HP DV9291ea paved, works does not after having been in repair

    I have a HP DV 9291ea laptop. It is a model of 17 inches with a keypad on it. The problem is, when the NumLock key is turned on allows the keyboard number pad of the EEG. I recently had the motherboard changed by HP/Tarsus. I suspect that they do not have load the correct keyboard profile. (Tarsus) they said that should bring the laptop and he will fix it (free). I'll do it if no one can help me out here, is there a simple solution and permanent to this problem?

    I can get temnporarly around him as follows:

    • making sure that the NUMLOCK is off.
    • opening keyboard on screen (start > programs > Accessories > accessibility > on screen keyboard)
    • a keyboard layout will appears on the screen
    • I hold down FN button on the real keyboard and clicking the nlk on the on-screen keyboard button with my mouse.
    • the problem is I have is to support on the numlock key once again I'll have to go through the whole process again.

    Anyone have an idea what could cause this or how to solve this problem permanently?

    If you have a suggestion, please report it to me...

    This thread has been dead for a few years, but since I had to really search to find the answer to this question, I thought I'd share what has worked for me.

    In Win7, go to start-> Accessories-> accessibility-> Ease of Access Center, click on "Make the mouse easier to use" and uncheck "Turn on mouse keys".

    It fixed my problem on a HP G72 with numeric keypad integrated.

  • BBM how to retrieve BBM cats after having been removed from the Application Manager

    Hello! I was minimizing my memory of the Application Manager. And I hit 'clear data' when I get to the BBM application handler. After that, my cat had disappeared. and how to find these cat? because there is some important message. Please help me someone? IM using Android here.

    These cats are not recoverable I would say.

    I honestly do not remember on BBM for Android if the history of cats is a feature or an option.

    Open your BBM and check the settings for BBM... you have an option to enable chat history saving?

  • 360 Wired Controller not working not not after having been unplugged

    I used to run my 360 controller via usb ports on the side of my keyboard and it worked very well. Friend has unplugged the controller and when I tried to reconnect, nothing worked. Been deleted and reinstalled drivers several times, the computer reads the controller and it turns on, but none of the buttons to enter anything. Device Manager sees nothing wrong and everything works fine. No idea where to go from here.

    Hello

    1. is specific to a particular USB device question?
    2. modifications to the software you did on the computer before the show?

    Method 1
    I suggest you to run the hardware and devices troubleshooter.

    Open the hardware and devices Troubleshooter
    http://Windows.Microsoft.com/en-us/Windows7/open-the-hardware-and-devices-Troubleshooter

    Hardware devices do not work or are not detected in Windows
    http://support.Microsoft.com/mats/hardware_device_problems/

    Method 2
    I suggest you to see the following link for the USB flash drive to the Xbox 360 support.

    Support for the Xbox 360 USB flash drive
    http://support.Xbox.com/en-us/Xbox-360/accessories/USB-flash-drive#0a888f1bff794b3da8737f0331a8f4d5

    Additional information:
    How to connect your Xbox 360 wired controller to a computer running Windows
    http://support.Microsoft.com/kb/906347

  • Establishment of an iPad after having been locked out but did not recall what is my Apple ID or password.

    Basically, I'm trying to help my sister in law with his iPad. She had initially forgotten its password to enter his iPad and if she got locked out. I googled how to reset and so I have connected the iPad to a laptop and went through iTunes (without signature). Now that the iPad has been swept clean it is now the scene of reactivating...

    I typed in the country, wifi etc and now he asks the Apple ID and password that was used to set up the iPad initially that she can't remember. She does not know what email address she used and she forgot her password. I searched for centuries now what can someone help!

    Is still connected to the account anywhere so that she can get him? Or she has none of the downloads of the account in the computer's iTunes library so that it can do "get info" on them and see the id? If not already tried it: If you have forgotten your Apple - Apple Support ID ?

    If she can still find, and she was the original purchaser of the iPad (i.e. he not was purchased used), she might try to go to an Apple Store (it should take an appointment-Genius Bar if she does) or try to contact iTunes Support Online (https://www.apple.com/emea/support/itunes/contact.html) and see if they can remove the iPad on the account - they are likely to want to see proof of ownership before they could help for example an original receipt with the serial number above

  • Do not start after having been arrested in the menu "alt + f4" in win7 64 bit for the first time

    I always stop the laptop from the start menu. But now when I stopped it for the first time by the "alt + f4" - menu, it does not restart. Or rather, it starts, but looks like the HARD disc spins down after a second or two, and he did not get past the first screen of boot of Lenovo. I can hit the ESC key to see the detailed (with RAM-tests and other) boot screen, but then nothing happens. I can't go in the BIOS or boot menu. And it does not start on a dvd of Win7. Any ideas?

    Sorry, apparently, that was my (Corsair F-Series 90 GB) SSD that suddenly broke down. I'm back to Corsair.

    Problem solved I guess.

  • CS6 products requiring a serial key suddenly after having been used fine since luanch? Does not accept my key (pasted from my adobe account). Cancelled in the first instance. Help, please!

    I had the CS6 Master collection since it was released and have had no problems with it until today. She asks me my key series (for the first time since its been installed) and said that I provided is not valid. What happens here? I'm him giving the key which is saved in my adobeID and registered etc. I almost wasn't able to complete some of the work except that she returned to a 30-day trial, which is not much better because I just need to face this problem again in 30 days. Does anyone know why it does not accept my key? I have it on a second computer and it does the same thing. The two worked well yesterday. I really want to talk to someone, but adobe that makes it almost impossible.

    CS6 or creative cloud returns to the Mode of assessment

    http://helpx.Adobe.com/Creative-Suite/KB/trial--1-launch.html

    Serial number and activation support (non - CC) chat

    http://helpx.Adobe.com/x-productkb/global/Service1.html ( http://adobe.ly/1aYjbSC )

Maybe you are looking for

  • Email attachments-JPG PHOTOS - Cnnot transferred to the Viewer.

    I opened the photos in the body of my email and a box popped up as I started IMAGE transfer who asked if I wanted to use the easy batch transfer of Firefox photos. I clicked on ok. but now when I record (it is a firefox-htm document) to the image vie

  • How to restore Equium P200 1IR back to factory settings?

    Please, I would like to know how to restore my computer toshiba laptop Equium P200 1IR back to factory settings? Because he's been to slow down. Thank you Verb

  • How to hide a list box.

    Hello. Is it possible to hide a list box? For example I want five list boxes that overlap and the command buttons five, an associate of each list box. When you press a button in the associated list box should then be made visible. I couldn't find a S

  • Error applying attributes to the file... access denied

    I had encrypted a file with the other subfolders inside and now it will not read, I don't think what he encrypted correctly because I have not set a password but its my first time encryption so I don't know. Help, please!

  • I can't find the icon of the trash.

    Recycle Bin Where can I find the Recycle Bin?  No icon or the mention of it no matter where I look.   I want to customize the size for better performance.