I'm using RVAControlPanel OnCreateForm to change the opening position of the dialogs. Works well to reposition:
Code: Select all
procedure TForm1.RVAControlPanel1CreateForm(Form: TForm);
begin
Form.Position := poScreenCenter;
end;
And should look like this:
I added some code to account for this:
Code: Select all
procedure TForm1.RVAControlPanel1CreateForm(Form: TForm);
var
i: integer;
begin
Form.Position := poScreenCenter;
for i := 0 to Form.ComponentCount-1 do
begin
if Form.Components[i].ClassType = TButton then
begin
if (TButton(Form.Components[i]).Caption = 'OK') or (TButton(Form.Components[i]).Caption = 'Cancel') then
begin
TButton(Form.Components[i]).Top := Form.ClientHeight - TButton(Form.Components[i]).Height - 8;
end;
end;
end;
end;
Stan