Download MapOCX Pro v7.1 - UnderTow Software, Inc.

Transcript
control is created, then set AutoConfig to False and repeat your testing. It could be that the loading
of a config file happens *after* initialization of such properties.
VB Example
Private Sub Command1_Click()
MapPro1.AutoConfig = true
End Sub
Delphi Example Procedure TForm1.Button3Click(Sender: TObject);
begin
MapPro1.AutoConfig:=true;
end;
AutoPaint:Boolean
Property
When this property is FALSE, the surface of the OCX control is NOT painted unless a Redraw or
Repaint command is issued. The value of this property may be set when designing the application, or at
run time. If the value of this property is true, then all zoom operations and any other operation that is
deemed to have changed any of the viewport properties results in automatically repainting the map.
Normally this is turned off by the developer if they know that a lot of operations affecting the viewport
are going to take place - in order to avoid time-consuming map repaints, and then set to True again at
the end to finally update the map.
VB Example
Private Sub Command1_Click()
‘ force a repaint of the map
MapPro1.AutoPaint = true
End Sub
Delphi Example Procedure TForm1.Button3Click(Sender: TObject);
begin
MapPro1.AutoPaint := False;
MapPro1.Miles := 0.03;
MapPro1.GotoPoint(-88.5,41.56);
MapPro1.AutoPaint:=true;
MapPro1.Redraw; //Map changes scale & goes to point in 1 step
end;
AutoQuery:Boolean
Property
When this property is TRUE, visible features with a name are described by a floating hint window,
when the cursor is placed on them. In addition if the feature is a road or street with an address range,
this information will appear below the name. The value of this property may be set when designing the
application, or at run time.
28