PeterBLITZ / m2tklib

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

XBM Example is invalid #110

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

comment on elref:

Hi Oliver,

In the XBM example, I tried to change the XBMROOTP elements to XBMBUTTONP, 
using the code in this reference. It seems that the buttons are not selectable 
(no frame outside the element, down and up keys are useless), and the focus is 
always on the first element.

I replaced

M2_XBMROOTP(el_xbm_mc, "w30h30", 28, 28, memory_card_28_bits, &el_mc); 
M2_XBMROOTP(el_xbm_tools, "w30h30", 28, 28, tools_28_bits, &el_tools);

with

extern M2tk m2; void fn_xbm_select_sd(m2_el_fnarg_p fnarg) {

    m2.setRoot(&el_mc); 

} void fn_xbm_select_tools(m2_el_fnarg_p fnarg) {

    m2.setRoot(&el_tools); 

}

M2_XBMBUTTONP(el_xbm_mc, "w30h30", 28, 28, memory_card_28_bits, 
fn_xbm_select_sd); M2_XBMBUTTONP(el_xbm_tools, "w30h30", 28, 28, tools_28_bits, 
fn_xbm_select_tools);

zz

Original issue reported on code.google.com by olikr...@gmail.com on 9 Jun 2013 at 2:46

GoogleCodeExporter commented 8 years ago
todo: check with XBM example on arduino (dogm128 shield)

Original comment by olikr...@gmail.com on 9 Jun 2013 at 2:46

GoogleCodeExporter commented 8 years ago
XBM example updated (Arduino) --> Confirmed, the focus is not visible 

Original comment by olikr...@gmail.com on 2 Nov 2013 at 7:30

GoogleCodeExporter commented 8 years ago
XBMBUTTON has called wrong base class --> fixed & tested

Thanks for the hint!

Original comment by olikr...@gmail.com on 3 Nov 2013 at 5:48