Okay I found a way to get this message I had to edit two files of the library
In the file utilities/m2elstrlist.c
...
line 53
const char *m2_el_strlist_get_str(m2_rom_void_p element, uint8_t idx)
{
return m2_el_strlist_cb_fnptr(element)(idx, M2_STRLIST_MSG_GET_STR);
}
/* HERE COMES MY EDIT */
const char *m2_el_strlist_focus(m2_rom_void_p element, uint8_t idx)
{
return m2_el_strlist_cb_fnptr(element)(idx, M2_STRLIST_MSG_FOCUS);
}
/* HERE ENDS MY EDIT */
const char *m2_el_strlist_select(m2_rom_void_p element, uint8_t idx)
{
return m2_el_strlist_cb_fnptr(element)(idx, M2_STRLIST_MSG_SELECT);
}
line 69
...
...
line 116
case M2_EL_MSG_NEW_FOCUS:
/* adjust the top value, if required */
m2_el_slbase_adjust_top_to_focus(parent_el, pos);
/* HERE COMES MY EDIT */
m2_el_strlist_focus(parent_el, pos);
/* HERE ENDS MY EDIT */
return 1;
line 121
...
and in the file utilities/m2.h
...
line 484
#define M2_STRLIST_MSG_GET_STR 101
#define M2_STRLIST_MSG_SELECT 102
#define M2_STRLIST_MSG_GET_EXTENDED_STR 103
#define M2_STRLIST_MSG_NEW_DIALOG 104
/* HERE COMES MY EDIT */
#define M2_STRLIST_MSG_FOCUS 105
/* HERE ENDS MY EDIT */
line 490
....
now i get the M2_STRLIST_MSG_FOCUS message in the strlist callback
thank you for the help! and the library of course... It must have been alot of work...!!