Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Control layout problems
Fri, Jun 29 2012 11:30 AMPermanent Link

Robert Devine

Hi Tim

I create my dialogs at runtime and dynamically layout the controls. A
typical dialog has a MainPanel and a FooterPanel with the OK/Cancel
buttons. I've been using code like this:

  self.ClientHeight := MainPanel.Height + FFooterPanelHeight;
  self.ClientWidth := MainPanel.Width;
  MainPanel.Top := 0;
  MainPanel.Left := 0;

This has previously positioned the main panel beneath the caption bar in
the client area, but it now positions it at the top left of the caption
bar (and hence covering it). Is this the new behaviour or a bug?

Also, the text on the OK/Cancel buttons is aligned to the top of the
button at runtime, rather than centred as seen at design time.

Cheers, Bob
Sat, Jun 30 2012 8:04 AMPermanent Link

Robert Devine

Hi Tim

The problem is only apparent when run from an external web server (using
either Chrome or IE9). Everything works fine when run from the IDE.

Cheers, Bob


On 29/06/2012 16:30, Bob Devine wrote:
> Hi Tim
>
> I create my dialogs at runtime and dynamically layout the controls. A
> typical dialog has a MainPanel and a FooterPanel with the OK/Cancel
> buttons. I've been using code like this:
>
>    self.ClientHeight := MainPanel.Height + FFooterPanelHeight;
>    self.ClientWidth := MainPanel.Width;
>    MainPanel.Top := 0;
>    MainPanel.Left := 0;
>
> This has previously positioned the main panel beneath the caption bar in
> the client area, but it now positions it at the top left of the caption
> bar (and hence covering it). Is this the new behaviour or a bug?
>
> Also, the text on the OK/Cancel buttons is aligned to the top of the
> button at runtime, rather than centred as seen at design time.
>
> Cheers, Bob

Mon, Jul 2 2012 2:42 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Bob,

<< This has previously positioned the main panel beneath the caption bar in
the client area, but it now positions it at the top left of the caption bar
(and hence covering it). Is this the new behaviour or a bug?

Also, the text on the OK/Cancel buttons is aligned to the top of the button
at runtime, rather than centred as seen at design time. >>

Can you send me your project so that I can try it here ?  There's been a lot
of changes to the width/height handling to minimize redraws/layout changes
in the browser, so that probably is when it was broken.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Image