ControlStyle ne işe yararıyor ? Bazı componentleri incelediğim de bunu kullandıklarını gördüm.
örnek;
ControlStyle := ControlStyle - [csReplicatable] + [csopaque];
Delphinin help dosyasında ise bunlar yazıyor ama birşey anlamadım.
Kod: Tümünü seç
csAcceptsControls The control becomes the parent of any controls dropped on it at design time.
csCaptureMouse The control captures mouse events when it is clicked.
csDesignInteractive The control maps right mouse-button clicks at design time into left mouse-button clicks to manipulate the control.
csClickEvents The control can receive and respond to mouse clicks.
csFramed The control has a 3D frame.
csSetCaption The control’s Caption should match the Name property if it has not been explicitly set to something else.
csOpaque The control completely fills its client rectangle.
csDoubleClicks The control can receive and respond to double-click messages. Otherwise, map double-clicks into clicks.
csFixedWidth The width of the control does not vary or scale.
csFixedHeight The height of the control does not vary or scale.
csNoDesignVisible The control is not visible at design time.
csReplicatable The control can be copied using the PaintTo method to draw its image to an arbitrary canvas.
csNoStdEvents Standard events such as mouse, key, and click events are ignored. This flag allows an application to run faster when there is no need respond to these events.
csDisplayDragImage If some control that has an associated drag image list is dragged across a control with this setting, then the image list is used to enhance the drag cursor while the cursor is over it. Otherwise, the drag cursor is used on its own.
csReflector The control responds to Windows dialog messages, focus messages, or size change messages. Use this setting if the control can be used as an ActiveX control, so that it receives notification of these events.
csActionClient The control is linked to an action object. This flag is set when the Action property is set, and cleared if the Action property is cleared.
csMenuEvents The control responds to system menu commands.