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>
Announcement
Collapse
No announcement yet.
%MB_YES %MB_NO
Collapse
X
-
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
Leave a comment:
-
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"
Leave a comment:
-
MS are always so strickt. Why no MB_MAYBE?
(have seen MS dialogs with question "Do you want to..", and just Ok-button..)
------------------
Leave a comment:
-
[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).]
Leave a comment:
-
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).]
Leave a comment:
-
%MB_YES would mean "create a message box with just a Yes button". Not very useful.
Code:MSGBOX "Do you agree to pay your support invoices in full and on time?", %MB_YES, "Answer Needed"
Leave a comment:
-
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
Leave a comment:
-
%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>
Leave a comment:
-
%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
Tags: None
Leave a comment: