InputBox (X and Y coordinates?)
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.
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 Code Monkey Krome Studios
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement