📄 jvqexforms.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: JvExForms.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: JvQExForms.pas,v 1.33 2005/02/06 14:06:09 asnepvangers Exp $
unit JvQExForms;
{$I jvcl.inc}
{MACROINCLUDE JvQExControls.macros}
{*****************************************************************************
* WARNING: Do not edit this file.
* This file is autogenerated from the source in devtools/JvExCLX/src.
* If you do it despite this warning your changes will be discarded by the next
* update of this file. Do your changes in the template files.
****************************************************************************}
interface
uses
Classes, SysUtils,
QGraphics, QControls, QForms, QExtCtrls,
Qt, QWindows, QMessages, QToolWin,
JvQTypes, JvQThemes, JVCLXVer, JvQExControls;
type
{ QWinControl Begin }
TJvExCustomForm = class(TCustomForm)
{ QControl }
private
FAboutJVCL: TJVCLAboutInfo;
FDesktopFont: Boolean;
FDragCursor: TCursor;
FDragKind: TDragKind;
FHintColor: TColor;
FMouseOver: Boolean;
FOnParentColorChanged: TNotifyEvent;
FWindowProc: TWndMethod;
procedure SetDesktopFont(Value: Boolean);
procedure CMHitTest(var Mesg: TJvMessage); message CM_HITTEST;
procedure CMHintShow(var Mesg: TJvMessage); message CM_HINTSHOW;
procedure CMSysFontChanged(var Mesg: TMessage); message CM_SYSFONTCHANGED;
protected
procedure ColorChanged; override;
procedure EnabledChanged; override;
procedure FocusChanged; dynamic;
function HitTest(X, Y: integer): Boolean; override;
procedure MouseEnter(AControl: TControl); override;
procedure MouseLeave(AControl: TControl); override;
procedure ParentColorChanged; override;
procedure TextChanged; override;
procedure VisibleChanged; override;
function HintShow(var HintInfo : THintInfo): Boolean; override;
procedure WndProc(var Mesg: TMessage); dynamic;
property DragCursor: TCursor read FDragCursor write FDragCursor stored False; { not implemented }
property DragKind: TDragKind read FDragKind write FDragKind stored false; { not implemented }
property OnParentColorChange: TNotifyEvent read FOnParentColorChanged write FOnParentColorChanged;
property DesktopFont: Boolean read FDesktopFont write SetDesktopFont default false;
public
procedure Dispatch(var Mesg); override;
function Perform(Msg: Cardinal; WParam, LParam: Longint): Longint;
function IsRightToLeft: Boolean;
property WindowProc: TWndMethod read FWindowProc write FWindowProc;
property MouseOver: Boolean read FMouseOver write FMouseOver;
published
property AboutJVCLX: TJVCLAboutInfo read FAboutJVCL write FAboutJVCL stored False;
property HintColor: TColor read FHintColor write FHintColor default clDefault;
{ QWinControl }
private
FInternalFontChanged: TNotifyEvent;
FOnEvent: TEventEvent;
procedure DoOnFontChanged(Sender: TObject);
procedure CMDesignHitTest(var Mesg: TJvMessage); message CM_DESIGNHITTEST;
protected
procedure CreateWidget; override;
procedure CreateWnd; virtual;
procedure CursorChanged; override;
procedure DoEnter; override;
function DoPaintBackground(Canvas: TCanvas; Param: Integer): Boolean; virtual;
procedure DoExit; override;
procedure DoKillFocus(NextWnd: HWND); dynamic;
procedure DoSetFocus(PreviousWnd: HWND); dynamic;
function EventFilter(Sender: QObjectH; Event: QEventH): Boolean; override;
procedure PaintWindow(PaintDevice: QPaintDeviceH);
procedure RecreateWnd;
procedure ShowingChanged; override;
function WidgetFlags: Integer; override;
public
function ColorToRGB(Value: TColor): TColor;
procedure PaintTo(PaintDevice: QPaintDeviceH; X, Y: Integer);
published
property OnEvent: TEventEvent read FOnEvent write FOnEvent;
{ QCustomForm }
public
constructor Create(AOwner: TComponent); override;
constructor CreateNew(AOwner: TComponent; Dummy: Integer = 0); override;
destructor Destroy; override;
end;
{ QWinControl Begin }
TJvExForm = class(TForm)
{ QControl }
private
FAboutJVCL: TJVCLAboutInfo;
FDesktopFont: Boolean;
FDragCursor: TCursor;
FDragKind: TDragKind;
FHintColor: TColor;
FMouseOver: Boolean;
FOnParentColorChanged: TNotifyEvent;
FWindowProc: TWndMethod;
procedure SetDesktopFont(Value: Boolean);
procedure CMHitTest(var Mesg: TJvMessage); message CM_HITTEST;
procedure CMHintShow(var Mesg: TJvMessage); message CM_HINTSHOW;
procedure CMSysFontChanged(var Mesg: TMessage); message CM_SYSFONTCHANGED;
protected
procedure ColorChanged; override;
procedure EnabledChanged; override;
procedure FocusChanged; dynamic;
function HitTest(X, Y: integer): Boolean; override;
procedure MouseEnter(AControl: TControl); override;
procedure MouseLeave(AControl: TControl); override;
procedure ParentColorChanged; override;
procedure TextChanged; override;
procedure VisibleChanged; override;
function HintShow(var HintInfo : THintInfo): Boolean; override;
procedure WndProc(var Mesg: TMessage); dynamic;
property DragCursor: TCursor read FDragCursor write FDragCursor stored False; { not implemented }
property DragKind: TDragKind read FDragKind write FDragKind stored false; { not implemented }
property OnParentColorChange: TNotifyEvent read FOnParentColorChanged write FOnParentColorChanged;
property DesktopFont: Boolean read FDesktopFont write SetDesktopFont default false;
public
procedure Dispatch(var Mesg); override;
function Perform(Msg: Cardinal; WParam, LParam: Longint): Longint;
function IsRightToLeft: Boolean;
property WindowProc: TWndMethod read FWindowProc write FWindowProc;
property MouseOver: Boolean read FMouseOver write FMouseOver;
published
property AboutJVCLX: TJVCLAboutInfo read FAboutJVCL write FAboutJVCL stored False;
property HintColor: TColor read FHintColor write FHintColor default clDefault;
{ QWinControl }
private
FInternalFontChanged: TNotifyEvent;
FOnEvent: TEventEvent;
procedure DoOnFontChanged(Sender: TObject);
procedure CMDesignHitTest(var Mesg: TJvMessage); message CM_DESIGNHITTEST;
protected
procedure CreateWidget; override;
procedure CreateWnd; virtual;
procedure CursorChanged; override;
procedure DoEnter; override;
function DoPaintBackground(Canvas: TCanvas; Param: Integer): Boolean; virtual;
procedure DoExit; override;
procedure DoKillFocus(NextWnd: HWND); dynamic;
procedure DoSetFocus(PreviousWnd: HWND); dynamic;
function EventFilter(Sender: QObjectH; Event: QEventH): Boolean; override;
procedure PaintWindow(PaintDevice: QPaintDeviceH);
procedure RecreateWnd;
procedure ShowingChanged; override;
function WidgetFlags: Integer; override;
public
function ColorToRGB(Value: TColor): TColor;
procedure PaintTo(PaintDevice: QPaintDeviceH; X, Y: Integer);
published
property OnEvent: TEventEvent read FOnEvent write FOnEvent;
{ QCustomForm }
public
constructor Create(AOwner: TComponent); override;
constructor CreateNew(AOwner: TComponent; Dummy: Integer = 0); override;
destructor Destroy; override;
end;
{ QWinControl Begin }
TJvExCustomFrame = class(TCustomFrame)
{ QControl }
private
FAboutJVCL: TJVCLAboutInfo;
FDesktopFont: Boolean;
FDragCursor: TCursor;
FDragKind: TDragKind;
FHintColor: TColor;
FMouseOver: Boolean;
FOnParentColorChanged: TNotifyEvent;
FWindowProc: TWndMethod;
procedure SetDesktopFont(Value: Boolean);
procedure CMHitTest(var Mesg: TJvMessage); message CM_HITTEST;
procedure CMHintShow(var Mesg: TJvMessage); message CM_HINTSHOW;
procedure CMSysFontChanged(var Mesg: TMessage); message CM_SYSFONTCHANGED;
protected
procedure ColorChanged; override;
procedure EnabledChanged; override;
procedure FocusChanged; dynamic;
function HitTest(X, Y: integer): Boolean; override;
procedure MouseEnter(AControl: TControl); override;
procedure MouseLeave(AControl: TControl); override;
procedure ParentColorChanged; override;
procedure TextChanged; override;
procedure VisibleChanged; override;
function HintShow(var HintInfo : THintInfo): Boolean; override;
procedure WndProc(var Mesg: TMessage); dynamic;
property DragCursor: TCursor read FDragCursor write FDragCursor stored False; { not implemented }
property DragKind: TDragKind read FDragKind write FDragKind stored false; { not implemented }
property OnParentColorChange: TNotifyEvent read FOnParentColorChanged write FOnParentColorChanged;
property DesktopFont: Boolean read FDesktopFont write SetDesktopFont default false;
public
procedure Dispatch(var Mesg); override;
function Perform(Msg: Cardinal; WParam, LParam: Longint): Longint;
function IsRightToLeft: Boolean;
property WindowProc: TWndMethod read FWindowProc write FWindowProc;
property MouseOver: Boolean read FMouseOver write FMouseOver;
published
property AboutJVCLX: TJVCLAboutInfo read FAboutJVCL write FAboutJVCL stored False;
property HintColor: TColor read FHintColor write FHintColor default clDefault;
{ QWinControl }
private
FInternalFontChanged: TNotifyEvent;
FOnEvent: TEventEvent;
procedure DoOnFontChanged(Sender: TObject);
procedure CMDesignHitTest(var Mesg: TJvMessage); message CM_DESIGNHITTEST;
protected
procedure CreateWidget; override;
procedure CreateWnd; virtual;
procedure CursorChanged; override;
procedure DoEnter; override;
function DoPaintBackground(Canvas: TCanvas; Param: Integer): Boolean; virtual;
procedure DoExit; override;
procedure DoKillFocus(NextWnd: HWND); dynamic;
procedure DoSetFocus(PreviousWnd: HWND); dynamic;
function EventFilter(Sender: QObjectH; Event: QEventH): Boolean; override;
procedure PaintWindow(PaintDevice: QPaintDeviceH);
procedure RecreateWnd;
procedure ShowingChanged; override;
function WidgetFlags: Integer; override;
public
function ColorToRGB(Value: TColor): TColor;
procedure PaintTo(PaintDevice: QPaintDeviceH; X, Y: Integer);
published
property OnEvent: TEventEvent read FOnEvent write FOnEvent;
{ QWinControl }
private
FCanvas: TCanvas;
FDoubleBuffered: Boolean;
protected
procedure Paint; virtual;
procedure Painting(Sender: QObjectH; EventRegion: QRegionH); override;
property DoubleBuffered: Boolean read FDoubleBuffered write FDoubleBuffered;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
property Canvas: TCanvas read FCanvas;
end;
{ QWinControl Begin }
TJvExFrame = class(TFrame)
{ QControl }
private
FAboutJVCL: TJVCLAboutInfo;
FDesktopFont: Boolean;
FDragCursor: TCursor;
FDragKind: TDragKind;
FHintColor: TColor;
FMouseOver: Boolean;
FOnParentColorChanged: TNotifyEvent;
FWindowProc: TWndMethod;
procedure SetDesktopFont(Value: Boolean);
procedure CMHitTest(var Mesg: TJvMessage); message CM_HITTEST;
procedure CMHintShow(var Mesg: TJvMessage); message CM_HINTSHOW;
procedure CMSysFontChanged(var Mesg: TMessage); message CM_SYSFONTCHANGED;
protected
procedure ColorChanged; override;
procedure EnabledChanged; override;
procedure FocusChanged; dynamic;
function HitTest(X, Y: integer): Boolean; override;
procedure MouseEnter(AControl: TControl); override;
procedure MouseLeave(AControl: TControl); override;
procedure ParentColorChanged; override;
procedure TextChanged; override;
procedure VisibleChanged; override;
function HintShow(var HintInfo : THintInfo): Boolean; override;
procedure WndProc(var Mesg: TMessage); dynamic;
property DragCursor: TCursor read FDragCursor write FDragCursor stored False; { not implemented }
property DragKind: TDragKind read FDragKind write FDragKind stored false; { not implemented }
property OnParentColorChange: TNotifyEvent read FOnParentColorChanged write FOnParentColorChanged;
property DesktopFont: Boolean read FDesktopFont write SetDesktopFont default false;
public
procedure Dispatch(var Mesg); override;
function Perform(Msg: Cardinal; WParam, LParam: Longint): Longint;
function IsRightToLeft: Boolean;
property WindowProc: TWndMethod read FWindowProc write FWindowProc;
property MouseOver: Boolean read FMouseOver write FMouseOver;
published
property AboutJVCLX: TJVCLAboutInfo read FAboutJVCL write FAboutJVCL stored False;
property HintColor: TColor read FHintColor write FHintColor default clDefault;
{ QWinControl }
private
FInternalFontChanged: TNotifyEvent;
FOnEvent: TEventEvent;
procedure DoOnFontChanged(Sender: TObject);
procedure CMDesignHitTest(var Mesg: TJvMessage); message CM_DESIGNHITTEST;
protected
procedure CreateWidget; override;
procedure CreateWnd; virtual;
procedure CursorChanged; override;
procedure DoEnter; override;
function DoPaintBackground(Canvas: TCanvas; Param: Integer): Boolean; virtual;
procedure DoExit; override;
procedure DoKillFocus(NextWnd: HWND); dynamic;
procedure DoSetFocus(PreviousWnd: HWND); dynamic;
function EventFilter(Sender: QObjectH; Event: QEventH): Boolean; override;
procedure PaintWindow(PaintDevice: QPaintDeviceH);
procedure RecreateWnd;
procedure ShowingChanged; override;
function WidgetFlags: Integer; override;
public
function ColorToRGB(Value: TColor): TColor;
procedure PaintTo(PaintDevice: QPaintDeviceH; X, Y: Integer);
published
property OnEvent: TEventEvent read FOnEvent write FOnEvent;
{ QWinControl }
private
FCanvas: TCanvas;
FDoubleBuffered: Boolean;
protected
procedure Paint; virtual;
procedure Painting(Sender: QObjectH; EventRegion: QRegionH); override;
property DoubleBuffered: Boolean read FDoubleBuffered write FDoubleBuffered;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
property Canvas: TCanvas read FCanvas;
end;
{ QWinControl Begin }
TJvExScrollBox = class(TScrollBox)
{ QControl }
private
FAboutJVCL: TJVCLAboutInfo;
FDesktopFont: Boolean;
FDragCursor: TCursor;
FDragKind: TDragKind;
FHintColor: TColor;
FMouseOver: Boolean;
FOnParentColorChanged: TNotifyEvent;
FWindowProc: TWndMethod;
procedure SetDesktopFont(Value: Boolean);
procedure CMHitTest(var Mesg: TJvMessage); message CM_HITTEST;
procedure CMHintShow(var Mesg: TJvMessage); message CM_HINTSHOW;
procedure CMSysFontChanged(var Mesg: TMessage); message CM_SYSFONTCHANGED;
protected
procedure ColorChanged; override;
procedure EnabledChanged; override;
procedure FocusChanged; dynamic;
function HitTest(X, Y: integer): Boolean; override;
procedure MouseEnter(AControl: TControl); override;
procedure MouseLeave(AControl: TControl); override;
procedure ParentColorChanged; override;
procedure TextChanged; override;
procedure VisibleChanged; override;
function HintShow(var HintInfo : THintInfo): Boolean; override;
procedure WndProc(var Mesg: TMessage); dynamic;
property DragCursor: TCursor read FDragCursor write FDragCursor stored False; { not implemented }
property DragKind: TDragKind read FDragKind write FDragKind stored false; { not implemented }
property OnParentColorChange: TNotifyEvent read FOnParentColorChanged write FOnParentColorChanged;
property DesktopFont: Boolean read FDesktopFont write SetDesktopFont default false;
public
procedure Dispatch(var Mesg); override;
function Perform(Msg: Cardinal; WParam, LParam: Longint): Longint;
function IsRightToLeft: Boolean;
property WindowProc: TWndMethod read FWindowProc write FWindowProc;
property MouseOver: Boolean read FMouseOver write FMouseOver;
published
property AboutJVCLX: TJVCLAboutInfo read FAboutJVCL write FAboutJVCL stored False;
property HintColor: TColor read FHintColor write FHintColor default clDefault;
{ QWinControl }
private
FInternalFontChanged: TNotifyEvent;
FOnEvent: TEventEvent;
procedure DoOnFontChanged(Sender: TObject);
procedure CMDesignHitTest(var Mesg: TJvMessage); message CM_DESIGNHITTEST;
protected
procedure CreateWidget; override;
procedure CreateWnd; virtual;
procedure CursorChanged; override;
procedure DoEnter; override;
function DoPaintBackground(Canvas: TCanvas; Param: Integer): Boolean; virtual;
procedure DoExit; override;
procedure DoKillFocus(NextWnd: HWND); dynamic;
procedure DoSetFocus(PreviousWnd: HWND); dynamic;
function EventFilter(Sender: QObjectH; Event: QEventH): Boolean; override;
procedure PaintWindow(PaintDevice: QPaintDeviceH);
procedure RecreateWnd;
procedure ShowingChanged; override;
function WidgetFlags: Integer; override;
public
function ColorToRGB(Value: TColor): TColor;
procedure PaintTo(PaintDevice: QPaintDeviceH; X, Y: Integer);
published
property OnEvent: TEventEvent read FOnEvent write FOnEvent;
{ QWinControl }
private
FCanvas: TCanvas;
FDoubleBuffered: Boolean;
protected
procedure Paint; virtual;
procedure Painting(Sender: QObjectH; EventRegion: QRegionH); override;
property DoubleBuffered: Boolean read FDoubleBuffered write FDoubleBuffered;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
property Canvas: TCanvas read FCanvas;
end;
{ QWinControl Begin }
TJvExScrollingWidget = class(TScrollingWidget)
{ QControl }
private
FAboutJVCL: TJVCLAboutInfo;
FDesktopFont: Boolean;
FDragCursor: TCursor;
FDragKind: TDragKind;
FHintColor: TColor;
FMouseOver: Boolean;
FOnParentColorChanged: TNotifyEvent;
FWindowProc: TWndMethod;
procedure SetDesktopFont(Value: Boolean);
procedure CMHitTest(var Mesg: TJvMessage); message CM_HITTEST;
procedure CMHintShow(var Mesg: TJvMessage); message CM_HINTSHOW;
procedure CMSysFontChanged(var Mesg: TMessage); message CM_SYSFONTCHANGED;
protected
procedure ColorChanged; override;
procedure EnabledChanged; override;
procedure FocusChanged; dynamic;
function HitTest(X, Y: integer): Boolean; override;
procedure MouseEnter(AControl: TControl); override;
procedure MouseLeave(AControl: TControl); override;
procedure ParentColorChanged; override;
procedure TextChanged; override;
procedure VisibleChanged; override;
function HintShow(var HintInfo : THintInfo): Boolean; override;
procedure WndProc(var Mesg: TMessage); dynamic;
property DragCursor: TCursor read FDragCursor write FDragCursor stored False; { not implemented }
property DragKind: TDragKind read FDragKind write FDragKind stored false; { not implemented }
property OnParentColorChange: TNotifyEvent read FOnParentColorChanged write FOnParentColorChanged;
property DesktopFont: Boolean read FDesktopFont write SetDesktopFont default false;
public
procedure Dispatch(var Mesg); override;
function Perform(Msg: Cardinal; WParam, LParam: Longint): Longint;
function IsRightToLeft: Boolean;
property WindowProc: TWndMethod read FWindowProc write FWindowProc;
property MouseOver: Boolean read FMouseOver write FMouseOver;
published
property AboutJVCLX: TJVCLAboutInfo read FAboutJVCL write FAboutJVCL stored False;
property HintColor: TColor read FHintColor write FHintColor default clDefault;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -