PeterBLITZ / m2tklib

Automatically exported from code.google.com/p/m2tklib
0 stars 0 forks source link

HLIST nested in VLIST hangs when displaying #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
M2_LABEL(_setup_title, "f1", "Setup");

M2_LABEL(_setup_beep_l, "f0", "Beep");
M2_COMBO(_setup_beep_c, "f0", &_setup_beep_state, 3, _setup_beep_strings);
M2_LIST(_setup_beep_list) = { &_setup_beep_l, &_setup_beep_c };
M2_HLIST(_setup_beep, NULL, &_setup_beep_list);

M2_ROOT(_setup_exit, "f0", "exit", &_main);

M2_LIST(_setup_list) = { &_setup_title, &_setup_beep, &_setup_exit };
M2_VLIST(_setup, NULL, _setup_list);

This menu hangs after drawing the "Setup" title.

If it is re-organised without the _setup_beep_list/HLIST and all three elements 
are listed in the _setup_list, it works correctly.

Original issue reported on code.google.com by DrZip...@gmail.com on 11 Jul 2011 at 7:20

GoogleCodeExporter commented 8 years ago
this is a small typing error:
M2_HLIST(_setup_beep, NULL, &_setup_beep_list);

unfortunately, lists do not need '&', so
M2_HLIST(_setup_beep, NULL, _setup_beep_list);
should work.

Original comment by olikr...@gmail.com on 11 Jul 2011 at 10:15