Hello,
I created a form with a blackground color and now I cannot see the cursor.
Here is the code:
Code:
HorizontalFieldManager hfm = new HorizontalFieldManager();
RichTextField label = new RichTextField(labelName, RichTextField.NON_FOCUSABLE | RichTextField.USE_TEXT_WIDTH) {
protected void paint(Graphics graphics) {
graphics.setBackgroundColor(leftColor);
graphics.clear();
super.paint(graphics);
}
};
label.setFont(Font.getDefault().derive(Font.BOLD, 13));
BasicEditField editField;
editField = new BasicEditField("", defaultValue, EditField.DEFAULT_MAXCHARS, EditField.NO_NEWLINE | Field.FIELD_RIGHT) {
protected void paint(Graphics graphics) {
graphics.setBackgroundColor(rightColor);
graphics.clear();
super.paint(graphics);
}
public int getPreferredWidth() {
return getScreen().getWidth() / 2;
}
};
editField.setFont(Font.getDefault().derive(Font.PLAIN, 13));
hfm.add(label);
hfm.add(editField);
Any idea? thanks