Fórum SpeedButton não habilita corretamente. #578294
23/03/2017
0
Yuri Menechelli
Curtir tópico
+ 0Posts
23/03/2017
Erich
Olá faça assim:
BtSalvar.enabled := dataset.enable in [dssinsert,dssedit]
BtCancelar.enabled := dataset.enable in [dssinsert,dssedit]
boa sorte!!
Gostei + 0
23/03/2017
Nomad
Ou pode verificar se no onClick do botão Inserir, está habilitando o salvar e o cancelar..
por exemplo:
procedure TForm1.InserirClick(Sender: TObject);
begin
btnSalvar.Enabled := true;
btnCancelar.Enabled := true;
end;
Gostei + 0
23/03/2017
Jones Granatyr
Gostei + 0
23/03/2017
Yuri Menechelli
procedure TfrmCadFunc.acInserirExecute(Sender: TObject);
begin
inherited;
with DmDados do
begin
cdsFuncionarios.close;
cdsFuncionarios.CommandText := 'SELECT * FROM T_FUNCIONARIOS';
cdsFuncionarios.Open;
end;
end;
Gostei + 0
23/03/2017
Yuri Menechelli
Gostei + 0
23/03/2017
Yuri Menechelli
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)