📄 jvqexgrids.pas
字号:
{-----------------------------------------------------------------------------
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/MPL-1.1.html
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either expressed or implied. See the License for
the specific language governing rights and limitations under the License.
The Original Code is: JvExGrids.pas, released on 2004-01-04
The Initial Developer of the Original Code is Andreas Hausladen [Andreas dott Hausladen att gmx dott de]
Portions created by Andreas Hausladen are Copyright (C) 2004 Andreas Hausladen.
All Rights Reserved.
Contributor(s): -
You may retrieve the latest version of this file at the Project JEDI's JVCL home page,
located at http://jvcl.sourceforge.net
Known Issues:
-----------------------------------------------------------------------------}
// $Id: JvQExGrids.pas,v 1.3 2004/11/04 22:23:53 asnepvangers Exp $
unit JvQExGrids;
{$I jvcl.inc}
{MACROINCLUDE JvQExControls.macros}
WARNINGHEADER
interface
uses
QGraphics, QControls, QForms, QExtCtrls, QGrids,
Qt, QWindows, QMessages,
Classes, SysUtils,
JvQTypes, JvQThemes, JVCLXVer, JvQExControls;
type
// VisualCLX does not have TEditStyle
TEditStyle = (esSimple, esEllipsis, esPickList);
JV_CONTROL(InplaceEdit)
JV_CONTROL(CustomGrid)
JV_CONTROL_BEGIN(DrawGrid)
protected
function GetEditStyle(ACol, ARow: Longint): TEditStyle; dynamic;
JV_CONTROL_END(DrawGrid)
JV_CONTROL_BEGIN(StringGrid)
protected
function GetEditStyle(ACol, ARow: Longint): TEditStyle; dynamic;
JV_CONTROL_END(StringGrid)
implementation
JV_CONTROL_IMPL(InplaceEdit)
JV_CONTROL_IMPL(CustomGrid)
function TJvExDrawGrid.GetEditStyle(ACol, ARow: Longint): TEditStyle;
begin
Result := esSimple;
end;
JV_CONTROL_IMPL(DrawGrid)
function TJvExStringGrid.GetEditStyle(ACol, ARow: Longint): TEditStyle;
begin
Result := esSimple;
end;
JV_CONTROL_IMPL(StringGrid)
{$DEFINE UnitName 'JvQExGrids.pas'}
UNITVERSION
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -