哪位给解释一下State&Style?(50分)

  • 主题发起人 主题发起人 javesun
  • 开始时间 开始时间
J

javesun

Unregistered / Unconfirmed
GUEST, unregistred user!
TControlState = set of (csLButtonDown, csClicked, csPalette,
csReadingState, csAlignmentNeeded, csFocusing, csCreating,
csPaintCopy, csCustomPaint, csDestroyingHandle, csDocking);

TControlStyle = set of (csAcceptsControls, csCaptureMouse,
csDesignInteractive, csClickEvents, csFramed, csSetCaption, csOpaque,
csDoubleClicks, csFixedWidth, csFixedHeight, csNoDesignVisible,
csReplicatable, csNoStdEvents, csDisplayDragImage, csReflector,
csActionClient, csMenuEvents);

哪位给解释一下State&Style,分别是什么意思?或着哪儿有资料可供查看?
在此先谢谢了!
 
Delphi帮助文件里就有。
csLButtonDown The left mouse button was clicked and not yet released. This is set for all mouse-down events.
csClicked The same as csLButtonDown, but only set if ControlStyle contains csClickEvents, meaning that mouse-down events are interpreted as clicks.
csPalette The system palette has changed and the control or one of its descendants has not finished adjusting by realizing its palette.
csReadingState The control is reading its state from a stream.
csAlignmentNeeded The control needs to realign itself when alignment is re-enabled.

csFocusing The application is processing messages intended to give the control focus. This does not guarantee the control will receive focus, but prevents recursive calls.
csCreating The control and/or its owner and subcontrols are being created. This flag clears when all have finished creating.
csPaintCopy The control is being replicated, meaning a copy of the control is being painted. The ControlStyle flag csReplicatable must be set for this state to occur.
csCustomPaint The control is processing custom paint messages.

csDestroyingHandle The control抯 window is being destroyed.
csDocking The control is being docked.
 

Similar threads

后退
顶部