While the text control is active, your application must send all keypress events to it by calling ITEXTCTL_HandleEvent(). The input mode menu control is managed by the underlying text control. If the input mode menu is activated by pressing the associated softkey, then the underlying text control will be deactivated until the input mode menu is dismissed.
To use a text control in your application
1. Call ISHELL_CreateInstance() to create an instance of the text control.
2. Call ITEXTCTL_SetRect() to specify the screen rectangle that contains the text control.
3. If specified, call ITEXTCTL_SetTitle() or ITEXTCTL_SetText() to specify the control's title and the initial value of its text string.
4. Call ITEXTCTL_SetProperties() to set any text control properties.
5. Call ITEXTCTL_SetSoftKeyMenu() to specify the Soft Key menu that is associated with the text control, if any.
6. Call ITEXTCTL_SetActive() to activate the text control and draw its contents on the screen.
7. While the text control is active, call ITEXTCTL_HandleEvent() to pass it any key events generated by the user.
8. When the device user has completed entering text, call ITEXTCTL_GetText() or ITEXTCTL_GetTextPtr() to retrieve the text the device user has entered. (If you are using a Soft Key menu, the device user may signal the completion of text entry with a "Done" item in the menu, or by pressing the SELECT or other key if no Soft Key menu is present).
9. Call ITEXTCTL_Release() to free the text control when you no longer need it.
The following header file is required for ITextCtl
AEEText.h
Required Header File
AEEText.h
No comments:
Post a Comment