LF_Message

LuaFAR 3

LF_Message


int LF_Message(
    PluginStartupInfo *Info,
    const wchar_t *Msg,
    const wchar_t *Title,
    const wchar_t *Buttons,
    const char    *Flags,
    const wchar_t *HelpTopic)

Parameters:

  Info:        Pointer to a static struct that must be already
               initialized during SetStartupInfo call.
  Msg:         Message text; if multiline, then the lines must be
               separated by '\n'
  Title:       Message box title
  Buttons:     Button captions; if multiple, then the captions
               must be separated by ';'
  Flags:       A combination of the following characters:
                 'w' stands for FMSG_WARNING
                 'e' stands for FMSG_ERRORTYPE
                 'k' stands for FMSG_KEEPBACKGROUND
                 'l' stands for FMSG_LEFTALIGN
                 'n' stands for "no wrapping of long lines"
  HelpTopic:   Help Topic (can be NULL)

Returns:

  -1 if escape pressed, else - button number chosen (0 based).

Description:

This is an alternative interface to the FAR function Message.