Unit CastleLCLUtils

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Utilities for cooperation between LCL and "Castle Game Engine".

Uses

Overview

Functions and Procedures

procedure FileFiltersToDialog(const FileFilters: string; Dialog: TFileDialog; const AllFields: boolean = true);
procedure FileFiltersToDialog(const FileFilters: string; out LCLFilter: string; out LCLFilterIndex: Integer; const AllFields: boolean = true);
procedure FileFiltersToDialog(FFList: TFileFilterList; Dialog: TFileDialog; const AllFields: boolean = true);
procedure FileFiltersToDialog(FFList: TFileFilterList; out LCLFilter: string; out LCLFilterIndex: Integer; const AllFields: boolean = true);
function SQuoteLCLCaption(const S: string): string;
procedure FileFiltersToOpenDialog(const FileFilters: string; Dialog: TFileDialog); deprecated;
procedure FileFiltersToOpenDialog(const FileFilters: string; out LCLFilter: string; out LCLFilterIndex: Integer); deprecated;
procedure FileFiltersToOpenDialog(FFList: TFileFilterList; out LCLFilter: string; out LCLFilterIndex: Integer); deprecated;

Description

Functions and Procedures

procedure FileFiltersToDialog(const FileFilters: string; Dialog: TFileDialog; const AllFields: boolean = true);

Convert file filters into LCL Dialog.Filter, Dialog.FilterIndex. Suitable for both open and save dialogs (TOpenDialog, TSaveDialog both descend from TFileDialog).

Input filters are either given as a string FileFilters (encoded just like for TFileFilterList.AddFiltersFromString), or as TFileFilterList instance.

Output filters are either written to LCLFilter, LCLFilterIndex variables, or set appropriate properties of given Dialog instance.

When AllFields is false, then filters starting with "All " in the name, like "All files", "All images", are not included in the output.

procedure FileFiltersToDialog(const FileFilters: string; out LCLFilter: string; out LCLFilterIndex: Integer; const AllFields: boolean = true);
 
procedure FileFiltersToDialog(FFList: TFileFilterList; Dialog: TFileDialog; const AllFields: boolean = true);
 
procedure FileFiltersToDialog(FFList: TFileFilterList; out LCLFilter: string; out LCLFilterIndex: Integer; const AllFields: boolean = true);
 
function SQuoteLCLCaption(const S: string): string;

Make each '&' inside string '&&', this way the string will not contain special '&x' sequences when used as a TMenuItem.Caption and such.

procedure FileFiltersToOpenDialog(const FileFilters: string; Dialog: TFileDialog); deprecated;

Warning: this symbol is deprecated.

Deprecated names, use the identifiers without "Open" in new code.

procedure FileFiltersToOpenDialog(const FileFilters: string; out LCLFilter: string; out LCLFilterIndex: Integer); deprecated;

Warning: this symbol is deprecated.

 
procedure FileFiltersToOpenDialog(FFList: TFileFilterList; out LCLFilter: string; out LCLFilterIndex: Integer); deprecated;

Warning: this symbol is deprecated.

 

Generated by PasDoc 0.12.1 on 2013-02-04 20:26:51