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

WindowButtonBar PrintSetupBtn property

Declaration

property PrintSetupBtn: boolean;

Description

PrintSetupBtn determines if the Printer Setup Button will appear on the Preview Window or not. This only applies to Crystal 6.0 or higher.

Example

This code example sets the WindowButtonBar properties so that Drill-Down is possible, and the PrintSetup button is hidden:

Crpe1.ReportName := 'MyReport.rpt'; Crpe1.Output := toWindow;

with Crpe1.WindowButtonBar do begin

Visible := True; AllowDrillDown := True; PrintSetupBtn := False;

end; Crpe1.Execute;

WindowButtonBar ProgressCtls property

Declaration

property ProgressCtls: Boolean;

Description

ProgressCtls determines if the Progress Controls will appear on the Preview Window or not. This only applies to Crystal 6.0 or higher. Progress Controls are the numbers that appear when counting the records that have been read, selected, and printed. These numbers are also available via the Records object.

VCL Reference

690

Example

This code example sets the WindowButtonBar properties so that Drill-Down is possible, and the Progress Controls are hidden:

Crpe1.ReportName := 'MyReport.rpt'; Crpe1.Output := toWindow;

with Crpe1.WindowButtonBar do begin

Visible := True; AllowDrillDown := True; ProgressCtls := False;

end; Crpe1.Execute;

WindowButtonBar RefreshBtn property

Declaration

property RefreshBtn: Boolean;

Description

RefreshBtn determines if the Refresh Button will appear on the Preview Window or not. This only applies to Crystal 6.0 or higher.

Example

This code example sets the WindowButtonBar properties so that Drill-Down is possible, and the Refresh button is hidden:

Crpe1.ReportName := 'MyReport.rpt'; Crpe1.Output := toWindow;

with Crpe1.WindowButtonBar do begin

Visible := True; AllowDrillDown := True; RefreshBtn := False;

end; Crpe1.Execute;

VCL Reference

691

WindowButtonBar SearchBtn property

Declaration

property SearchBtn: Boolean;

Description

SearchBtn determines if the Search Button will appear on the Preview Window or not. This only applies to Crystal 6.0 or higher.

Example

This code example sets the WindowButtonBar properties so that Drill-Down is possible, and the Search button are hidden:

Crpe1.ReportName := 'MyReport.rpt'; Crpe1.Output := toWindow;

with Crpe1.WindowButtonBar do begin

Visible := True; AllowDrillDown := True; SearchBtn := False;

end; Crpe1.Execute;

WindowButtonBar Visible property

Declaration

property Visible: boolean;

Description

The Visible property determines if the Preview Window Button Bar will be visible or not. If you are making your own custom button bar, you may want to hide the Crystal button bar. This can be done by setting Visible to False.

Example

This code example turns off the Crystal Preview Window button bar:

Crpe1.ReportName := 'MyReport.rpt';

Crpe1.Output := toWindow;

Crpe1.WindowButtonBar.Visible := False;

Crpe1.Execute;

VCL Reference

692

WindowButtonBar ZoomCtl property

Declaration

property ZoomCtl: Boolean;

Description

The ZoomCtl property determines if the window control used to set the Zoom Level will be visible on the Preview Window or not. This only applies to Crystal 6.0 or higher.

Example

This code example sets the WindowButtonBar properties so that Drill-Down is possible, and the Zoom Control is hidden:

Crpe1.ReportName := 'MyReport.rpt'; Crpe1.Output := toWindow;

with Crpe1.WindowButtonBar do begin

Visible := True; AllowDrillDown := True; ZoomCtl := False;

end; Crpe1.Execute;

WindowButtonBar Methods

WindowButtonBar Clear method

Declaration

procedure Clear;

Description

The Clear method sets all the properties associated with the WindowButtonBar object back to their default values:

Visible := True;

AllowDrillDown := False;

CancelBtn := False;

CloseBtn := False;

VCL Reference

693

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