Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (43 sloc) 989 Bytes
unit CreateUser;
{$mode objfpc}
interface
uses
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
StdCtrls, Buttons;
type
{ TfmCreateUser }
TfmCreateUser = class(TForm)
bbCreate: TBitBtn;
bbCanel: TBitBtn;
cbRoles: TComboBox;
cxGrantRole: TCheckBox;
edUserName: TEdit;
edPassword: TEdit;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
procedure cxGrantRoleChange(Sender: TObject);
private
{ private declarations }
public
procedure Init(dbIndex: Integer);
{ public declarations }
end;
var
fmCreateUser: TfmCreateUser;
implementation
{ TfmCreateUser }
uses SysTables;
procedure TfmCreateUser.cxGrantRoleChange(Sender: TObject);
begin
cbRoles.Visible:= cxGrantRole.Checked;
end;
procedure TfmCreateUser.Init(dbIndex: Integer);
var
Count: Integer;
begin
cbRoles.Items.CommaText:= dmSysTables.GetDBObjectNames(dbIndex, 9, Count);
end;
initialization
{$I createuser.lrs}
end.
Jump to Line
Something went wrong with that request. Please try again.