Enumerate available text input mode in text widget | developer.brewmp.com Enumerate available text input mode in text widget | developer.brewmp.com

Developer

Enumerate available text input mode in text widget

BREW ITEXTCTL has an API to enumerate through available text input mode.
Is there anything similar for BUIW text widget?

The following can be used for different text modes in Text widget:
Numbers: IWIDGET_SetInputMode(widget ptr, AEE_TMODE_NUMBERS);
Alpha Numeric: IWIDGET_SetInputMode(widget ptr, AEE_TMODE_MULTITAP_MC);

The following can be used for different text modes in Text widget:
Numbers: IWIDGET_SetInputMode(widget ptr, AEE_TMODE_NUMBERS);
Alpha Numeric: IWIDGET_SetInputMode(widget ptr, AEE_TMODE_MULTITAP_MC);

BUIW Text Widget has 5 hardcode input modes
AEE_TMODE_NUMBERS
AEE_TMODE_MULTITAP_MC
AEE_TMODE_MULTITAP_UC
AEE_TMODE_MULTITAP_LC
AEE_TMODE_MULTITAP_SC
No api for enumeration through this text input mode

BUIW Text Widget has 5 hardcode input modes
AEE_TMODE_NUMBERS
AEE_TMODE_MULTITAP_MC
AEE_TMODE_MULTITAP_UC
AEE_TMODE_MULTITAP_LC
AEE_TMODE_MULTITAP_SC
No api for enumeration through this text input mode

Thing is OEM most likely will implement their own text widget controller and additional text input modes than just triple/number/symbol.
In this case without some kind of enumeration mechanism (to at least get a input mode code and some kind of textual description, much like ITEXTCTL), it's difficult to build any text widget to allow user to visually select a text mode (I was gonna build a menu that the user can select from).
Has anyone done something like this (allowing user to select text input mode from a menu without hard-coding just the known modes)?

Thing is OEM most likely will implement their own text widget controller and additional text input modes than just triple/number/symbol.
In this case without some kind of enumeration mechanism (to at least get a input mode code and some kind of textual description, much like ITEXTCTL), it's difficult to build any text widget to allow user to visually select a text mode (I was gonna build a menu that the user can select from).
Has anyone done something like this (allowing user to select text input mode from a menu without hard-coding just the known modes)?

dont know whether this will work or not but can be tried . It Probably may work
int prevInputMode = 0;
prevInputMode = IWIDGET_GetInputMode( TextWidget PTR )
for (int i = 0; i< AEE_TM_MAX; i++)
{
if(SUCCESS == IWIDGET_SettInputMode( TextWidget PTR , i ) )
{
// Add it to available input mode list
}
}
IWIDGET_SettInputMode( TextWidget PTR , prevInputMode );
// Now here you have a list of available input modes which can be set on the text widget

dont know whether this will work or not but can be tried . It Probably may work
int prevInputMode = 0;
prevInputMode = IWIDGET_GetInputMode( TextWidget PTR )
for (int i = 0; i< AEE_TM_MAX; i++)
{
if(SUCCESS == IWIDGET_SettInputMode( TextWidget PTR , i ) )
{
// Add it to available input mode list
}
}
IWIDGET_SettInputMode( TextWidget PTR , prevInputMode );
// Now here you have a list of available input modes which can be set on the text widget

Sorry :(
Instead of AEE_TM_MAX try using AEE_TLANG_USER starting from AEE_TLANG_NONE instead of 0.

Sorry :(
Instead of AEE_TM_MAX try using AEE_TLANG_USER starting from AEE_TLANG_NONE instead of 0.

The suggestion however is not sufficient to build a menu to show user. I cannot show a hex number to the user.
The combination of possible text modes is too many, and constructing a "display name" for the user is not possible for OEM implemented text modes.
So seems there is no API to query a 'display name' using the input mode hex number...
Wondering how everyone is showing a text box with some kind of mode indication.

The suggestion however is not sufficient to build a menu to show user. I cannot show a hex number to the user.
The combination of possible text modes is too many, and constructing a "display name" for the user is not possible for OEM implemented text modes.
So seems there is no API to query a 'display name' using the input mode hex number...
Wondering how everyone is showing a text box with some kind of mode indication.