TWinControl class properties:
Brush - Determines the color and style of the window background fill.
ClientOrigin - Screen coordinates of the upper-left corner of the component's client area.
ClientRect - Size of the component's client area.
ControlCount - Number of child components of this window element.
Controls - Array of child components of the window element.
Ctl3D - Determines whether the component will appear three-dimensional or flat.
Handle - Window handle.
HelpContext - The number of context-dependent built-in help.
ParentWindow - The handle of the parent window that is not a visual component.
ParentCtl3D - Controls the inheritance of the Ctl3D parent property.
Showing - Determines whether the component is currently visible.
TabOrder - Specifies the position of the component in the tabbing sequence.
TabStop - Determines whether the user can tab to the component.
WindowHandle - Similar to Handle, but with the ability to change
1.4. Types of components.
All components are direct or indirect descendants of the TComponent class. Most of the components are user interface controls. Components are never placed on the stack! They are placed only in the heap, using the new operator.
Standard components - encapsulate typical Windows OS controls. Any component from the Standart tab behaves exactly like its corresponding parent Windows element (VCL adds a wrapper that allows you to change its appearance).
Adaptable components are controls that do not contain any method for their own display or specific behavior. The developer must provide the component's behavior definition themselves.
Graphic components are visible elements that cannot receive input focus. Graphic components cannot serve as containers for other controls (they do not have ownership rights).
Invisible components are components that
TPanel *Panel = new TPanel(this);Panel->Parent = this;TButton *Button = new TButton(Panel);Button->Parent = Panel;
Thus, we see that Panel acts as a container for Button and is responsible for displaying and automatically destroying the latter.
Brush - Determines the color and style of the window background fill.
ClientOrigin - Screen coordinates of the upper-left corner of the component's client area.
ClientRect - Size of the component's client area.
ControlCount - Number of child components of this window element.
Controls - Array of child components of the window element.
Ctl3D - Determines whether the component will appear three-dimensional or flat.
Handle - Window handle.
HelpContext - The number of context-dependent built-in help.
ParentWindow - The handle of the parent window that is not a visual component.
ParentCtl3D - Controls the inheritance of the Ctl3D parent property.
Showing - Determines whether the component is currently visible.
TabOrder - Specifies the position of the component in the tabbing sequence.
TabStop - Determines whether the user can tab to the component.
WindowHandle - Similar to Handle, but with the ability to change
1.4. Types of components.
All components are direct or indirect descendants of the TComponent class. Most of the components are user interface controls. Components are never placed on the stack! They are placed only in the heap, using the new operator.
Standard components - encapsulate typical Windows OS controls. Any component from the Standart tab behaves exactly like its corresponding parent Windows element (VCL adds a wrapper that allows you to change its appearance).
Adaptable components are controls that do not contain any method for their own display or specific behavior. The developer must provide the component's behavior definition themselves.
Graphic components are visible elements that cannot receive input focus. Graphic components cannot serve as containers for other controls (they do not have ownership rights).
Invisible components are components that
TPanel *Panel = new TPanel(this);Panel->Parent = this;TButton *Button = new TButton(Panel);Button->Parent = Panel;
Thus, we see that Panel acts as a container for Button and is responsible for displaying and automatically destroying the latter.