Recent

Author Topic: [Solved] Hide panels in form designer?  (Read 4040 times)

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
[Solved] Hide panels in form designer?
« on: April 06, 2016, 09:01:30 pm »
I've looked but haven't found a way to hide a tpanel in the form editor, is there a way?

I'm using multiple panels that are set to resize according to the form, is there a way to hide the ones I'm not working on?

If not, is there a way to programmatically set the anchors so I can automatically resize the panels on form create?
« Last Edit: April 06, 2016, 10:14:09 pm by Trenatos »

wp

  • Hero Member
  • *****
  • Posts: 11858
Re: Hide panels in form designer?
« Reply #1 on: April 06, 2016, 10:11:22 pm »
I've looked but haven't found a way to hide a tpanel in the form editor, is there a way?
I'm using multiple panels that are set to resize according to the form, is there a way to hide the ones I'm not working on?
Use TFrames instead of TPanels; they are designed in separate units. Add them at runtime to avoid some updating issues.

If not, is there a way to programmatically set the anchors so I can automatically resize the panels on form create?
Panel1.Align := alClient?

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
Re: Hide panels in form designer?
« Reply #2 on: April 06, 2016, 10:13:55 pm »
TFrames looks like the key, thanks wp!

Zath

  • Sr. Member
  • ****
  • Posts: 391
Re: [Solved] Hide panels in form designer?
« Reply #3 on: June 29, 2016, 12:12:23 pm »
Right click on a panel and use the Z order option to send a panel to the back, front or wherever.

 

TinyPortal © 2005-2018