1

May I know how to close or hide the overlay keypad from the editField when I switch tab (panel)?

Winona
  • 2,950
  • 2
  • 21
  • 29

1 Answers1

0

You can use

Osp::Ui::IScrollPanelEventListener Interface Reference

I think you need to handle OnOtherControlSelected()

Yogi
  • 1,035
  • 2
  • 13
  • 39
  • Hi, thanks for responding! Do I implement this over all the panels? Or just the tabForm itself? – Winona Nov 29 '11 at 14:08
  • if you editfield is child of scrollpanel then call __pEditField->AddScrollPanelEventListener(*this). From documentation: If the scroll panel is the parent of edit area or edit field, you can use the IScrollPanelEventListener::OnOtherControlSelected() event handler to be notified when another child is selected while the overlay keypad is open. This feature is particularly useful when there are multiple text input controls on the same screen, because the system automatically makes sure that the currently focused edit area or edit field remains visible. – Yogi Nov 30 '11 at 04:12
  • yup all my editfields have scrollPanel->AddControl(*editField) – Winona Nov 30 '11 at 06:27
  • __pEditField->AddScrollPanelEventListener(*this); are you getting a callback in OnOtherControlSelected(), I think you need to close your keypad inside this function. – Yogi Nov 30 '11 at 06:37
  • let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/5452/discussion-between-yogi-and-winona) – Yogi Nov 30 '11 at 06:42