MethodInvestigateStateOfType

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalNumber MethodInvestigateStateOfType( SalNumber nChildTypes )

The MethodInvestigateStateOfType method should update the visible state of a commander.

Parameters

Name Description
SalNumber nChildTypes Types of methods who's state may have changed. Can be one or more of the Const.CHILDTYPE_* Method constants.

Returns

This method does not return a value

Comments

The MethodInvestigateStateOfType is called by the framework when a commander receives a request to update its state.

To update its state, a commander typically uses the MethodInquire method to check with it's performer if the method is enabled, and then updates it's visible state accordingly.

The framework provides implementations of the MethodInvestigateStateOfType method for all framework objects.

Example

Add new C# coding sample

Function: MethodInvestigateStateOfType
Actions
   If ( nChildType & CHILDTYPE_SourceMethod )
      If MethodInquire( PM_DataSourcePopulate, 0 )
         Call SalEnableWindow( hWndItem )
      Else
         Call SalDisableWindow( hWndItem )
C# code
MethodInvestigateStateOfType(Const.CHILDTYPE_SessionMethod);