09-15-2008 11:42 AM
Is there some trick with creating a Custom Field. I have a Pearl and my custom fields
do not clear the background when invalidate is called to paint themselves when needed for
key interaction. These fields are in an extended VerticalManager that
paints its background with an image. The paint(Graphics) for a Custom field is simply
public void paint(Graphics gc){
do my painting call no super
}
Now on a BB 8700 the fields clear white. So what do I need to override? I don;t call the super so it should
not clear it.
09-15-2008 04:30 PM
The drawFocus mehod could have an impact here if the field is receiving focus. Where is the background image being drawn, in the Manager that the field resides in?
Can you provide the code within your paint method so we can see what your field is drawing?
09-15-2008 05:33 PM
09-16-2008 10:31 AM
Thanks will do that in onUnFocus and OnFocus as I had to override these to prevent
clearing on the 8110. The OS 4.2.1.96 AT&T standard which is a wide audience we support
4.2.1 the lowest for us. Newer devices such as 8110 are 4.3 for AT&T