Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>m_query() - place a yes/no query on the screen</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     m_query() - place a Yes/No query on the screen
  Usage:    <logical> = m_query(<prompt>,[<color>])
  Params:   string <prompt> - prompt to display
            integer <color> - color for the query box
            If no color is specified, then the standard Clipper
            foreground color is used for normal text, and the
            enhanced Clipper color is used for the highlighted text.

  Returns:  logical .T. if response was yes, .F. if no or ESCape

 ---------------------------------- Example ---------------------------------

                 mcolor = 23         && white on blue
                 if (m_query("Do you want to quit?", mcolor))
                      quit
                 else
                      return
                 endif

  Note:     The query box automatically saves and restores the screen, if
            the global mouse message area for auto saving the screen
            (m_data(22)) is set to 1. The frame surrounding the display
            window can be set by the global mouse message function
            m_frame(). The shadow color and shadow type can be set
            via the global mouse message area 16 and 17. Use the
            m_data() function to set these values. It also is considered a
            wait state so SET KEY TO and timeout() procedures can be
            called. Your prompt string should not exceed 70 characters in
            length. The m_query() function is written in Clipper using the
            mouse functions. The source code is provided so you may
            make modifications to suit your particular application. See the
            file c_m_quer.prg.


See Also: m_prompt() m_menu() m_choice() m_message() mx_choice()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson