I have a TPanel, and I'm trying to add a custom control to it by setting the control's Parent property to the TPanel.
Unfortunately, it looks like the attached image. As you can see, the bevel is hidden underneath the control itself-- it's like the control is taking up more than the client area of the panel. If I add a control using the IDE (not programmatically) and set the Align to alClient, you can see that it takes up the correct amount of space.
How do I fix this?