Hi,
Note : Red Highlight indicates the current focus
Query:
how to find whether the current focused element is the last visible element in the menu display?
In the above flow diagram, Initially the Cursor will be in Item1 . Then on each down it will move to Item2,Item3,Item4 ... Item7 again on down it will move to Item1.
Note : The number of visible elements in the display at a time can be 4 Items,
- Case 1 : Initially Item1 to Item4 will be in the display. When Down Key is pressed from Item 3, the Cursor will be in last visible element in the display i.e. Item4.
- Case 2 : When Down Key Press is done from Item 4, then Item5 will be visible. Now Item2 to Item5 will be in the Visible window, i.e. these elements will be visible to the user. Here the Cursor will be in last visible element in the display i.e. Item5.
- Case 3 : When Down Key Press is done from Item 5, then Item6 will be visible. Now Item3 to Item6 will be in the Visible window, i.e. these elements will be visible to the user . Here the Cursor will be in last visible element in the display i.e. Item6.
Here how to find whether the current focused element is the last visible element in the menu display (i.e. Item 4, Item5 and Item6 respectively for Case 1, Case2 and Case3 as mentioned above will be the last visible item in the display and also it will be in Focus).
Any API's to get the same?
Note : We are using Outline.EnsureVisible() to bring the Item to Focus
Best Regards,
Preethi S
Robert Bosch - India