Thursday, November 23rd 2017, 12:14pm UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

mjanas10

Beginner

Date of registration: Oct 5th 2017

Posts: 19

1

Thursday, October 19th 2017, 5:59pm

Focus - why buttons not focussable?

Dear all

I'm struggling to understand why you would want Buttons in an exemplary Keypad to be set non-focussable, as in example WIDGET_NumPad where BUTTON_SetFocussable(hItem, 0)? What's the use of focusability in general and why it doesn't suit in this particular case? Wouldn't it be easier if you had known that the user has focused exactly on a given button?

Cheers

SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 414

2

Friday, October 20th 2017, 9:30am

Hi,

The buttons are not focusable to make sure the EDIT widgets don't lose their focus.

If they were focusable you had to either click the EDIT widget after each button press or set the fpcus back to the EDIT widget in your code.

Regards
Sven

mjanas10

Beginner

Date of registration: Oct 5th 2017

Posts: 19

3

Friday, October 20th 2017, 10:26am

Thanks for clear answer :thumbup: