Open GoogleCodeExporter opened 9 years ago
You could make a copy of m2elu32.c, rename the identifiers and implement an
updated function M2_EL_FN_DEF(m2_el_digit_fn)
Within m2_el_digit_fn you can get the current position with
m2_el_u32_get_digit_pos(fn_arg->nav)
Original comment by olikr...@gmail.com
on 7 Sep 2014 at 12:27
Thank you.
Unfortunately, I was not talented enough to use your suggestions.
After some trial and error I was able to put a Num_Flag close to the end of the
file you mentioned.
Here:
case M2_EL_MSG_SHOW:
if ( fn_arg->arg == 1 )
{
Num_Flag=1;
m2_pos_p b = (m2_pos_p)(fn_arg->data);
uint8_t w = m2_fn_get_width((fn_arg->element));
uint8_t h = m2_fn_get_height((fn_arg->element));
m2_gfx_normal_parent_focus(b->x, b->y, w, h, font);
return 0;
}
break;
Now the flag is true whenever the cursor is on a numerical field.
That's what I need to freely reassign my keys whenever I enter a u32num input
field.
Original comment by Clemens....@physik.uni-halle.de
on 9 Sep 2014 at 1:29
ok, sounds good.
Original comment by olikr...@gmail.com
on 9 Sep 2014 at 3:36
Original issue reported on code.google.com by
Clemens....@physik.uni-halle.de
on 5 Sep 2014 at 11:15