I am trying to set a buttons enable property from within the child form, but nothing happens.
procedure TMDIChild.WebBrowser1CommandStateChange(Sender: TObject;
Command: Integer; Enable: WordBool);
begin
case Command of
CSC_NAVIGATEBACK: form1.backbtn.Enabled:=Enable;
CSC_NAVIGATEFORWARD: form1.Forwrdbtn.Enabled := Enable;
end;
end;
what gives?
procedure TMDIChild.WebBrowser1CommandStateChange(Sender: TObject;
Command: Integer; Enable: WordBool);
begin
case Command of
CSC_NAVIGATEBACK: form1.backbtn.Enabled:=Enable;
CSC_NAVIGATEFORWARD: form1.Forwrdbtn.Enabled := Enable;
end;
end;
what gives?