TextTC handles BREW pointer events for a TextWidget, and responds by
- Moving the cursor position TextTC moves the cursor position beneath the pointer if there is some text at the pointer position. The cursor position is moved on EVT_POINTER_DOWN. - Selecting text TextTC selects the underlying text when the pointer is dragged over the text. The text selection process stops when the pointer moves outside TextWidget's client rect, or on EVT_POINTER_UP.
Using TextTC from your application:
Applications do not need to deal with TextTC directly if they want to have the default behavior as described above. If the application needs to customize the behavior of this touch controller, it can do so by overriding the handler for the touchcontroller.
The Text Touch Controller is instantiated by passing AEECLSID_TextTC into ISHELL_CreateInstance.
The TextTC is reference counted. When you are done with your reference to the TextTC, you should release that reference. Any controller-specific cleanup will be handled for you when all references are released.