method setRelatedPopupBox

void setRelatedPopupBox(box box);

Argumente

Zurückgegebener Wert

This method sets an auto-complete menu for the box. As the user types suggestions are shown based on the content within the auto-complete pop-up box provided.
function AttachPopupToEditBox(editBox)
{
    if (editBox)
    {
        var autoMenu = scene.getBoxById("textBoxAutoCompMenu");
        if (autoMenu)
        {
            editBox.setRelatedPopupBox(autoMenu);
        }
    }
}