TreeListAutoActivate

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.

SalBoolean TreeListAutoActivate(SalNumber nWhat, SalBoolean bEnable)	

The method TreeListAutoActivate will enable/disable the design time option AutoActivate. If nodes being selected should not trigger the message PM_TreeListNodeActivate, this method can be used in switch the option off (and on again).

Parameters

Name Description
SalNumber nWhat Standard method parameter. Possible values are Const.METHOD_Inquire, Const.METHOD_Execute.
SalBoolean bEnable Enable AutoActivate. Specify TRUE to enable the option and FALSE to disable it.

Returns

The return value is TRUE if node found and altered, FALSE otherwise.

Example

/// EXAMPLE:
/// ! Check if 'AutoActivate' option is enabled.
/// If TreeListAutoActivate( METHOD_Inquire, 0 )
/// ! Yes, disable it.
/// Call TreeListAutoActivate( METHOD_Execute, FALSE )

C# code

// If a RMB menu is opened and the timer is still running, end it and force a populate.
Ifs.Fnd.ApplicationForms.frmScheduledTask.lbSchedule.TreeListAutoActivate(Const.METHOD_Execute, false);