-
Notifications
You must be signed in to change notification settings - Fork 0
/
PromptForString.h
42 lines (36 loc) · 1.34 KB
/
PromptForString.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//---------------------------------------------------------------------------
#ifndef PromptForStringH
#define PromptForStringH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <AppEvnts.hpp>
#pragma message "End of auto-included headers"
//---------------------------------------------------------------------------
bool PromptForString(const String &Prompt, String &Value);
//---------------------------------------------------------------------------
class TFormPromptForString : public TForm
{
__published: // IDE-managed Components
TPanel *Panel1;
TPanel *Panel2;
TLabel *LabelPrompt;
TButton *ButtonOk;
TButton *ButtonCancel;
TEdit *EditValue;
TApplicationEvents *ApplicationEvents;
void __fastcall ApplicationEventsIdle(TObject *Sender, bool &Done);
private: // User declarations
bool m_bFirstIdle;
public: // User declarations
__fastcall TFormPromptForString(TComponent* Owner);
void Set(const String &Prompt, const String &Value);
String GetValue();
};
//---------------------------------------------------------------------------
extern PACKAGE TFormPromptForString *FormPromptForString;
//---------------------------------------------------------------------------
#endif