Methods are declared in the context of an encapsulating class.
If you change the structure type of a classed component, previous references to the methods of this class can become invalid.
For example, suppose some form is classed, and underneath we have a button with a method. The code generated for this combination would be something along the lines of form::method(). If the form structure is changed, then form::method is no longer a valid specification. There are two options: either we find another class in which to declare the method, or the method reverts to a simple callback.
The Method Check dialog is displayed when this situation is detected. The dialog has two lists: the left hand side contains the set of descendants of the old classed component that has associated methods, and the right hand list will display all the methods associated with a given descendant: select an object in the left hand list to display the affected methods for the object in the right hand list.
The purpose of the dialog is to enable you to redeclare selected methods in alternative classes. As each method is selected in the right hand list, the name of the method, the class to which it currently belongs, and a proposed new class is displayed in various text fields.
The proposed new class is simply the next class found by wandering up the widget hierarchy.
The Declare button allows you to redeclare a selected invalidated method in the proposed new class.
The Declare All button will redeclare all methods for all affected objects in their respective proposed new classes.
Note that any method which is not redeclared through this dialog reverts to a callback.
See also: