Class: Container

Properties  Events  Methods    Index of Classes

Creates non-visual container objects

Hierarchy

cObject
---cUIObject
------DfBaseObject
---------DfBaseWindow
------------DfBaseUIWindow
---------------DfBaseContainer
------------------DfBaseDialog
---------------------Container3d
------------------------Container

Library: Windows Application Class Library

Package: Windows.pkg

Mixins: NonVisual_Container_Mixin

Description

The Container class is used to create non-visual container objects. It is designed to be the parent of other container objects and to control their activation and deactivation. The Container also controls aspects of the navigation of its child objects.

Usage

Object Dlg is a Container
    
    Object F1 is a form
        Set Location to 10 70
        Set Size to 13 40
        Set Label to "Name:"
    End_Object
 
    Object F2 is a form
        Set Location to 25 70
        Set Size to 13 30
        Set Label to "Id:"
    End_Object
 
End_Object



Syntax

Use windows
 
Object object_name is a Container
    :
End_Object


Of Special Note

This class is descended from the Container3d class. Its abilities to group objects and manipulate them as a single unit are most-important. The Container class is used when you need to group objects together non-visually. The non-visual Container must be placed inside a visual container. Child objects will be located relative to this visual ancestor.

This class will rarely be needed. You are encouraged to use visual container objects (Container3d or Group) whenever possible.