Search
Box.ControlActivation Property
See Also
 



Gets or sets a value indicating how the ActiveX control hosted in this box is activated.

 Syntax

VB6  Copy Code

Public Property Get ControlActivation() As EControlActivation
Public Property Let ControlActivation( _
    ByVal Value As EControlActivation _
)

C++  Copy Code

public:
EControlActivation get_ControlActivation ()
void put_ControlActivation (
    EControlActivation value
)

 Property Value

A member of the EControlActivation enumeration. The default is caAlwaysActive.

 Remarks

FlowChartX subclasses the window of any hosted control, in order to detect mouse interaction performed on the control. Thus, move and resize operations can be carried out as with ordinary diagram nodes. However manipulation of the OCX' node via mouse might interfere with some user-interface feature of the control; for that reason FlowChartX can filter the mouse messages sent to the hosted OCX. A control is considered as active when the mouse messages are passed to it. The ControlActivation property specifies how and when to activate the control. It can have the following values:

  • caAlwaysActive - the control is always active and receives all mouse messages even when its node is resized, moved or linked to other nodes;
  • caWhenSelected - the control is active only when it is selected; if it is not selected the mouse messages sent to its window are filtered;
  • caProgrammatic - the control is activate or deactivated programmatically via the ActivateControl and DeactivateControl methods;

Note: only the topmost window of the hosted ActiveX control is subclassed. If the control has child windows the mouse messages sent to them are not filtered.

 See Also