05-11-2011 09:03 AM
I have created a class which when we give a set of array it will draw the custom list and add to the corresponding screen, in the screen i have a vertical field manager with color and scrolling are enabled, when i add up to 8 item which displays inside the vertical field manager i can able to scroll, but when the array gives above that limit the items are drawn beyond the verical field manager and i cant able to scroll. the items which are drawn beyond the vertical field manager has no background color. Please help me...
Thanks in advance
05-11-2011 09:12 AM
Can you post some of the code that you're using here? There could be a number of reasons why this is happeneing and it would probably be easier if we could just look at what you're doing.
05-11-2011 09:21 AM
05-11-2011 09:30 AM
05-11-2011 09:34 AM
You already have scrolling, but your paintBackground is wrong. The first two parameters of fillRect should be
g.fillRect(getHorizontalScroll(), getVerticalScroll(), ...)
Right now, when you scroll to the items off-screen, they are white on white background - that's why you don't see them.