ActiveField™ - QuickField API Help

QuickField Student Edition free download     Contacts

ActiveField Technology
What's New
Objects Overview
Hierarchy Chart
How to Start: Application Object
How to work with Problems
How to work with Model
How to work with Data
How to Analyze Results




FieldWindow Object




The window where a field picture is displayed.


Represents the field picture window. The FieldWindow object is derived from the general Window object and inherits all of its methods and properties. All FieldWindow objects are members of the Windows collection that is accessible by the Windows property of the Result object. The first FieldWindow is created when the AnalyzeResult method of the Problem is invoked. You can create as many FieldWindow objects as you need using the NewWindow method of the Result object.

There is a special object FieldPicture containing all the settings affected in the picture presented in the FieldWindow. To change a setting, you get a FieldPicture associated with the FieldWindow, modify its properties and put it back in the FieldWindow.

In addition to generic Window features, the FieldWindow object offers the following methods and properties:

Zoom method

Allows you to magnify and diminish the field picture.
The two parameters as Point give the upper-left and lower-right corners of the rectangle you want to be magnified to the whole window.
If only one input point is given, it becomes in the center of the window and the picture is magnifies about twice.
If no input parameter is given, the picture is set to see the whole model.

PictureSettings property
(read and write)

Returns and sets the FieldPicture object that contains all the picture settings.

Contour property
(read only)

Returns the Contour object
Each FieldWindow always owns only one Contour object that initially is empty. To modify it you have to use methods provided by the Contour object.

WindowType property
(read only)

Returns the type of this window as QfWindowType.
The FieldWindow has a qfFieldWindow type.

LegendVisible property
(read and write)

Gets and sets the visibility status of the legend window for the field picture window as Boolean.

GetLegendPicture method

Puts a picture of the legend window into the Windows clipboard.

The following example solves a problem, opens a FieldWindow, sets the desired magnification, and then opens another FieldWindow.

Dim prb As QuickField.Problem
Dim res As QuickField.Result
If Not prb.Solved Then
    If Not prb.CanSolve Then Exit Sub
End If
Set res = prb.Result

Dim resWin As FieldWindow
Set resWin = res.Windows(1)
reswin.Zoom QF.PointXY (0, 15)

Dim resWin2 as FieldWindow
set resWin2 = res.NewWindow