60 fPwdLenMax = pwdlenmax;
64 fDialog->Connect(
"CloseWindow()",
"TGPasswdDialog",
this,
"CloseWindow()");
67 fDialog->AddFrame(
new TGLabel(fDialog, prompt),
73 fPasswd->SetCursorPosition(0);
74 fPasswd->Resize(300, fPasswd->GetDefaultHeight());
76 fPasswd->Connect(
"ReturnPressed()",
"TGPasswdDialog",
this,
"ReturnPressed()");
83 fOk->Connect(
"Clicked()",
"TGPasswdDialog",
this,
"ReturnPressed()");
86 fDialog->SetWindowName(
"Password dialog");
87 fDialog->SetIconName(
"Password dialog");
89 fDialog->MapSubwindows();
91 Int_t width = fDialog->GetDefaultWidth();
92 Int_t height = fDialog->GetDefaultHeight();
94 fDialog->Resize(width, height);
104 (mw - width) >> 1, (mh - height) >> 1, ax, ay, wdum);
105 fDialog->Move(ax, ay);
106 fDialog->SetWMPosition(ax, ay);
109 fDialog->SetWMSize(width, height);
110 fDialog->SetWMSizeHints(width, height, width, height, 0, 0);
115 fDialog->MapWindow();
155 Error(
"ReturnPressed",
"passwd buffer undefined");
TGTextBuffer * fPasswdText
TGTransientFrame * fDialog
void DoClose()
Handle close button.
const char * GetString() const
void CloseWindow()
Called when closed via window manager action.
ClassImp(TGPasswdDialog) TGPasswdDialog
Create an editor in a dialog.
void Error(const char *location, const char *msgfmt,...)
virtual void SendCloseMessage()
Send close message to self.
virtual ~TGPasswdDialog()
Delete log window.
void ReturnPressed()
Handle return.
virtual void UnmapWindow()