Properties |
Methods |
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.
|
PictureSettings property
|
Returns and sets the FieldPicture object that contains all the picture settings. |
Contour property
|
Returns the Contour object
|
WindowType property
|
Returns the type of this window as QfWindowType.
|
LegendVisible property
|
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
prb.SolveProblem
End If
prb.AnalyzeResults
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