24-01-2009, 12:21 PM
مادام انت شرحت عن الـ MessageBox كان تكمل معروفك و تشرح عن الـ MesssageDLg
على العموم نسيت نقطة مهمة و هي :
انسخدام If في الـ MessageBox
مثال :
على العموم نسيت نقطة مهمة و هي :
انسخدام If في الـ MessageBox
مثال :
كود :
[color=Blue][B]if [/B][/color]MessageBox(0,[color=RoyalBlue]'Press yes or no ..'[/color],[color=royalblue]'Title'[/color],MB_YESNO + MB_ICONINFORMATION)=Id_YES then
[color=Blue][B]Begin[/B][/color]
ShowMessage('You pressed yes');
[color=blue][B]end[/B][/color] [color=blue][B]else[/B][/color]
[color=blue][B]Begin[/B][/color]
ShowMessage('You pressed no');
[color=blue][B]end;[/B][/color]
