开发者

Blackberry 9800 EditField Cursor not Drawing in Proper Position

I have built a custom EditField, and I am having issues with the cursor when the slider is open.

The EditField I am using is subclassed from EditField to add a nicer style using FieldDecor.setVisualStateBorderAndBg( this );, but I did not change the functionality. Even paint just calls super.paint( graphics );. The only behaviour I have modified is a call to show and hide the soft (during focus events) keypad for when the slider is closed.

The issue is when the application opens with the slider open, and text is being edited. The cursor is drawn where it should be on initia开发者_开发知识库l focus, but as the text is being edited, stays in the same place, like so:

Blackberry 9800 EditField Cursor not Drawing in Proper Position

If the slider is closed this is not an issue, nor is it an issue when the slider is opened and the keyboard is used.

The cursor position is being set and remembered appropriately, just not updated visually. I have tried adding calls to invalidate() and overriding update(), but with no success.

Note, this is only an issue on the 9800 simulator, and not on an 8530 device.

Update: This only happens when during direct focus events. It does not appear when using the trackball.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜