Aztec® Programming Language

Version 1.0 Alpha

Copyright © 2010-2013

Cold Spring® Development Group

All Rights Reserved

Download Aztec

Site Help

aztec.display.ParentFrame

public class ParentFrame from<Window>

Base

Window

Frame

ParentFrame

The ParentFrame class provides a top-level frame MDI window which contains an empty frame surrounded by a standard OS frame with resize capability. The frame can also contain a menu bar and one or more toolbars. One or more ChildFrame objects can be created and attached to the ParentFrame object (implicitly during creation of the child).

 

The following diagram provides a complete list of valid children for the ParentFrame.

ParentFrame Children

ParentFrame Methods

ParentFrame() Constructor for the ParentFrame class
ChildFrames() Returns an array of child frame windows atached to this parent frame
Cascade() Arrange all child frames in a cascaded fashion
Tile() Arrange all child frames in a tiled fashion
ActiveChild() Returns the current active child frame (can be null)

Derived Classes

See Also

 


ParentFrame()

public method ParentFrame(Display TargetDisplay, Window Parent, int XPos, int YPos, int Width, int Height, string Title)

Parameters

TargetDisplay

The Display object where the top-level frame is displayed (null for local Display)

Parent

Parent window for the MDI frame (typically null)

XPos

One based X position of window relative to parent

YPos

One based Y position of window relative to parent

Width

Initial width of the entire frame window in pixels

Height

Initial height of the entire frame window in pixels

Title

Title for the frame window

Return Value

None

Description

Constructor for the ParentFrame class. The target Display is passed in (null means local Display) and the Parent window is also specified (typically null for ParentFrame). If not null, the parent must be some other top-level window (Dialog, Frame or ParentFrame). Base information such as position and size is also passed in.

 

If the Display object is connected to a remote UI Display Server process, the parent frame window will be created on the remote machine. All child windows of the frame will automatically be displayed on the remote machine as well. All UI events from the remote UIs are handled in the local Aztec program.

 

If the XPos and YPos are zero, the window will be centered within the Display.

 

Note that the ParentFrame window is created in a "hidden" state, so the 'Show()' method must be called to display the window. This allows the script to create and initialize the entire UI before actually displaying it on the screen.

 

ParentFrame Class


Cascade()

public method Cascade()

Parameters

None

Return Value

None

Description

This method arranges all child frame windows into a cascading format.

 

ParentFrame Class


Tile()

public method Tile()

Parameters

None

Return Value

None

Description

This method arranges all child frame windows into a tiled format.

 

ParentFrame Class


ActiveChild()

public method<ChildFrame> ActiveChild()

Parameters

None

Return Value

None

Description

This method returns a reference to the child frame window which is currently active. Will be null if no child frames exist..

 

ParentFrame Class

 

Copyright © 2010-2013

Cold Spring Development Group

All Rights Reserved

Download Aztec