Running on Windows simulator…
[blockcode]
local myButton = ui.newButton {
default = defaultButton,
onEvent = PressHandler,
text = item,
id = item,
size = 16,
emboss = true
}
function PressHandler(event)
– So far the only one attribute I could reference is event.id
– All other reference like event.target, event.text all fail
end
[/blockcode]
Questions
-
Is there a generic way to find out what attributes are supported in an event?
-
Is there any way I could get back to the original button from the event?
Thank you for your help in advance.
Cheers
ec0000
[import]uid: 29942 topic_id: 7353 reply_id: 307353[/import]