03-18-2009 03:28 PM
I've been trying to get an app to work on the Storm without overriding the touchEvent() method (and thereby breaking compatablity with previous OS versions). So far most everything works, but I've hit a little snag.
I have an EditField that I would like to four lines high, I've set the extent and virtualExtent of the field to indicate that it should be this high. I want to be able to click anywhere in those four lines and setFocus on the EditField. Currently the focus will only be set if I touch the first line of the EditField (when the field is empty). If there is text on the other four lines then I can touch there and focus will be set. I would like to be able to set focus to the field, even when empty, by touching anywhere inside the field's extent.
Any ideas how to do this?
03-18-2009 03:39 PM
03-18-2009 04:15 PM
Use MainScreen, on MainScreen you need not to implement touchEvent(). MainScreen will manage all the events of touch.
Press the kudos button to thank the user who helped you.
If your problem was get solved then please mark the thread as "Accepted solution".