func doMessage(_data) fvar (wxType) fvar(tp) tp = 'wxOK' & 'wxYES_NO' & 'wxOK | wxCANCEL' & 'wxYES_NO | wxCANCEL' wxType = tp[Type] if (linked(onMessage)) lng.decl_loc_var(ans, 'int') println(ans, ' = ::wxMessageBox(', Message, ', ', Caption, ', ', wxType, ' | wxICON_', upper(Icon), ');') event(onMessage, ans) else println('::wxMessageBox(', Message, ', ', Caption, ', ', wxType, ' | wxICON_', upper(Icon), ');') end end