|
发表于 2008-1-25 10:32:00
|
显示全部楼层
这些代码要写在你自己的登录窗体里
unit LOGONFORM;
interface
uses
Business.System, Business.Forms;
type
TLOGONFORM = class(BASESYSTEMINTERFACE.TLOGONFORM)
private
{private declarations}
public
static function ShowLogonForm(var AName, APass: string): Boolean;
end;
implementation
static function TLOGONFORM.ShowLogonForm(var AName, APass: string): Boolean;
begin
with TLogonForm.Create(nil) do
try
eName.Text := AName;
ePass.Text := APass;
if ShowModal = Business.Forms.Controls.mrOK then
begin
AName := eName.Text;
APass := ePass.Text;
Result := True;
Forms.Application.ProcessMessages;
end
else
Result := False;
finally
Free;
end;
end;
end. |
|