Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
191
Добавлен:
11.05.2015
Размер:
4.96 Mб
Скачать

CRViewer Object Events

Clicked Event

The Clicked event occurs when an object in the viewer is clicked.

Syntax

Event Clicked(x As Long, y As Long, EventInfo, UseDefault As Boolean)

Parameters

Parameter

Description

 

 

 

 

X

The X coordinate of the object clicked.

 

 

Y

The Y coordinate of the object clicked.

 

 

EventInfo

A CRVEventInfo Object (page 142), containing information about the object clicked.

UseDefault

Indicates whether or not the default action of the event will be performed.

 

 

CloseButtonClicked Event

The CloseButtonClicked event occurs when the Close Current View button is clicked.

Syntax

Event CloseButtonClicked(UseDefault As Boolean)

Parameter

Parameter

Description

 

 

 

 

UseDefault

Indicates whether or not the default action of the event will be performed.

 

 

DblClicked Event

The DblClicked event occurs when an object is double clicked.

Syntax

Event DblClicked(x As Long, y As Long, EventInfo, UseDefault As Boolean)

Smart Viewer Object Models

153

Parameters

Parameter

Description

 

 

 

 

X

The X coordinate of the object that was double clicked.

 

 

Y

The Y coordinate of the object that was double clicked.

 

 

EventInfo

A CRVEventInfo Object (page 142), containing information about the object clicked.

UseDefault

Indicates whether or not the default action of the event will be performed.

 

 

DownloadFinished Event

The DownloadFinished event occurs when report data finishes loading into the report. For example, if the user displays a new page, a new set of report data is downloaded.

Syntax

Event DownloadFinished(loadingType As CRLoadingType)Parameters

Parameter

Parameter

Description

 

 

 

 

 

 

 

LoadingType

Indicates the type of data being loaded into the Smart Viewer.

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

LoadingNothing

0

 

LoadingPages

1

 

 

 

 

LoadingQueryInfo

3

 

 

 

 

LoadingTotaller

2

 

 

 

DownloadStarted Event

The DownloadStarted event occurs when report data starts being downloaded into the Smart Viewer. For example, if the user displays a new page, a new set of report data is downloaded.

Syntax

Event DownloadStarted(loadingType As CRLoadingType)

Smart Viewer Object Models

154

Parameter

Parameter

Description

 

 

 

 

 

 

 

LoadingType

Indicates the type of data being loaded into the Smart Viewer.

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

crLoadingNothing

0

 

 

 

 

crLoadingPages

1

 

crLoadingQueryInfo

3

 

 

 

 

crLoadingTotaller

2

 

 

 

DragDrop Event

The DragDrop event is a Visual Basic event that occurs when a drag-and-drop operation is performed. Not valid for the Smart Viewer control.

Syntax

Event DragDrop(Source As Control, x As Single, y As Single)

Parameters

Parameter

Description

 

 

 

 

Source

A Control object that represents the object that was dragged and dropped.

X

The new X coordinate of the object that was dropped.

 

 

Y

The new Y coordinate of the object that was dropped.

 

 

DragOver Event

The DragOver event is a Visual Basic event that occurs when a drag-and-drop operation is in progress. Not valid for the Smart Viewer control.

Syntax

Event DragOver(Source As Control, x As Single, y As Single, State As Integer)

Smart Viewer Object Models

155

Parameters

Parameter

Description

 

 

 

 

Source

The object that is being dragged and dropped.

 

 

X

The current X coordinate of the object being dragged.

 

 

Y

The current Y coordinate of the object being dragged.

State

A value indicating the current state of the object.

 

 

DrillOnDetail Event

The DrillOnDetail event occurs when you drill down on a field in the Detail section of the report. This event is not available in the current version of the Smart Viewer, but will be enabled in a future upgrade.

Syntax

Event DrillOnDetail(FieldValues, SelectedFieldIndex As Long, UseDefault As

Boolean)

Parameters

Parameter

Description

 

 

 

 

FieldValues

An array of objects containing details on the field.

 

 

SelectedFieldIndex

The array index of the value in the field actually drilled on.

UseDefault

Indicates whether or not the default action of the event will be performed.

DrillOnGroup Event

The DrillOnGroup event occurs when drilling down (double-clicking) on a group field viewer window.

Syntax

Event DrillOnGroup(GroupNameList, DrillType As CRDrillType, UseDefault As

Boolean)

Parameters

Parameter

Description

 

 

 

 

GroupNameList

An array containing all group names for the group drilled on.

DrillType

Indicates whether the drill on event occurred on a graph, a group summary value,

 

or on the group tree.

 

 

Smart Viewer Object Models

156

Соседние файлы в папке crystal