Реферат: Разработка программы психотестирования
procedure SpeedButton1Click(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
defque:byte;
end;
var
frmTest: TfrmTest;
implementation
{$R *.DFM}
uses mainfrm, Resfrm;
procedure tfrmtest.load;
begin
label1.caption:=test[defque].text;
rb1.Caption:=test[defque].quest[1];
rb2.Caption:=test[defque].quest[2];
rb3.Caption:=test[defque].quest[3];
speedbutton1.enabled:=false;
rb1.Enabled:=true;
rb2.Enabled:=true;
rb3.Enabled:=true;
rb1.Checked:=false;
rb2.Checked:=false;
rb3.Checked:=false;
if rb3.caption='' then rb3.hide else rb3.Show
end;
procedure TfrmTest.FormActivate(Sender: TObject);
begin