Oh, I see. They're declared protected in TCustomForm, and unfortunately they're not declared virtual. I've only ever used them inside a form.
If you want to use them from outside your TForm code, then a simple way could be:
TForm1 = class(TForm)
private
{ private declarations }
public
Procedure MyBeginFormUpdate;
Procedure MyEndFormUpdate;
Function MyFormIsUpdating: Boolean;
end;
implementation
procedure TForm1.MyBeginFormUpdate;
begin
BeginFormUpdate;
end;
procedure TForm1.MyEndFormUpdate;
begin
EndFormUpdate;
end;
function TForm1.MyFormIsUpdating: Boolean;
begin
Result := FormIsUpdating;
end;
And then just call the MyXXXX routines from the outside...
(There's probably a better way to widen the scope of the original calls - if so, hopefully others will chime in
)
UPDATE: Been thinking about this. Having them declared Protected was a wise design decision. Essentially what the LCL developers are saying is that only a Form should be responsible for it's own controls/drawing, and that really you should be moving all the code that dynamically creates controls (assuming that's what you're doing) to inside the Form itself. In light of this, the method I've proposed above, while it will work, should be considered a hack.