See Also: CD_Popup_Object, End_Object, Object
To implement dynamic object creation and destruction for popup modal objects and deferred views. It takes the place of End_Object in normal object creation and destruction.
This command is managed by the DataFlex Studio's Object Properties window and is typically not edited manually.
CD_End_Object
CD_End_Object is used in place of the End_Object command when declaring a popup object, an object that is created by sending the popup message. The popup object and all of its children are destroyed when the object is deactivated.
The following example shows how to create a selection list that will popup when the popup message is sent to it.
// Create a popup selection list.
CD_Popup_Object oCustListPromptList Is A selection_list
:
CD_End_Object
// This is how to pop it up on the screen.
// You might use this to pop the window up after the user hits a button.
Send popup To oCustListPromptList
You may also use Cd_End_Object at the end of a deferred view. In this example a view, oMyViewObject, is created that is activated by the message AccessMyView:
Deferred_View AccessMyView For Object oMyViewOject Is An entry_view_client
:
CD_End_Object
If a dynamically created contains child objects, use the standard object/End_Object commands to create them.