A little something somebody else might find useful. Written in CC502
Code:
#BREAK ON #INCLUDE "win32api.inc" FUNCTION PBMAIN () AS LONG LOCAL ReturnValue AS LONG MessageBox 0, "This is a test message box.", "Test Message Box" , 5 TO ReturnValue PRINT;ReturnValue BEEP PRINT;"Keep on trucking." WAITKEY$ END FUNCTION ' MessageBox Value ReturnValue returns ' 0 = Okay 1 = Okay ' 1 = Okay, Cancel 2 = Cancel ' 2 = Abort, Retry, Ignore 3 = Abort ' 3 = Yes, No, Cancel 4 = Retry ' 4 = Yes, No 5 = Ignore ' 5 = Retry, Cancel 6 = Yes ' 6 = Cancel, Retry, Continue 7 = No ' 7 = Nothing 8 = Not Defined ' 8 = Nothing 9 = Not Defined ' 9 = Nothing 10 = Try Again ' 11 = Continue
Comment