InputBox (X and Y coordinates?)

Started by
2 comments, last by Xorcist 22 years, 9 months ago
Is there a way to indicate to Delphi where to display the input box generated with the InputBox function? I found a way to do it for a simple MessageBox (using the MessageDlgPos function), but not for an InputBox. Any ideas? I know I could just create a custom form and use it as a dialog, but that''s just a waste of code to simply have it center on my application''s main form (which is all I really want). Thanks in advance.
Advertisement
There is no readily available function to do it for you. The easiest way would be to copy the source for the InputQuery function from dialogs.pas lines 1759-1828, make your own function InputQueryPos and modify the two lines that set the Left and Top properties of the form that is created.

Steve ''Sly'' Williams  Code Monkey  Krome Studios
Steve 'Sly' Williams  Monkey Wrangler  Krome Studios
turbo game development with Borland compilers
You know what, I never thought of doing that... thanks.
Well that couldn't have worked out any better. A quick cut and paste, a little added code, and whamo everything fell right into place. Thanks again.

Edited by - Xorcist on July 3, 2001 12:50:39 AM

This topic is closed to new replies.

Advertisement