Rainer von Saleski wrote:
> There is only one help file entry, and it seems to be for both VCL and 
> CLX.  It states the units as "Dialogs or QDialogs".  The two definitions 
> are not labelled as "VCL flavor", "CLX flavor", etc., so I take that to 
> imply "overloaded versions -- use either one".
> 
> My interest is in using both the position (X and Y) and the DefaultBtn 
> arguments.  Hence MessageDlgPos, not MessageDlg.
> 
> Yes, I could just rewrite the whole thing from scratch, as some of you 
> have suggested or done; but that seems, well, not in the spirit of 
> reusable programming.  And, yes, more than one of your suggestions would 
> meet my needs.

The spirit of reusable code presumes that you start out with usable 
code. In your case, you don't have that.

What you _do_ have is CreateMessageDialog. It's reusable. You can call 
it to get a basic dialog box, and then adjust its location and change 
the default button before you display it. That's not "rewriting the 
whole thing from scratch."

The function you were hoping to call is a function that you never had in 
the first place. You haven't _lost_ anything by being unable to call 
that function since you were never able to call it at all. All you had 
was the prototype of a function. I had a prototype once:

procedure DoWhatIMean;

I couldn't call it, either.

> But I am left with the nagging question of "How do I change one of the 
> Borland-supplied units?"  Is there an easy answer?

Copy the unit to your project's directory and add it to your project. 
Change it as you like. The compiler may complain about other missing 
units. Copy those to your project's directory, too.

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

Reply via email to