Hello Guys
,
Here my Question: I have an Event Handler looking like this:
procedure TCLASS.Combo1Change(Sender: TObject);
begin
//Calling Something
Label1.Caption:= Multiply(3, 4);
//Doing Something Else
SomeLabel.Visible:= False;
SomeButton.Enabled:= False;
end;
Whats the "best" way to Solve following:
When Form initializes i want to Reuse this Handler to make certain Things invisible / Enable certain Things, but WITHOUT Doing "Label1.Caption:= Multiply(3, 4);". How should the Handler be Structured to achiev this ?
I thought of doing following:
create Variable and just skip those Functions wich i dont wanna Execute (not so nice solution)
create another Function where i make certain Things invisible and call this in event Handler
Please give me some advice. would be very grateful for it