Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxPanel Class

A resizable panel.

#Declaration

Delphi
TdxPanel = class(
    TdxCustomPanel
)

#Remarks

This control is a general-purpose panel with a customizable frame appearance and an ability to drag borders at runtime. You can use this panel to create resizable areas on a form without double borders and dedicated splitter controls.

Use the Frame property to configure the frame appearance. To allow users to drag panel borders, set the Frame.Drag.Enabled property to True.

You can place a control on such a panel without gaps or double borders to create lightweight application layouts.

A Lightweight Application Layout Example

The TdxPanel class has members that allow you to do the following:

  • Specify if the panel uses its parent’s color as the default background color (ParentColor).
  • Explicitly specify the background color (Color).
  • Customize the appearance and behavior of frame borders (Frame).
  • Assign a hint message to the control (Hint).
  • Customize look & feel settings (LookAndFeel).
  • Detect the dragged border and respond to border drag operations (OnDragBorder).
  • Specify if users can focus the panel (TabStop).
See Also