hasPropertyPage

hasPropertyPage(nam: String): Boolean;

The hasPropertyPage method of the Window class returns whether the window has its own Properties dialog for the property specified in the nam parameter. If the nam parameter contains an empty string, the method returns whether there is a global Property page for the whole window. Although this method is primarily for ActiveX controls, you can also use it for subclassed controls.

By default, the hasPropertyPage method returns false. For ActiveX controls, the ActiveX is asked if such a property exists. The Painter asks the window if it has a custom-built dialog (property page) for editing the current property selected in the Properties form.

If such a dialog exists, it is used instead of the standard Painter editing. This dialog is initiated by using the showPropertyPage method for the window.

Using the Control class saveProperties method saves properties edited during this process.

The method in the following example shows the use of the hasPropertyPage method.

hasPropertyPage(nam : String): Boolean updating;
begin
    if nam = 'layout' then
        return true;
    endif;
    return inheritMethod(nam);
end;

Reimplement this method in user-defined subclassed controls in your application to return false if you want to stop the JADE Painter from using its own Properties dialog for the specified property.

Any Properties dialog is run under the JADE application when used by the Painter.