Hello all. I need a keyboard for typing values with floating point, but style "EDIT_FIELD_STYLE_NUMBER" doesn't have it. How can I add key with to keyboard?
Hi,
You can implement the Tizen::Ui::IInputConnectionEventListener & Tizen::Ui::IInputConnectionProvider interfaces, and bind the EditField to the required Input Panel.
Tizen::Ui::Controls::EditField* __pEditField;
Tizen::Ui::InputConnection* __pInputConnection;
__pEditField = new EditField();
__pEditField->Construct(Rectangle(20, 30, 500, 200), EDIT_FIELD_STYLE_NORMAL, INPUT_STYLE_OVERLAY, false, 20, GROUP_STYLE_NONE);
AddControl(__pEditField);
__pInputConnection = new InputConnection();
__pInputConnection->Construct(__pEditField, *this, *this);
__pInputConnection->BindInputMethod();
__pInputConnection->SetInputPanelStyle(INPUT_PANEL_STYLE_NUMBER);
Can show the input panel when editfield is pressed using the following:
__pInputConnection->ShowInputPanel();