Maybe my question have a simple answer, but I don't know how to detect an Ok/Cancel button press.
I create a dialog in this way
Code: Select all
res =
"dialog { alignChildren: 'fill', text: 'xxxxx', \
...
buttons: Group { orientation: 'row', alignment: 'right', \
okBtn: Button { text:'OK', properties:{name:'ok'} }, \
cancelBtn: Button { text:'Cancel', properties:{name:'cancel'} } \
} \
}";
win = new Window (res);
win.center(); win.show();

Thanks in advance
