📄 jvqtypes.pas
字号:
const
DefaultTrackFontOptions = [hoFollowFont, hoPreserveColor, hoPreserveStyle];
type
// from JvListView.pas
TJvSortMethod = (smAutomatic, smAlphabetic, smNonCaseSensitive, smNumeric, smDate, smTime, smDateTime, smCurrency);
TJvListViewColumnSortEvent = procedure(Sender: TObject; Column: Integer; var AMethod: TJvSortMethod) of object;
// from JvColorProvider.pas
TColorType = (ctStandard, ctSystem, ctCustom);
TDefColorItem = record
Value: TColor;
Constant: string;
Description: string;
end;
const
ColCount = 20;
SysColCount = 42;
ColorValues: array [0 .. ColCount - 1] of TDefColorItem = (
(Value: clBlack; Constant: 'clBlack'; Description: RsClBlack),
(Value: clMaroon; Constant: 'clMaroon'; Description: RsClMaroon),
(Value: clGreen; Constant: 'clGreen'; Description: RsClGreen),
(Value: clOlive; Constant: 'clOlive'; Description: RsClOlive),
(Value: clNavy; Constant: 'clNavy'; Description: RsClNavy),
(Value: clPurple; Constant: 'clPurple'; Description: RsClPurple),
(Value: clTeal; Constant: 'clTeal'; Description: RsClTeal),
(Value: clGray; Constant: 'clGray'; Description: RsClGray),
(Value: clSilver; Constant: 'clSilver'; Description: RsClSilver),
(Value: clRed; Constant: 'clRed'; Description: RsClRed),
(Value: clLime; Constant: 'clLime'; Description: RsClLime),
(Value: clYellow; Constant: 'clYellow'; Description: RsClYellow),
(Value: clBlue; Constant: 'clBlue'; Description: RsClBlue),
(Value: clFuchsia; Constant: 'clFuchsia'; Description: RsClFuchsia),
(Value: clAqua; Constant: 'clAqua'; Description: RsClAqua),
(Value: clWhite; Constant: 'clWhite'; Description: RsClWhite),
(Value: clMoneyGreen; Constant: 'clMoneyGreen'; Description: RsClMoneyGreen),
(Value: clSkyBlue; Constant: 'clSkyBlue'; Description: RsClSkyBlue),
(Value: clCream; Constant: 'clCream'; Description: RsClCream),
(Value: clMedGray; Constant: 'clMedGray'; Description: RsClMedGray)
);
SysColorValues: array [0 .. SysColCount - 1] of TDefColorItem = (
(Value: clNormalForeground; Constant: 'clNormalForeground'; Description: RsClNormalForeground),
(Value: clNormalButton; Constant: 'clNormalButton'; Description: RsClNormalButton),
(Value: clNormalLight; Constant: 'clNormalLight'; Description: RsClNormalLight),
(Value: clNormalMidlight; Constant: 'clNormalMidlight'; Description: RsClNormalMidlight),
(Value: clNormalDark; Constant: 'clNormalDark'; Description: RsClNormalDark),
(Value: clNormalMid; Constant: 'clNormalMid'; Description: RsClNormalMid),
(Value: clNormalText; Constant: 'clNormalText'; Description: RsClNormalText),
(Value: clNormalBrightText; Constant: 'clNormalBrightText'; Description: RsClNormalBrightText),
(Value: clNormalButtonText; Constant: 'clNormalButtonText'; Description: RsClNormalButtonText),
(Value: clNormalBase; Constant: 'clNormalBase'; Description: RsClNormalBase),
(Value: clNormalBackground; Constant: 'clNormalBackground'; Description: RsClNormalBackground),
(Value: clNormalShadow; Constant: 'clNormalShadow'; Description: RsClNormalShadow),
(Value: clNormalHighlight; Constant: 'clNormalHighlight'; Description: RsClNormalHighlight),
(Value: clNormalHighlightedText; Constant: 'clNormalHighlightedText'; Description: RsClNormalHighlightedText),
(Value: clActiveForeground; Constant: 'clActiveForeground'; Description: RsClActiveForeground),
(Value: clActiveButton; Constant: 'clActiveButton'; Description: RsClActiveButton),
(Value: clActiveLight; Constant: 'clActiveLight'; Description: RsClActiveLight),
(Value: clActiveMidlight; Constant: 'clActiveMidlight'; Description: RsClActiveMidlight),
(Value: clActiveDark; Constant: 'clActiveDark'; Description: RsClActiveDark),
(Value: clActiveMid; Constant: 'clActiveMid'; Description: RsClActiveMid),
(Value: clActiveText; Constant: 'clActiveText'; Description: RsClActiveText),
(Value: clActiveBrightText; Constant: 'clActiveBrightText'; Description: RsClActiveBrightText),
(Value: clActiveButtonText; Constant: 'clActiveButtonText'; Description: RsClActiveButtonText),
(Value: clActiveBase; Constant: 'clActiveBase'; Description: RsClActiveBase),
(Value: clActiveBackground; Constant: 'clActiveBackground'; Description: RsClActiveBackground),
(Value: clActiveShadow; Constant: 'clActiveShadow'; Description: RsClActiveShadow),
(Value: clActiveHighlight; Constant: 'clActiveHighlight'; Description: RsClActiveHighlight),
(Value: clActiveHighlightedText; Constant: 'clActiveHighlightedText'; Description: RsClActiveHighlightedText),
(Value: clDisabledForeground; Constant: 'clDisabledForeground'; Description: RsClDisabledForeground),
(Value: clDisabledButton; Constant: 'clDisabledButton'; Description: RsClDisabledButton),
(Value: clDisabledLight; Constant: 'clDisabledLight'; Description: RsClDisabledLight),
(Value: clDisabledMidlight; Constant: 'clDisabledMidlight'; Description: RsClDisabledMidlight),
(Value: clDisabledDark; Constant: 'clDisabledDark'; Description: RsClDisabledDark),
(Value: clDisabledMid; Constant: 'clDisabledMid'; Description: RsClDisabledMid),
(Value: clDisabledText; Constant: 'clDisabledText'; Description: RsClDisabledText),
(Value: clDisabledBrightText; Constant: 'clDisabledBrightText'; Description: RsClDisabledBrightText),
(Value: clDisabledButtonText; Constant: 'clDisabledButtonText'; Description: RsClDisabledButtonText),
(Value: clDisabledBase; Constant: 'clDisabledBase'; Description: RsClDisabledBase),
(Value: clDisabledBackground; Constant: 'clDisabledBackground'; Description: RsClDisabledBackground),
(Value: clDisabledShadow; Constant: 'clDisabledShadow'; Description: RsClDisabledShadow),
(Value: clDisabledHighlight; Constant: 'clDisabledHighlight'; Description: RsClDisabledHighlight),
(Value: clDisabledHighlightedText; Constant: 'clDisabledHighlightedText'; Description: RsClDisabledHighlightedText)
);
type
TJvSizeRect = packed record
Top: Integer;
Left: Integer;
Width: Integer;
Height: Integer;
end;
TJvMessage = packed record
Msg: Integer;
case Integer of
0:
(
WParam: Integer;
LParam: Integer;
Result: Integer;
);
1:
(
WParamLo: Word;
WParamHi: Word;
LParamLo: Word;
LParamHi: Word;
ResultLo: Word;
ResultHi: Word;
);
2:
( // WM_NOPARAMS
Unused: array[0..3] of Word;
Handled: LongBool; // "Result"
);
3:
( // WM_SCROLL
Pos: Integer; // WParam
ScrollCode: Integer; // LParam
);
4:
( // WM_TIMER
TimerID: Integer; // WParam
TimerProc: TTimerProc;// LParam
);
5:
( // WM_MOUSEACTIVATE
TopLevel: HWND; // WParam
HitTestCode: Word; // LParamLo
MouseMsg: Word; // LParamHi
);
6:
( // WM_MOUSE(WHEEL) | WM_MOVE
case Integer of
0:
( // WM_MOUSE
Keys: Integer; // WParam
// LParam: Pos | (XPos, YPos)
case Integer of
0:
(
Position: TSmallPoint;
);
1:
(
XPos: Smallint;
YPos: Smallint;
)
);
1:
( // WM_MOUSEWHEEL
WheelDelta: Integer; // WParam
);
);
7:
( // WM_ACTIVATE
Active: Word; { WA_INACTIVE, WA_ACTIVE, WA_CLICKACTIVE } // WParamLo
Minimized: WordBool; // WParamHi
ActiveWindow: HWND; // LParam
);
8:
( // WM_COMMAND
ItemID: Word; // WParamLo
NotifyCode: Word; // WParamHi
Ctl: HWND; // LParam
);
9:
( // WM_GETICON
BigIcon: LongBool;
);
10:
( // CM_(FOCUS|CONTROL)CHANGED | CM_HINTSHOW
Reserved: Integer; // WParam
case Integer of
0:
( // CM_(CONTROL)CHANGED
Child: TControl; // LParam
);
1:
( // CM_FOCUSCHANGED | CM_FORCESIZE }
Sender: TControl; // LParam
);
2:
( //CM_HINTSHOW
HintInfo: PHintInfo;
)
);
11:
( // CM_CONTROLLISTCHANGE | CM_(CONTROL)CHANGED (| CM_BUTTONPRESSED for clx)
Control: TControl; // WParam
case Integer of
0:
( // CM_(CONTROL)CHANGED
Inserting: LongBool; // LParam
);
1: // CM_BUTTONPRESSED (clx)
(
Index: Integer;
)
);
12:
( // CM_HINTSHOWPAUSE
WasActive: LongBool;
Pause: PInteger;
);
13:
( // WM_KEY
CharCode: Word;
NotUsed: Word;
KeyData: Integer;
);
14:
( // WM_GETTEXT
TextMax: Integer;
Text: PChar
);
15:
( // WM_ERASEBKGND | WM_PAINT
DC: HDC;
);
16:
( // WM_KILLFOCUS
FocusedWnd: HWND;
);
17:
(
NewSize: TSmallPoint; //CM_FORCESIZE wParam
);
end;
implementation
{$IFDEF UNITVERSIONING}
uses
JclUnitVersioning;
{$ENDIF UNITVERSIONING}
//=== { TJvPersistent } ======================================================
constructor TJvPersistent.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
SetSubComponent(True);
Name := 'SubComponent';
end;
{$IFDEF UNITVERSIONING}
const
UnitVersioning: TUnitVersionInfo = (
RCSfile: '$RCSfile: JvQTypes.pas,v $';
Revision: '$Revision: 1.26 $';
Date: '$Date: 2005/02/06 14:06:17 $';
LogPath: 'JVCL\run'
);
initialization
RegisterUnitVersion(HInstance, UnitVersioning);
finalization
UnregisterUnitVersion(HInstance);
{$ENDIF UNITVERSIONING}
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -