Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 190
Registered: ‎10-22-2009
My Device: Blackberry Torch

invisible field, weird behavior.

Hey help me with this,

I added 4 fields to the horizontal field manager, which itself is in a vertical field manager, say buttonfield then at some point based on userinput i hide

all 4 of them by overriding subpaint() of vertical field manager by not painting child horizontal field manager. They get invisible but when i scroll across this vertical field manager then at the ends of this manager i can still see the fields in hfm.

I am attaching the snapshots of same.

Any idea why such weird behavior eventhough i overrided subpaint behavior.

any help will be appreciated.

button1.JPGbutton2.JPGbutton3.JPG

-----------------------------------------------------------------------------------
Please mark posts as solved if you found a solution. Press the kudos button to thank the user who helped you.
Developer
Posts: 1,055
Registered: ‎01-25-2009
My Device: BlackBerry Bold 9650/BlackBerry Torch 9800

Re: invisible field, weird behavior.

Your images can only be seen by you. Please try posting them to a free image host provider (like PhotoBucket) and edit your original post.

 

Thanks.

Jerome Carty - Follow jcarty on Twitter@jcarty | #webworks-dev / #BlackberryDev on irc.freenode.net | My Apps
Click "Accept as Solution" if post solved your original issue.. Give like/thumbs up if you feel post is helpful
Developer
Posts: 190
Registered: ‎10-22-2009
My Device: Blackberry Torch

Re: invisible field, weird behavior.

thanx i uploaded image on photobucket also on following link

http://pbckt.com/sb.67F

 

 

-----------------------------------------------------------------------------------
Please mark posts as solved if you found a solution. Press the kudos button to thank the user who helped you.
Developer
Posts: 1,055
Registered: ‎01-25-2009
My Device: BlackBerry Bold 9650/BlackBerry Torch 9800

Re: invisible field, weird behavior.

I'm not sure of what you want it to look like based on the pictures but maybe you can implement a ScrollListener on the field and invalidate on scroll to make sure its clearing the images.

 

Only thing I can think of.

Jerome Carty - Follow jcarty on Twitter@jcarty | #webworks-dev / #BlackberryDev on irc.freenode.net | My Apps
Click "Accept as Solution" if post solved your original issue.. Give like/thumbs up if you feel post is helpful
Highlighted
Developer
Posts: 1,055
Registered: ‎01-25-2009
My Device: BlackBerry Bold 9650/BlackBerry Torch 9800

Re: invisible field, weird behavior.

[ Edited ]

By the way you said you are overriding subpaint but how are you hiding the fields?

Jerome Carty - Follow jcarty on Twitter@jcarty | #webworks-dev / #BlackberryDev on irc.freenode.net | My Apps
Click "Accept as Solution" if post solved your original issue.. Give like/thumbs up if you feel post is helpful
Developer
Posts: 190
Registered: ‎10-22-2009
My Device: Blackberry Torch

Re: invisible field, weird behavior.

In subpaint, i m not paining other childs but not this horizontal field manager.

 

 

public void subpaint(Graphics g) {
         super.subpaint(g);
         paintChild(g, img);
         if (barOneVisible) {
        	 paintChild(g, barOne);
}

 

 

I dont understand why the fields under "barOne" HorizontalFieldManager that too only at the ends are

visible.

 

-----------------------------------------------------------------------------------
Please mark posts as solved if you found a solution. Press the kudos button to thank the user who helped you.
Developer
Posts: 190
Registered: ‎10-22-2009
My Device: Blackberry Torch

Re: invisible field, weird behavior.

can anybody help me out?

 

-----------------------------------------------------------------------------------
Please mark posts as solved if you found a solution. Press the kudos button to thank the user who helped you.