ComponentOne True DBInput Pro 8.0
TDBContainer3D Control and Object References

The next sections describe the TDBContainer3D control and object references.

TDBContainer3D Control Properties and Methods

The TDBContainer3D control's properties and methods are documented in the following reference sections:

TDBContainer3D Control Properties

TDBContainer3D Control Methods

Effects Collection Properties and Methods

The TDBContainer3D control's EffectsCollection is made up of groups of Effect objects. The Effect objects can be easily added by using the provided properties and methods. The EffectsCollection object properties and methods are documented in the following reference sections:

EffectsCollection Properties

EffectsCollection Methods

The EffectsCollection has three built-in default effects: Raised, Inset and Flat. For more information, see Default Effect Settings.

Effect Object Properties

The TDBContainer3D control's Effect object provides user-defined, professional-looking 3D effects. These effects include inner and outer bevels, shadow settings (which enable double-bevel effects), and much more. The border effects can be applied to all or to individual controls placed within the container, and of course the container control itself.

The defined 3D effects can be inherited to speed up the settings.

Note that for a newly created Effect object, the default property settings will be equivalent to the built-in Flat effect. All of the properties for the Effect object are documented in the following reference section:

Effect Object Properties

Children Collection Properties and Methods

The TDBContainer3D control's ChildrenCollection is made up of groups of Child objects. The Child objects can be easily added by using the provided properties and methods. Note that the Effects collection is empty, without any built-in objects, by default. All of the properties and methods for the EffectsCollection object are documented in the following sections:

ChildrenCollection Properties

ChildrenCollection Methods

Child Object Properties

The TDBContainer3D control's Child object provides capability to apply 3D effects defined using the Effect object to individual child controls placed within the container control. Note that the 3D effects applied to this object, updates the display only if the ApplyEffect property is set to 2- Children.

The following example demonstrates how you can apply defined 3D effects to individual text boxes placed within the container control:

' Create an Effect object and Child objects.

Dim objEffect As TDBContainer3D6Ctl.Effect

Dim objChild1 As TDBContainer3D6Ctl.Child

Dim objChild2 As TDBContainer3D6Ctl.Child

 

Set objEffect = TDBContainer3D1.Effects.Add(, "InsetFrame")

Set objChild1 = TDBContainer3D1.Children.Add(, "Text1")

Set objChild2 = TDBContainer3D1.Children.Add(, "Text2")

 

' Setup the InsetFrame style.

With objEffect

    .BevelOuter = -1

    .BevelInner = 1

    .BevelSpace = 1

End With

 

' Setup the 3D effect for the Text1 TextBox.

With objChild1

    .Name = "Text1"

    .Effect = objEffect

End With

 

' Setup the 3D effect for the Text2 TextBox.

With objChild2

    .Name = "Text2"

   

    ' Built-in Inset style.

    .Effect = "Inset"

End With

             

TDBContainer3D1.ApplyEffect = dbiApplyChildren

TDBContainer3D1.CtrlEffect = "Flat"”

After the last line of code in the example above is executed, the container automatically updates its display.

All of the properties for the Child object are documented in the following reference section:

Child Object Properties

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback