Cannot insert an ActiveX in a tabpage control

Symptom

After inserting an ActiveX Control into a tabpage, saving the Tab control and reopening it, the ActiveX container is lost.

Environment

PowerBuilder

Reproducing the Issue

1.  Make a userobject from Tab (File -> New -> PB Object -> Standard Visual -> tab)

2.  Add a tabpage and then insert an olecustomcontrol (Insert -> Control -> Ole) and select any Ole Control

3.  The ActiveX Control shows up and everything looks OK. You can edit Properties via the 'OLE Control Properties' button

4.  Save and Close the tabcontrol, and then open it again. The ActiveX Control container is empty the 'OLE Control Name' field in Properties is empty, and you cannot edit the ActiveX Properties anymore.

Solution

Workaround: Embed the activeX in a custom visual object and insert that visual object in the tabpage.