WINCTL :: locate_control

protocol:

method

parameters:

string ctl_name

result:

WINCTL object

description:

ctl   =   ctl . locate_control(name)

find the control 'name' anywhere on the form that has the control 'ctl' on it. This works with controls nested to any level.

Normally locating a control on a frame is done so:

ctl   =   this . frame["control_name"]

The method 'locate_control' is used in situations where the control being searched for may be in a complex control built from other dialogs.

example:

ctl   =   this . frame["control_name"]