Message Dialog Box with "IF"

Please support our Pascal and Delphi advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Nov 2007
Posts: 29
Reputation: ferhatkuskaya is an unknown quantity at this point 
Solved Threads: 0
ferhatkuskaya ferhatkuskaya is offline Offline
Light Poster

Message Dialog Box with "IF"

 
0
  #1
Nov 26th, 2007
Hİ THANK YOU FOR YOUR LABEL COMMENTS LETS FORGET THAT QUESTION. I have chosen it with a different solution and . now I want to know how I will use the message buttons with if conditions...
I dont know why my message dialog box's message values are passive in my project. I want to make exited from my program when I click the yes button of message dialog box. But I couldnt get this result from these message dialog box. CAn you help me immediately pls? My code content is like below:

procedure programexit;
var
buton:integer;
begin
Buton:= Application.MessageBox('Are you sure to exit?',
'Mesaj Kutusu',
mb_YesNoCancel+mb_DefButton1);
if Buton = 1 Then Halt;
end;


procedure TAnaform.Image11MouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
Image11.Visible:=True;
CIKIS;
end;
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 2290 | Replies: 0
Thread Tools Search this Thread



Tag cloud for Pascal and Delphi
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC