请问各位老大:我这样做到按某个按纽就自动弹出一个输入对话框并且取得其输入值

解决方案 »

  1.   

    实在没话说了……InputBox functionDisplays an input dialog box that lets the user enter a string.UnitDialogsCategorydialog and message routinesfunction InputBox(const ACaption, APrompt, ADefault: string): string;DescriptionCall InputBox to bring up an input dialog box ready for the user to enter a string in its edit box. ACaption is the caption of the dialog box.APrompt is the text that prompts the user to enter input in the edit box.ADefault is the string that appears in the edit box when the dialog box first appears.If the user chooses the Cancel button, InputBox returns the default string. If the user chooses the OK button, InputBox returns the string in the edit box.Use the InputBox function when there is a default value that should be used when the user chooses the Cancel button (or presses Esc) to exit the dialog. If the application needs to know whether the user chooses OK or Cancel, use the InputQuery function instead.