Is TPanel load-bearing when folded along the bevel?

Go down

Is TPanel load-bearing when folded along the bevel?

· #1

I am building an office planning application. The outer panel represents the building and the inner panels represent the departments. I need to fold Accounts Payable inward until it fits behind Reception.

Can a TPanel bend at BevelInner, or should I use two panels and declare the seam structural? The Save button will be resting on it.

Re: Is TPanel load-bearing when folded along the bevel?

· #2

TPanel is a rectangular container control. Its bevel is drawn decoration. It has no hinge, physical strength, or built-in operation to fold its child controls through an angle.

For a collapsible department, use a header panel and a separate body panel below it, both with Align := alTop. Toggle the body's Visible property from the header's click handler. The other aligned controls can then use the available space.

Keep the header outside the body, or collapsing the body will also hide the control needed to open it again. BorderSpacing can leave a visual gap between departments. It is not a fire corridor.

Re: Is TPanel load-bearing when folded along the bevel?

· #3

I used panels to describe a building once. Management approved the design until someone maximized the window and the warehouse expanded into the parking lot.

I support the separate header. Accounts Payable should retain an entrance even during renovation.

Re: Is TPanel load-bearing when folded along the bevel?

· #4

The collapsible body works. I have moved Save onto the main form because nobody will sign off on the panel's load rating.

Reception now occupies the space when Accounts Payable disappears. This matches the office more closely than the original specification.

Go up

Sign in to reply