|
@@ -700,18 +700,26 @@ void __fastcall HideComponentsPanel(TForm * Form)
|
|
|
Panel->Visible = false;
|
|
Panel->Visible = false;
|
|
|
Form->Height -= Offset;
|
|
Form->Height -= Offset;
|
|
|
|
|
|
|
|
- // Shift back bottom-anchored controls
|
|
|
|
|
- // (needed for toolbar panel on Progress window)
|
|
|
|
|
for (int Index = 0; Index < Form->ControlCount; Index++)
|
|
for (int Index = 0; Index < Form->ControlCount; Index++)
|
|
|
{
|
|
{
|
|
|
TControl * Control = Form->Controls[Index];
|
|
TControl * Control = Form->Controls[Index];
|
|
|
|
|
|
|
|
|
|
+ // Shift back bottom-anchored controls
|
|
|
|
|
+ // (needed for toolbar panel on Progress window and butons on Preferences dialog),
|
|
|
if ((Control->Align == alNone) &&
|
|
if ((Control->Align == alNone) &&
|
|
|
Control->Anchors.Contains(akBottom) &&
|
|
Control->Anchors.Contains(akBottom) &&
|
|
|
!Control->Anchors.Contains(akTop))
|
|
!Control->Anchors.Contains(akTop))
|
|
|
{
|
|
{
|
|
|
Control->Top += Offset;
|
|
Control->Top += Offset;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ // Resize back all-anchored controls
|
|
|
|
|
+ // (needed for main panel on Preferences dialog),
|
|
|
|
|
+ if (Control->Anchors.Contains(akBottom) &&
|
|
|
|
|
+ Control->Anchors.Contains(akTop))
|
|
|
|
|
+ {
|
|
|
|
|
+ Control->Height += Offset;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
//---------------------------------------------------------------------------
|
|
//---------------------------------------------------------------------------
|