Altova XMLSpy 2025 Enterprise Edition

The XMLSpyControlPlaceHolder control is required to host an application helper window, see also Integration at Document Level. In the code listing below, the HTML object tag is used to instantiate a control that will host the Output window by default (PlaceholderWindowID is 3).

 

<!-- create helper window placeholder control.           -->
<!-- the editor with focus will automatically direct its -->
<!-- output to the appropriate helper window.            -->
<object id="objOutputWindow" classid="clsid:135DEEF4-6DF0-47c2-8F8C-F145F5F3F672" width="200" height="200" VIEWASTEXT>
  <param name="PlaceholderWindowID" value="3">
</object>

 

The HTML page also includes an example object that can host any entry helper window:

 

<!-- create helper window placeholder control.           -->
<!-- the editor with focus will automatically direct its -->
<!-- output to the appropriate helper window.            -->
<object id="objEHWindow" classid="clsid:135DEEF4-6DF0-47c2-8F8C-F145F5F3F672" width="200" height="200" VIEWASTEXT>
  <param name="PlaceholderWindowID" value="0">
</object>

 

It is possible to repopulate the object above with a different helper window by clicking the following buttons:

 

<!-- create buttons to switch between helper windows shown -->
<!-- in this placeholde window.                            -->
<tr border="0">
  <td align="center">
    <input type="button" value="EH - Elements" onclick="BtnHelperWindow(0)">
  </td>
</tr>
<tr align="center">
  <td align="center">
    <input type="button" value="EH - Attributes" onclick="BtnHelperWindow(1)">
  </td>
</tr>
<tr align="center">
  <td align="center">
    <input type="button" value="EH - Entities" onclick="BtnHelperWindow(2)">
  </td>
</tr>

 

When clicked, these buttons call the BtnHelperWindow method, which reassigns the PlaceholderWindowID of the control, and thus causes the ActiveX object to display a different helper window.

 

// specify which of the helper windows shall be shown in the placeholder control.
function BtnHelperWindow(i_ePlaceholderWindowID)
{
  objPlaceholderWindow.PlaceholderWindowID = i_ePlaceholderWindowID;
}

 

For the list of possible values of PlaceholderWindowID, see XMLSpyControlPlaceholderWindow.

© 2018-2024 Altova GmbH