def Message(msg, id=260, ok=None):
 _initialize()
 _interact()
 d = GetNewDialog(id, (-1))
 if (not d):
  print "EasyDialogs: Can't get DLOG resource with id =", id, ' (missing resource file?)'
  return
 h = d.GetDialogItemAsControl(2)
 SetDialogItemText(h, lf2cr(msg))
 if (ok is not None):
  h = d.GetDialogItemAsControl(1)
  h.SetControlTitle(ok)
 d.SetDialogDefaultItem(1)
 d.AutoSizeDialog()
 d.GetDialogWindow().ShowWindow()
 while 1:
  n = ModalDialog(None)
  if (n == 1):
   return

def Message ( msg , id = 260 , ok = None ) : _initialize ( ) _interact ( ) d = GetNewDialog ( id , ( - 1 ) ) if ( not d ) : print "EasyDialogs: Can't get DLOG resource with id =" , id , ' (missing resource file?)' return h = d . GetDialogItemAsControl ( 2 ) SetDialogItemText ( h , lf2cr ( msg ) ) if ( ok is not None ) : h = d . GetDialogItemAsControl ( 1 ) h . SetControlTitle ( ok ) d . SetDialogDefaultItem ( 1 ) d . AutoSizeDialog ( ) d . GetDialogWindow ( ) . ShowWindow ( ) while 1 : n = ModalDialog ( None ) if ( n == 1 ) : return
display a message string .