function onFocusChanged() as void
print "Focus on item: " + stri(m.simpleMarkupList.itemFocused)
print "Focus on item: " + stri(m.simpleMarkupList.itemUnfocused) + " lost"
index=m.simpleMarkupList.itemFocused
?"INDEX "index
end function
function onKeyEvent(key as String, press as Boolean) as Boolean
handled = false
if (m.simpleMarkupList.hasFocus() = true) and (key = "right") and (press=true)
m.simpleMarkupGrid.setFocus(true)
m.simpleMarkupList.setFocus(false)
?"key "key
handled = true
else if (m.simpleMarkupList.hasFocus() = true) and (key = "down") and (press=true)
?"key "key
m.simpleMarkupGrid.jumptoItem=index
else if (m.simpleMarkupGrid.hasFocus() = true) and (key = "left") and (press=true)
m.simpleMarkupGrid.setFocus(false)
m.simpleMarkupList.setFocus(true)
handled = true
endif
return handled
end function
function onFocusChanged() as void
print "Focus on item: " + stri(m.simpleMarkupList.itemFocused)
print "Focus on item: " + stri(m.simpleMarkupList.itemUnfocused) + " lost"
index=m.simpleMarkupList.itemFocused * 4
m.simpleMarkupGrid.jumpToItem= index
end function