Menu

[4a4584]: / 3rdParty / JVCL / run / JvConsts.pas  Maximize  Restore  History

Download this file

277 lines (241 with data), 8.5 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
{-----------------------------------------------------------------------------
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: JvConst.PAS, released on 2002-07-04.
The Initial Developers of the Original Code are: Fedor Koshevnikov, Igor Pavluk and Serge Korolev
Copyright (c) 1997, 1998 Fedor Koshevnikov, Igor Pavluk and Serge Korolev
Copyright (c) 2001,2002 SGB Software
All Rights Reserved.
You may retrieve the latest version of this file at the Project JEDI's JVCL home page,
located at http://jvcl.delphi-jedi.org
Known Issues:
-----------------------------------------------------------------------------}
// $Id$
unit JvConsts;
{$I jvcl.inc}
interface
uses
{$IFDEF UNITVERSIONING}
JclUnitVersioning,
{$ENDIF UNITVERSIONING}
SysUtils, Classes, Forms, Controls, Graphics, Windows, TypInfo;
const
{ JvEditor }
JvEditorCompletionChars = #8'0123456789QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm_';
{ Various units }
DigitSymbols = ['0'..'9'];
SignSymbols = ['+', '-'];
IdentifierUppercaseLetters = ['A'..'Z'];
IdentifierLowercaseLetters = ['a'..'z'];
HexadecimalUppercaseLetters = ['A'..'F'];
HexadecimalLowercaseLetters = ['a'..'f'];
IdentifierLetters = IdentifierUppercaseLetters + IdentifierLowercaseLetters;
IdentifierFirstSymbols = ['_'] + IdentifierLetters;
IdentifierSymbols = IdentifierFirstSymbols + DigitSymbols;
HexadecimalSymbols = DigitSymbols + HexadecimalUppercaseLetters + HexadecimalLowercaseLetters;
{$IFDEF DELPHI6}
SDelphiKey = 'Software\Borland\Delphi\6.0';
{$ENDIF DELPHI6}
{$IFDEF BCB6}
SDelphiKey = 'Software\Borland\C++Builder\6.0';
{$ENDIF BCB6}
{$IFDEF DELPHI7}
SDelphiKey = 'Software\Borland\Delphi\7.0';
{$ENDIF DELPHI7}
{$IFDEF DELPHI8}
SDelphiKey = 'Software\Borland\BDS\2.0';
{$ENDIF DELPHI8}
{$IFDEF DELPHI9}
SDelphiKey = 'Software\Borland\BDS\3.0';
{$ENDIF DELPHI9}
{$IFDEF DELPHI10}
SDelphiKey = 'Software\Borland\BDS\4.0';
{$ENDIF DELPHI10}
{$IFDEF DELPHI11}
SDelphiKey = 'Software\Borland\BDS\5.0';
{$ENDIF DELPHI11}
{$IFDEF DELPHI12}
SDelphiKey = 'Software\CodeGear\BDS\6.0';
{$ENDIF DELPHI12}
{$IFDEF DELPHI14}
SDelphiKey = 'Software\CodeGear\BDS\7.0';
{$ENDIF DELPHI14}
{$IFDEF DELPHI15}
SDelphiKey = 'Software\Embarcadero\BDS\8.0';
{$ENDIF DELPHI15}
{$IFDEF DELPHI16}
SDelphiKey = 'Software\Embarcadero\BDS\9.0';
{$ENDIF DELPHI16}
{$IFDEF DELPHI17}
SDelphiKey = 'Software\Embarcadero\BDS\10.0';
{$ENDIF DELPHI17}
{$IFDEF DELPHI18}
SDelphiKey = 'Software\Embarcadero\BDS\11.0';
{$ENDIF DELPHI18}
{$IFDEF DELPHI19}
SDelphiKey = 'Software\Embarcadero\BDS\12.0';
{$ENDIF DELPHI19}
{$IFDEF DELPHI20}
SDelphiKey = 'Software\Embarcadero\BDS\14.0';
{$ENDIF DELPHI20}
{$IFDEF DELPHI21}
SDelphiKey = 'Software\Embarcadero\BDS\15.0';
{$ENDIF DELPHI21}
{$IFDEF DELPHI22}
SDelphiKey = 'Software\Embarcadero\BDS\16.0';
{$ENDIF DELPHI22}
{$IFDEF DELPHI23}
SDelphiKey = 'Software\Embarcadero\BDS\17.0';
{$ENDIF DELPHI23}
{$IFDEF DELPHI24}
SDelphiKey = 'Software\Embarcadero\BDS\18.0';
{$ENDIF DELPHI24}
{$IFDEF DELPHI25}
SDelphiKey = 'Software\Embarcadero\BDS\19.0';
{$ENDIF DELPHI25}
{$IF not declared(SDelphiKey)}
{$MESSAGE FATAL 'Declaration for SDelphiKey is missing'}
{$IFEND}
{ JvDataProvider constants }
{ Consumer attributes }
DPA_RenderDisabledAsGrayed = 1;
DPA_RendersSingleItem = 2;
DPA_ConsumerDisplaysList = 3;
{ Command message constants. Define the JVCL base at 512 from the command message base. This gives the VCL room to
grow another 430 or so messages before interfering with us. It will give us room for 512 constants before we'd
interfere with the action manager constants. }
CM_JVBASE = CM_BASE + $0200;
{ Define command message that did not exist in earlier VCL versions }
{$IFNDEF COMPILER9_UP}
CM_INVALIDATEDOCKHOST = CM_BASE + 70;
{$ENDIF !COMPILER9_UP}
{ Command message for JvSpeedbar editor }
CM_SPEEDBARCHANGED = CM_JVBASE + $000;
{ Command message for TJvSpeedButton }
CM_JVBUTTONPRESSED = CM_JVBASE + $001;
{ Command messages for TJvBackground }
CM_RECREATEWINDOW = CM_JVBASE + $002;
CM_RELEASECLIENTLINK = CM_JVBASE + $003;
{ Command message used in JvProgressComponent }
CM_SHOWEVENT = CM_JVBASE + $004;
CM_CLOSEEVENT = CM_JVBASE + $005;
{ Command messages used in TJvColorButton, TJvOfficeColorButton and TJvCustomComboEdit }
CM_POPUPCLOSEUP = CM_JVBASE + $006;
CM_FIXCARETPOSITION = CM_JVBASE + $007;
{ Command messages used in JvButton }
CM_FORCESIZE = CM_JVBASE + $008;
{ Command message used in JvEditorCommon }
CM_RESETCAPTURECONTROL = CM_JVBASE + $009;
{ Command messages used in JvExControls }
CM_PERFORM = CM_JVBASE + $00A; // LParam: "Msg: ^TMessage"
CM_SETAUTOSIZE = CM_JVBASE + $00B; // WParam: "Value: Boolean"
{ Command messages used in JvLookOut }
CM_IMAGESIZECHANGED = CM_JVBASE + $00C;
CM_LEAVEBUTTON = CM_JVBASE + $00D;
{ Command messages used in JvNavigationPane }
CM_PARENTSTYLEMANAGERCHANGE = CM_JVBASE + $00E;
CM_PARENTSTYLEMANAGERCHANGED = CM_JVBASE + $00F;
{ Command messages used in JvOutlookBar }
CM_CAPTION_EDITING = CM_JVBASE + $010;
CM_CAPTION_EDIT_ACCEPT = CM_JVBASE + $011;
CM_CAPTION_EDIT_CANCEL = CM_JVBASE + $012;
{ Command message used in JvTimeLine }
CM_MOVEDRAGLINE = CM_JVBASE + $013;
{ Values for WParam for CM_SPEEDBARCHANGED message }
SBR_CHANGED = 0; { change buttons properties }
SBR_DESTROYED = 1; { destroy SpeedBar }
SBR_BTNSELECT = 2; { select button in SpeedBar }
SBR_BTNSIZECHANGED = 3; { button size changed }
{ TBitmap.GetTransparentColor from GRAPHICS.PAS use this value }
PaletteMask = $02000000;
// (outchy) now used
{$IFDEF COMPILER7_UP}
// (outchy) it was defined as $000000FF
DEFAULT_SYSCOLOR_MASK = clSystemColor; // $FF000000
{$ELSE}
DEFAULT_SYSCOLOR_MASK = $80000000;
{$ENDIF COMPILER7_UP}
sLineBreakStr = string(sLineBreak); // "native string" line break constant
sLineBreakLen = Length(sLineBreak);
CrLf = #13#10;
Cr = #13;
Lf = #10;
Backspace = #8;
Tab = #9;
Esc = #27;
Del = #127;
CtrlC = ^C;
CtrlH = ^H;
CtrlI = ^I;
CtrlJ = ^J;
CtrlM = ^M;
CtrlV = ^V;
CtrlX = ^X;
{$IFDEF MSWINDOWS}
RegPathDelim = '\';
PathDelim = '\';
DriveDelim = ':';
PathSep = ';';
AllFilePattern = '*.*';
{$ENDIF MSWINDOWS}
{$IFDEF UNIX}
RegPathDelim = '_';
PathDelim = '/';
AllFilePattern = '*';
{$ENDIF UNIX}
{const Separators is used in GetWordOnPos, JvUtils.ReplaceStrings and SubWord}
Separators: TSysCharSet = [#00, ' ', '-', #13, #10, '.', ',', '/', '\', '#', '"', '''',
':', '+', '%', '*', '(', ')', ';', '=', '{', '}', '[', ']', '{', '}', '<', '>'];
DigitChars = ['0'..'9'];
var
crJVCLFirst: TCursor = 368;
crMultiDragLink: TCursor = 368;
crDragAlt: TCursor = 369;
crMultiDragAlt: TCursor = 370;
crMultiDragLinkAlt: TCursor = 371;
crHand: TCursor = 372;
crDragHand: TCursor = 373;
// this should be incremented to always contain the last default JVCL cursor index
crJVCLLast: TCursor = 373;
const
ROP_DSPDxax = $00E20746;
const
FOURCC_ACON = 'ACON';
FOURCC_IART = 'IART';
FOURCC_INAM = 'INAM';
FOURCC_INFO = 'INFO';
FOURCC_LIST = 'LIST';
FOURCC_RIFF = 'RIFF';
FOURCC_anih = 'anih';
FOURCC_fram = 'fram';
FOURCC_icon = 'icon';
FOURCC_rate = 'rate';
FOURCC_seq = 'seq ';
AF_ICON = $00000001;
AF_SEQUENCE = $00000002;
const
KeyboardShiftStates = [ssShift, ssAlt, ssCtrl];
MouseShiftStates = [ssLeft, ssRight, ssMiddle, ssDouble];
tkStrings: set of TTypeKind = [tkString, tkLString, {$IFDEF UNICODE} tkUString, {$ENDIF} tkWString];
{$IFDEF UNITVERSIONING}
const
UnitVersioning: TUnitVersionInfo = (
RCSfile: '$URL$';
Revision: '$Revision$';
Date: '$Date$';
LogPath: 'JVCL\run'
);
{$ENDIF UNITVERSIONING}
implementation
{$IFDEF UNITVERSIONING}
initialization
RegisterUnitVersion(HInstance, UnitVersioning);
finalization
UnregisterUnitVersion(HInstance);
{$ENDIF UNITVERSIONING}
end.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.