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

SearchButtonClicked Event

The SearchButtonClicked event occurs when the Search button is clicked.

Syntax

Event SearchButtonClicked(searchText As String, UseDefault As Boolean)

Parameters

Parameter

Description

 

 

 

 

searchText

A string containing the data being searched for.

 

 

UseDefault

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

 

 

SearchExpertButtonClicked Event

The SearchExpertButtonClicked event occurs when the Search Expert button is clicked.

Syntax

Event SearchExpertButtonClicked(UseDefault As Boolean)

Parameter

Parameter

Description

 

 

 

 

UseDefault

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

 

 

SelectionFormulaBuilt Event

The SelectionFormulaBuilt event occurs when a new selection formula is assigned to the report. This event is not valid when the Smart Viewer is used in conjunction with the Report Designer Component.

Syntax

Event SelectionFormulaBuilt(selctionFormula As String, UseDefault As Boolean)

Parameters

Parameter

Description

 

 

 

 

selectionFormula

The new selection formula assigned to the report.

UseDefault

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

 

 

Smart Viewer Object Models

161

SelectionFormulaButtonClicked Event

The SelectionFormulaButtonClicked event occurs when the Selection Formula button in the Smart Viewer is clicked and the Select Expert is displayed. This is not valid when the Smart Viewer is assigned a report source produced by the Report Designer Component.

Syntax

Event SelectionFormulaButtonClicked(selctionFormula As String, UseDefault As

Boolean)

Parameters

Parameter

Description

 

 

 

 

selectionFormula

The current selection formula that will be replaced.

 

 

UseDefault

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

ShowGroup Event

The ShowGroup event occurs when you click a group in the Group Tree.

Syntax

Event ShowGroup(GroupNameList, UseDefault As Boolean)

Parameters

Parameter

Description

 

 

 

 

GroupNameList

An array containing all group names for the group selected.

UseDefault

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

 

 

StopButtonClicked Event

The StopButtonClicked event occurs when the user clicks the Stop button in the Smart Viewer, forcing the Viewer to stop loading data from the report source.

Syntax

Event StopButtonClicked(loadingType As CRLoadingType, UseDefault As Boolean)

Smart Viewer Object Models

162

Parameters

Parameter

Description

 

 

 

 

 

 

 

loadingType

A constant indicating what was being loaded into the Smart Viewer when the Stop

 

button was clicked.

 

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

crLoadingNothing

0

 

crLoadingPages

1

 

 

 

 

crLoadingQueryInfo

3

 

 

 

 

crLoadingTotaller

2

 

 

 

 

 

 

Parameter

Description

 

 

 

 

 

UseDefault

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

 

 

 

Validate Event

The Validate event occurs when a control loses focus to a control that causes validation.

Syntax

Event Validate(Cancel as Boolean)

Parameter

Parameter Description

Cancel

Boolean value.

ViewChanged Event

The ViewChanged event occurs after the view in the Smart Viewer has changed. Views refer to the main Preview Tab and drill down tabs that appear in the Smart Viewer as the user interacts with the report.

Syntax

Event ViewChanged(oldViewIndex As Long, newViewIndex As Long)

Smart Viewer Object Models

163

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