The ShapesInst sample contains the ShapesInst object, which is the run-time object for the ShapesDsgn designer.
Click to open or copy the ShapesInst project files.
Click to open or copy the files for the Bin directory (required).
Click to open or copy the files for the Include directory (required).
At run time, the ShapesInst object depersists the subobjects created at design time into three collection objects, which you can access via public properties and methods (also created at design time).
To build the ShapesInst sample
Using the Designer at Design Time:
See the ShapesDsgn sample for a description of design-time behavior.
Using the Designer at Run Time:
The designer notifies you upon transition to and from run time.
At run time, you must explicitly create an instance of the designer object that aggregates the base designer run-time object. Because public run-time objects cannot expose their data members as public data members, you must add your own data members to expose the collections. See the VB_ShapesDsgn sample for an example.
The public properties and methods that you add provide access to the private collections.
Sample Project
The VB_ShapesDsgn project in the VBSamples directory is a Visual Basic test program for the ShapesInst sample. To use this project in Visual Basic, create an ActiveX DLL project. On the File menu, click Open Project, then navigate to the VB_Samples\VB_ShapesDsgn directory. Select ShapesDsgn.vbp to load the project files into the Visual Basic environment.
Sample Start-Up Program
The VB_ShapesClient project in the VBSamples directory is a Visual Basic project you can use as a start-up application for the ShapesDsgn designer. To use the client, you must first register the Regobj.dll from the samples\bin directory. Then, when ShapesDsgn prompts for a start-up application, specify ShapesClient.exe.
See Also
ShapesDsgn Sample