Topic: A way to temporarily change a label.
Dear Everyone:
I have a procedure: example:
procedure Button_Recebido_tecnico_onClick (Sender: TObject; var Cancel: boolean);
begin
ShowPainelTecnico;
frm_assistencia.Button_Panel_Tecnico_Seguinte.Caption := 'Alterar';
frm_assistencia.Button_Panel_Tecnico_Cancel.visible := false;
frm_assistencia.Button_Panel_Tecnico_fechar.Visible := true;
end;
This will change the caption of a button , and hide / show two other buttons.
The problem is Next time i create another form (another ID etc...) the Changes on these buttons are still present.
The only wayt i can counter this is by manualy inserting a syntax like this:
frm_assistencia.Button_Panel_Tecnico_Seguinte.Caption := 'Seguinte'; (THe default label on the button)
frm_assistencia.Button_Panel_Tecnico_Cancel.visible := true; (the default visible status on the button)
frm_assistencia.Button_Panel_Tecnico_fechar.Visible := false; (the default visible status on the button).
This is easy with just 3 components, but once you have a million things changing things start to become chaotic.
Is there a way to state something liike:
"Do Once per DB" or "Do once per trigger" ?