Announcement

Collapse
No announcement yet.

%MB_YES %MB_NO

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • %MB_YES %MB_NO

    Code:
    %MB_YES = &H6& (replaced by %MB_CANCELTRYCONTINUE = &H00000006&)
    %MB_NO  = &H7&
    In Win32api.inc those two "equates" has disappeared
    So also from MSDN WINUSER.H 
    Someone know why?
    Message box %MB_YESNO still return "6" or "7"
    ------------------
    Fred
    mailto:[email protected][email protected]</A>
    http://www.oxenby.se

    Fred
    mailto:[email protected][email protected]</A>
    http://www.oxenby.se

  • #2
    %MB_YES would mean "create a message box with just a Yes button". Not very useful. Not only that, but no version of Windows would recognize it.

    I think you want to use %IDYES (=6) and %IDNO (=7). If %MB_YES was included in Win32API.INC at some point, it must have been an error.

    -- Eric


    ------------------
    Perfect Sync Development Tools
    Perfect Sync Web Site
    Contact Us: mailto:[email protected][email protected]</A>
    "Not my circus, not my monkeys."

    Comment


    • #3
      I have no record of there ever having been separate %MB_YES and %MB_NO
      equates. The equates you'd use in defining the available options would
      be %MB_YESNO or %MB_YESNOCANCEL, if you're looking for Yes/No options.


      ------------------
      Tom Hanlin
      PowerBASIC Staff

      Comment


      • #4
        %MB_YES would mean "create a message box with just a Yes button". Not very useful.
        Oh, really?

        Code:
          MSGBOX "Do you agree to pay your support invoices in full and on time?", %MB_YES, "Answer Needed"
        MCM


        Michael Mattias
        Tal Systems (retired)
        Port Washington WI USA
        mm[email protected]
        http://www.talsystems.com

        Comment


        • #5
          I have dusted off an old TCP Client/server application i wrote back in january 2000.
          It did not work on WIN2000 then, and I thought I try to trace down the problems..
          I hardly ever use "messageboxes" so Eric is probably right.
          MB_YES is probably %IDYES (reply from MsgBox style %MB_YESNO when clicking YES-button)
          Back in januari 2000 I might have added them to Win32Api.inc, I am not doing
          that kind of addition to standard include-files anymore....
          Thanks

          ------------------
          Fred
          mailto:[email protected][email protected]</A>
          http://www.oxenby.se



          [This message has been edited by Fred Oxenby (edited October 12, 2001).]
          Fred
          mailto:[email protected][email protected]</A>
          http://www.oxenby.se

          Comment


          • #6
            [Response withdrawn. I took Michael seriously at first, but I now suspect that he was attempting to be funny.]



            [This message has been edited by Eric Pearson (edited October 12, 2001).]
            "Not my circus, not my monkeys."

            Comment


            • #7
              MS are always so strickt. Why no MB_MAYBE?

              (have seen MS dialogs with question "Do you want to..", and just Ok-button..)


              ------------------

              Comment


              • #8
                You mean like "Format hard drive now ?" + OK button ? In a sort-of similar vein, I remember
                an excerpt from a series of Windows howlers - a message box that pops up after a long delay
                and says -

                "Sorry, I forgot to tell you, that takes a long time"
                Zippety Software, Home of the Lynx Project Explorer
                http://www.zippety.net
                My e-mail

                Comment


                • #9
                  I like the %MB_MAYBE, I'm dying laughing here....

                  THis is the way I've always done it, much like the NT event log...

                  Code:
                                  If IsTrue g_lPromptFlag Then
                                      g_Result = MsgBox("Are you sure you wish to delete the log?",%IDOK,g_szMINE)
                                      If g_Result <> %IDOK Then Exit Function
                                      g_Result = MsgBox("Would you like to save a copy?",%MB_YESNOCANCEL,g_szMINE)
                                      If g_Result = %IDCANCEL Then Exit Function
                                      If g_Result = %IDYES Then
                                          g_Result = SaveLogAsText
                                          If IsFalse g_Result Then Exit Function 'Don't delete logfile
                                      End If
                                  End If
                  ------------------
                  Scott Turchin
                  MCSE, MCP+I
                  Computer Creations Software
                  http://www.tngbbs.com/ccs
                  Scott Turchin
                  MCSE, MCP+I
                  http://www.tngbbs.com
                  ----------------------
                  True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

                  Comment


                  • #10
                    On that note, see here for interface 'cock ups'...

                    http://www.iarchitect.com/mshame.htm

                    ------------------
                    Kev G Peel
                    KGP Software, Bridgwater, UK.
                    mailto:[email protected][email protected]</A>
                    kgpsoftware.com | Slam DBMS | PrpT Control | Other Downloads | Contact Me

                    Comment

                    Working...
                    X