03-15-2010 04:22 PM
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.
03-15-2010 04:24 PM
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.
03-15-2010 04:39 PM
thanx i uploaded image on photobucket also on following link
03-15-2010 05:17 PM
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.
03-15-2010 05:19 PM - edited 03-15-2010 05:19 PM
03-16-2010 01:53 AM
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.
03-16-2010 06:00 AM
can anybody help me out?