{********************************************************************} { } { Developer Express Visual Component Library } { ExpressEditors } { } { Copyright (c) 1998-2008 Developer Express Inc. } { ALL RIGHTS RESERVED } { } { The entire contents of this file is protected by U.S. and } { International Copyright Laws. Unauthorized reproduction, } { reverse-engineering, and distribution of all or any portion of } { the code contained in this file is strictly prohibited and may } { result in severe civil and criminal penalties and will be } { prosecuted to the maximum extent possible under the law. } { } { RESTRICTIONS } { } { THIS SOURCE CODE AND ALL RESULTING INTERMEDIATE FILES } { (DCU, OBJ, DLL, ETC.) ARE CONFIDENTIAL AND PROPRIETARY TRADE } { SECRETS OF DEVELOPER EXPRESS INC. THE REGISTERED DEVELOPER IS } { LICENSED TO DISTRIBUTE THE EXPRESSEDITORS AND ALL } { ACCOMPANYING VCL CONTROLS AS PART OF AN EXECUTABLE PROGRAM ONLY. } { } { THE SOURCE CODE CONTAINED WITHIN THIS FILE AND ALL RELATED } { FILES OR ANY PORTION OF ITS CONTENTS SHALL AT NO TIME BE } { COPIED, TRANSFERRED, SOLD, DISTRIBUTED, OR OTHERWISE MADE } { AVAILABLE TO OTHER INDIVIDUALS WITHOUT EXPRESS WRITTEN CONSENT } { AND PERMISSION FROM DEVELOPER EXPRESS INC. } { } { CONSULT THE END USER LICENSE AGREEMENT FOR INFORMATION ON } { ADDITIONAL RESTRICTIONS. } { } {********************************************************************} unit cxGridPopupMenuConsts; {$I cxVer.inc} interface uses cxClasses, cxCustomData; resourcestring cxSGridNone = 'None'; // Header popup menu item captions cxSGridSortColumnAsc = 'Sort Ascending'; cxSGridSortColumnDesc = 'Sort Descending'; cxSGridClearSorting = 'Clear Sorting'; cxSGridGroupByThisField = 'Group By This Field'; cxSGridRemoveThisGroupItem = 'Remove from grouping'; cxSGridGroupByBox = 'Group By Box'; cxSGridAlignmentSubMenu = 'Alignment'; cxSGridAlignLeft = 'Align Left'; cxSGridAlignRight = 'Align Right'; cxSGridAlignCenter = 'Align Center'; cxSGridRemoveColumn = 'Remove This Column'; cxSGridFieldChooser = 'Field Chooser'; cxSGridBestFit = 'Best Fit'; cxSGridBestFitAllColumns = 'Best Fit (all columns)'; cxSGridShowFooter = 'Footer'; cxSGridShowGroupFooter = 'Group Footers'; // Footer popup menu item captions cxSGridNoneMenuItem = 'None'; cxSGridSumMenuItem = 'Sum'; cxSGridMinMenuItem = 'Min'; cxSGridMaxMenuItem = 'Max'; cxSGridCountMenuItem = 'Count'; cxSGridAvgMenuItem = 'Average'; // Group row popup menu item captions cxSGridSortByGroupValues = 'Sort by Group Value'; cxSGridSortBySummaryCaption = 'Sort by Group Summary:'; cxSGridSortBySummary = '%s for %s'; function GetSummaryName(ASummaryKind: TcxSummaryKind): TcxResourceStringID; implementation function GetSummaryName(ASummaryKind: TcxSummaryKind): TcxResourceStringID; const SummaryNames: array[TcxSummaryKind] of TcxResourceStringID = ( @cxSGridNoneMenuItem, @cxSGridSumMenuItem, @cxSGridMinMenuItem, @cxSGridMaxMenuItem, @cxSGridCountMenuItem, @cxSGridAvgMenuItem); begin Result := SummaryNames[ASummaryKind]; end; end.