Jump to content

Desktop: Panel1 within Panel2, How To Get Panel2 Right Edge To Fill Out To Panel1's Right Edge Preserving Panel2's Left Position - Question


Recommended Posts

Posted

I have a panel (pnlTop) that fills the top of the MainForm as required and contains objects as well as another panel (pnlProgress) containing a ProgressBar.

Both panel layouts are "absolute" (I experimented with all options).

How can I get pnlProgress to fill to the right edge of MainForm pnlTop maintaining it's left position. All of the Anchors are set for both panels.

 

PanelWithinPanel.jpg

Posted
8 hours ago, andyhill said:

No, I added the second image to show what I want to achieve - please advise how - thanks

Are you using client-side alignment, layout?

Posted

I think I have a work around by using the Anchor (not perfect but close).

pnlProgress.LayoutConfig.Anchor:= 99%

ProgressBar.LayoutConfig.Anchor:= 99%

Adapts to browser resizing but not perfectly, when I try 100% it breaks conformity.

Why did, Anchors.Top/Left/Bottom/Right fail, Is this something that needs attention in the next update ? 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...