According to the Delphi 7 Help file, the syntax for the MessageDlgPos 
function is

function MessageDlgPos(const Msg: string; DlgType: TMsgDlgType; Buttons: 
TMsgDlgButtons; HelpCtx: Longint; X, Y: Integer): Word;

function MessageDlgPos(const Msg: WideString; DlgType: TMsgDlgType; 
Buttons: TMsgDlgButtons; HelpCtx: Longint; X, Y: Integer; DefaultBtn: 
TMsgDlgBtn = mbNone; Bitmap: TBitmap = nil): Integer;

and the Delphi example for this function is

MessageDlgPos('Are you there?',mtConfirmation, mbYesNoCancel, 0, 200, 
200, mbYes);

However, the source files seem to have never heard of the DefaultBtn 
argument.  Worse, if the only two buttons are mbYes and mbNo, the YES 
button becomes the default (!) -- but there should be no default by 
default.  Or I have to ask my questions in the negative (Yuk!)

Does anyone know how to fix this?  Can I simply edit Dialogs.pas and 
recompile it?  How do I go about doing that?  (Not "how do I fix the 
source", but what do I compile, and does it need any special installation?)

Thanks,
Rainer

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to