🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.vcl.components.using.general
1 messages
1 total messages Started by D Thu, 30 Jul 2009 20:41
Form resizing
#277
Author: D
Date: Thu, 30 Jul 2009 20:41
37 lines
2178 bytes
I have form that changes height in response to mouseclicks.  Panels
within the form also height:

procedure TFSReportingDlg.Panel4Click(Sender: TObject);
begin
  if Panel5.Height < 112 then
  begin
    Panel5.Height := 112;
    FSReportingDlg.Height := FSReportingDlg.Height + 111;
  end
  else
  begin
    Panel5.Height := 1;
    FSReportingDlg. Height := FSReportingDlg.Height - 111;
  end;
end;

When I run it as the main (only) form in it's own application it works
fine, but when I launch it from another application the panels change
height but the form dose not.

procedure TForm2.Print1Click(Sender: TObject);
var
  FSReportingDlg : TFSReportingDlg;
begin
  FSReportingDlg := TFSReportingDlg.Create(Self);
  try
    FSReportingDlg.ShowModal;
  finally
    if Assigned(FSReportingDlg) then
      FreeAndNil(FSReportingDlg);
  end;
end;

What is up?

TIA, D
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads