11-11-2009 02:57 PM
Is it correct that you can only have a single field focused at any time? I am using the TextBitmapManager example from the recent UI tutorial video -- so my screen has a list of fields with an icon and corresponding text. The text will highlight/focus fine, but not the images. Is the only solution to write some kind of focus listener to also draw something around the image?
11-12-2009 03:36 AM
only a single field can have the focus. you can, however, have several fields appear to be focused by interfering with their painting. you have to decide where the real focus have to be, of course.
11-12-2009 09:44 AM
hrmm thats what i figured. so if i wanted to repaint the bitmap field to match the associated textfield that has focus, is there just a default highlighted style thats used to repaint as if it were focused? im just not sure how to re-write a paint method to emulate what a field looks like if its focused.
11-12-2009 10:16 AM
you can try drawFocus
11-12-2009 10:42 AM
ahh yeah thanks. that does almost what i want ... so if i have a list of icons/text on the screen, i can now get it to "focus" both the icon and the text (both are drawn as focused) when i select them. although it individually highlights the icon and the text, and not the full row. (so its large highlighted square icon, white space, smaller highlighted text -- instead of full highlighted row). im guessing i should just redo this as a listfield ...
thanks for your help