Rainer von Saleski wrote:
> 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?)

The second version signature you show is the one from the 
QDialogs.pas unit for CLX applications. If you're getting the 
other signature that implies you're creating a VCL application, 
correct?

Since you're asking about the DefaultBtn parameter, I'm guessing 
what you're after is control over which button is default? If so, 
there's a way to get that effect using the CreateMessageDialog() 
routine in Dialogs.pas.

Before I go into excruciating detail about that, can you say just 
what it is you're after so's I don't waste time and bandwidth on 
something nobody wants?

Regards,

Stephen Posey
[EMAIL PROTECTED]



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

Reply via email to