📄 jvqcomputerinfoex.pas
字号:
property ScrollWidth: Integer read GetScrollWidth write SetScrollWidth stored False;
property ScrollHeight: Integer read GetScrollHeight write SetScrollHeight stored False;
property CaptionWidth: Integer read GetCaptionWidth write SetCaptionWidth stored False;
property CaptionHeight: Integer read GetCaptionHeight write SetCaptionHeight stored False;
property CaptionFont: TFont read GetCaptionFont write SetCaptionFont stored False;
property SmallCaptionWidth: Integer read GetSmallCaptionWidth write SetSmallCaptionWidth stored False;
property SmallCaptionHeight: Integer read GetSmallCaptionHeight write SetSmallCaptionHeight stored False;
property SmallCaptionFont: TFont read GetSmallCaptionFont write SetSmallCaptionFont stored False;
property MenuWidth: Integer read GetMenuWidth write SetMenuWidth stored False;
property MenuHeight: Integer read GetMenuHeight write SetMenuHeight stored False;
property MenuFont: TFont read GetMenuFont write SetMenuFont stored False;
property StatusFont: TFont read GetStatusFont write SetStatusFont stored False;
property MessageFont: TFont read GetMessageFont write SetMessageFont stored False;
end;
TJvSerialKeysFlags = set of (serkfAvailable, serkfIndicator, serkfSerialKeysOn);
TJvSerialKeysPortState = (psSerialKeysIgnored, psSerialKeysAware, psSerialKeysAlways);
TJvSerialKeys = class(TJvWriteableInfo)
// writeable: all (using NativeType recommended)
private
function GetActivePort: string;
function GetBaudRate: DWORD;
function GetFlags: TJvSerialKeysFlags;
function GetNativeType: SERIALKEYS;
function GetPortState: TJvSerialKeysPortState;
procedure SetActivePort(const Value: string);
procedure SetBaudRate(const Value: DWORD);
procedure SetFlags(const Value: TJvSerialKeysFlags);
procedure SetNativeType(Value: SERIALKEYS);
procedure SetPortState(const Value: TJvSerialKeysPortState);
function GetPort: string;
procedure SetPort(const Value: string);
function GetActive: Boolean;
procedure SetActive(const Value: Boolean);
public
property NativeType: SERIALKEYS read GetNativeType write SetNativeType;
published
property Active: Boolean read GetActive write SetActive stored False;
property Flags: TJvSerialKeysFlags read GetFlags write SetFlags stored False;
property ActivePort: string read GetActivePort write SetActivePort stored False;
property Port: string read GetPort write SetPort stored False;
property BaudRate: DWORD read GetBaudRate write SetBaudRate stored False;
property PortState: TJvSerialKeysPortState read GetPortState write SetPortState stored False;
end;
TJvSoundSentryFlags = set of (ssfAvailable, ssfSoundSentryOn, ssfIndicator);
TJvSoundSentryTextEffect = (sstfNone, sstfChars, sstfBorder, sstfDisplay);
TJvSoundSentryGrafEffect = (ssgfNone, ssgfDisplay);
TJvSoundSentryWindowsEffect = (sswfNone, sswfTitle, sswfWindow, sswfDisplay, sswfCustom);
TJvSoundSentry = class(TJvWriteableInfo)
// writeable: all (using NativeType recommended)
private
function GetFlags: TJvSoundSentryFlags;
function GetGrafEffect: TJvSoundSentryGrafEffect;
function GetGrafEffectColor: TColor;
function GetGrafEffectMSec: DWORD;
function GetNativeType: SOUNDSENTRY;
function GetTextEffect: TJvSoundSentryTextEffect;
function GetTextEffectColor: TColor;
function GetTextEffectMSec: DWORD;
function GetWindowsEffect: TJvSoundSentryWindowsEffect;
function GetWindowsEffectDLL: string;
function GetWindowsEffectMSec: DWORD;
procedure SetFlags(const Value: TJvSoundSentryFlags);
procedure SetGrafEffect(const Value: TJvSoundSentryGrafEffect);
procedure SetGrafEffectColor(const Value: TColor);
procedure SetGrafEffectMSec(const Value: DWORD);
procedure SetNativeType(Value: SOUNDSENTRY);
procedure SetTextEffect(const Value: TJvSoundSentryTextEffect);
procedure SetTextEffectColor(const Value: TColor);
procedure SetTextEffectMSec(const Value: DWORD);
procedure SetWindowsEffect(const Value: TJvSoundSentryWindowsEffect);
procedure SetWindowsEffectDLL(const Value: string);
procedure SetWindowsEffectMSec(const Value: DWORD);
public
property NativeType: SOUNDSENTRY read GetNativeType write SetNativeType;
published
property Flags: TJvSoundSentryFlags read GetFlags write SetFlags stored False;
property TextEffect: TJvSoundSentryTextEffect read GetTextEffect write SetTextEffect stored False;
property TextEffectMSec: DWORD read GetTextEffectMSec write SetTextEffectMSec stored False;
property TextEffectColor: TColor read GetTextEffectColor write SetTextEffectColor stored False;
property GrafEffect: TJvSoundSentryGrafEffect read GetGrafEffect write SetGrafEffect stored False;
property GrafEffectMSec: DWORD read GetGrafEffectMSec write SetGrafEffectMSec stored False;
property GrafEffectColor: TColor read GetGrafEffectColor write SetGrafEffectColor stored False;
property WindowsEffect: TJvSoundSentryWindowsEffect read GetWindowsEffect write SetWindowsEffect stored False;
property WindowsEffectMSec: DWORD read GetWindowsEffectMSec write SetWindowsEffectMSec stored False;
property WindowsEffectDLL: string read GetWindowsEffectDLL write SetWindowsEffectDLL stored False;
end;
TJvStickyKeysFlags = set of (skfStickyKeysOn, skfAvailable, skfHotkeyActive, skfConfirmHotKey,
skfHotKeySound, skfIndicator, skfAudibleFeedback, skfTriState, skfTwoKeysOff,
skfLeftAltLatched, skfLeftCtrlLatched, skfLeftShiftLatched,
skfRightAltLatched, skfRightCtrlLatched, skfRightShiftLatched,
skfLeftWinLatched, skfRightWinLatched,
skfLeftAltLocked, skfLeftCtrlLocked, skfLeftShiftLocked,
skfRightAltLocked, skfRightCtrlLocked, skfRightShiftLocked,
skfLeftWinLocked, skfRightWinLocked
);
TJvToggleKeysFlags = set of (tkfAvailable, tkfConfirmHotkey, tkfHotkeyActive, tkfHotkeySound, tkfToggleKeysOn);
TJvFontSmoothingType = (fstStandard, fstClearType, fstDocking);
TJvSystemParametersInfo = class(TJvWriteableInfo)
// writeable: all except ScreenSaverRunning, WindowsExtension
private
FAccessTimeOut: TJvAccessTimeOut;
FFilterKeys: TJvFilterKeys;
FHighContrast: TJvHighContrast;
FIconMetrics: TJvIconMetrics;
FMinimizedMetrics: TJvMinimizedMetrics;
FMouseKeys: TJvMouseKeys;
FNonClientMetrics: TJvNonClientMetrics;
FSerialKeys: TJvSerialKeys;
FSoundSentry: TJvSoundSentry;
FIconTitleFont: TFont;
FWorkArea: TJvRect;
FMap: array of TPoint;
function GetAccessTimeOut: TJvAccessTimeOut;
function GetFilterKeys: TJvFilterKeys;
function GetHighContrast: TJvHighContrast;
function GetIconMetrics: TJvIconMetrics;
function GetIconTitleFont: TFont;
function GetMinimizedMetrics: TJvMinimizedMetrics;
function GetMouseKeys: TJvMouseKeys;
function GetNonClientMetrics: TJvNonClientMetrics;
function GetSerialKeys: TJvSerialKeys;
function GetSoundSentry: TJvSoundSentry;
function GetStickyKeys: TJvStickyKeysFlags;
function GetToggleKeys: TJvToggleKeysFlags;
function GetWorkArea: TJvRect;
function GetIntInfo(const Index: Integer): Integer;
function GetBoolInfo(const Index: Integer): Boolean;
function GetMouseInfo(const Index: Integer): Integer;
function GetAnimationInfo: Boolean;
function GetKeyboardLayoutName: string;
function GetDeskWallpaper: string;
function GetFontSmoothingType: TJvFontSmoothingType;
function GetIconSpacing(const Index: Integer): Integer;
procedure SetBoolInfo(const Index: Integer; const Value: Boolean);
procedure SetIntInfo(const Index, Value: Integer);
procedure SetAccessTimeOut(const Value: TJvAccessTimeOut);
procedure SetFilterKeys(const Value: TJvFilterKeys);
procedure SetHighContrast(const Value: TJvHighContrast);
procedure SetIconMetrics(const Value: TJvIconMetrics);
procedure SetIconTitleFont(const Value: TFont);
procedure SetMinimizedMetrics(const Value: TJvMinimizedMetrics);
procedure SetMouseKeys(const Value: TJvMouseKeys);
procedure SetNonClientMetrics(const Value: TJvNonClientMetrics);
procedure SetSerialKeys(const Value: TJvSerialKeys);
procedure SetSoundSentry(const Value: TJvSoundSentry);
procedure SetStickyKeys(const Value: TJvStickyKeysFlags);
procedure SetToggleKeys(const Value: TJvToggleKeysFlags);
procedure SetWorkArea(const Value: TJvRect);
procedure SetMouseInfo(const Index, Value: Integer);
procedure SetAnimationInfo(const Value: Boolean);
procedure SetKeyboardLayoutName(const Value: string);
procedure SetDeskWallpaper(const Value: string);
procedure SetFontSmoothingType(const Value: TJvFontSmoothingType);
procedure SetIconSpacing(const Index, Value: Integer);
procedure InitMap;
function MapToSet(Index: Integer): Integer;
public
constructor Create;
destructor Destroy; override;
published
property AccessTimeOut: TJvAccessTimeOut read GetAccessTimeOut write SetAccessTimeOut stored False;
property Animation: Boolean read GetAnimationInfo write SetAnimationInfo stored False;
property Beep: Boolean index SPI_GETBEEP read GetBoolInfo write SetBoolInfo stored False;
property BorderMultiplier: Integer index SPI_GETBORDER read GetIntInfo write SetIntInfo stored False;
property DefaultInputLanguage: Integer index SPI_GETDEFAULTINPUTLANG read GetIntInfo write SetIntInfo stored False;
property DragFullWindows: Boolean index SPI_GETDRAGFULLWINDOWS read GetBoolInfo write SetBoolInfo stored False;
property FilterKeys: TJvFilterKeys read GetFilterKeys write SetFilterKeys stored False;
property FontSmoothing: Boolean index SPI_GETFONTSMOOTHING read GetBoolInfo write SetBoolInfo stored False;
property GridGranularity: Integer index SPI_GETGRIDGRANULARITY read GetIntInfo write SetIntInfo stored False;
property HighContrast: TJvHighContrast read GetHighContrast write SetHighContrast stored False;
property IconMetrics: TJvIconMetrics read GetIconMetrics write SetIconMetrics stored False;
property IconTitleFont: TFont read GetIconTitleFont write SetIconTitleFont stored False;
property IconTitleWrap: Boolean index SPI_GETICONTITLEWRAP read GetBoolInfo write SetBoolInfo stored False;
property KeyboardDelay: Integer index SPI_GETKEYBOARDDELAY read GetIntInfo write SetIntInfo stored False;
property KeyboardPreferred: Boolean index SPI_GETKEYBOARDPREF read GetBoolInfo write SetBoolInfo stored False;
property KeyboardSpeed: Integer index SPI_GETKEYBOARDSPEED read GetIntInfo write SetIntInfo stored False;
property KeyboardLayoutName: string read GetKeyboardLayoutName write SetKeyboardLayoutName stored False;
property LowPowerActive: Boolean index SPI_GETLOWPOWERACTIVE read GetBoolInfo write SetBoolInfo stored False;
property LowPowerTimeOut: Integer index SPI_GETLOWPOWERTIMEOUT read GetIntInfo write SetIntInfo stored False;
property MenuLeftAligned: Boolean index SPI_GETMENUDROPALIGNMENT read GetBoolInfo write SetBoolInfo stored False;
property MinimizedMetrics: TJvMinimizedMetrics read GetMinimizedMetrics write SetMinimizedMetrics stored False;
property MouseSpeed: Integer index SPI_GETMOUSESPEED read GetIntInfo write SetIntInfo stored False;
property MouseThreshold1: Integer index 0 read GetMouseInfo write SetMouseInfo stored False;
property MouseThreshold2: Integer index 1 read GetMouseInfo write SetMouseInfo stored False;
property MouseHoverHeight: Integer index SPI_GETMOUSEHOVERHEIGHT read GetIntInfo write SetIntInfo stored False;
property MouseHoverTime: Integer index SPI_GETMOUSEHOVERTIME read GetIntInfo write SetIntInfo stored False;
property MouseHoverWidth: Integer index SPI_GETMOUSEHOVERWIDTH read GetIntInfo write SetIntInfo stored False;
property MouseKeys: TJvMouseKeys read GetMouseKeys write SetMouseKeys stored False;
property MouseTrails: Integer index SPI_GETMOUSETRAILS read GetIntInfo write SetIntInfo stored False;
property NonClientMetrics: TJvNonClientMetrics read GetNonClientMetrics write SetNonClientMetrics stored False;
property PowerOffActive: Boolean index SPI_GETPOWEROFFACTIVE read GetBoolInfo write SetBoolInfo stored False;
property PowerOffTimeout: Integer index SPI_GETPOWEROFFTIMEOUT read GetIntInfo write SetIntInfo stored False;
property ScreenReader: Boolean index SPI_GETSCREENREADER read GetBoolInfo write SetBoolInfo stored False;
property ScreenSaverActive: Boolean index SPI_GETSCREENSAVEACTIVE read GetBoolInfo write SetBoolInfo stored False;
property ScreenSaveTimeOut: Integer index SPI_GETSCREENSAVETIMEOUT read GetIntInfo write SetIntInfo stored False;
property SerialKeys: TJvSerialKeys read GetSerialKeys write SetSerialKeys stored False;
property ShowSounds: Boolean index SPI_GETSHOWSOUNDS read GetBoolInfo write SetBoolInfo stored False;
property SnapToDefaultButton: Boolean index SPI_GETSNAPTODEFBUTTON read GetBoolInfo write SetBoolInfo stored False;
property SoundSentry: TJvSoundSentry read GetSoundSentry write SetSoundSentry stored False;
property StickyKeys: TJvStickyKeysFlags read GetStickyKeys write SetStickyKeys stored False;
property ToggleKeys: TJvToggleKeysFlags read GetToggleKeys write SetToggleKeys stored False;
property WheelScrollLines: Integer index SPI_GETWHEELSCROLLLINES read GetIntInfo write SetIntInfo stored False;
property WindowsExtensions: Boolean index SPI_GETWINDOWSEXTENSION read GetBoolInfo write SetBoolInfo stored False;
property WorkArea: TJvRect read GetWorkArea write SetWorkArea stored False;
property ScreenSaverRunning: Boolean index SPI_GETSCREENSAVERRUNNING read GetBoolInfo write SetBoolInfo stored False;
// New (W2k, XP and up)
property FocusBorderHeight: Integer index SPI_GETFOCUSBORDERHEIGHT read GetIntInfo write SetIntInfo stored False;
property FocusBorderWidth: Integer index SPI_GETFOCUSBORDERWIDTH read GetIntInfo write SetIntInfo stored False;
property MouseClickLock: Boolean index SPI_GETMOUSECLICKLOCK read GetBoolInfo write SetBoolInfo stored False;
property MouseClickLockTime: Integer index SPI_GETMOUSECLICKLOCKTIME read GetIntInfo write SetIntInfo stored False;
property MouseSonar: Boolean index SPI_GETMOUSESONAR read GetBoolInfo write SetBoolInfo stored False;
property MouseVanish: Boolean index SPI_GETMOUSEVANISH read GetBoolInfo write SetBoolInfo stored False;
property DeskWallpaper: string read GetDeskWallpaper write SetDeskWallpaper stored False;
property DropShadow: Boolean index SPI_GETDROPSHADOW read GetBoolInfo write SetBoolInfo stored False;
property FlatMenu: Boolean index SPI_GETFLATMENU read GetBoolInfo write SetBoolInfo stored False;
property FontSmoothingContrast: Integer index SPI_GETFONTSMOOTHINGCONTRAST read GetIntInfo write SetIntInfo stored False;
property FontSmoothingType: TJvFontSmoothingType read GetFontSmoothingType write SetFontSmoothingType stored False;
property MenuShowDelay: Integer index SPI_GETMENUSHOWDELAY read GetIntInfo write SetIntInfo stored False;
property ShowIMEUI: Boolean index SPI_GETSHOWIMEUI read GetBoolInfo write SetBoolInfo stored False;
property ActiveWindowTracking: Boolean index SPI_GETACTIVEWINDOWTRACKING read GetBoolInfo write SetBoolInfo stored False;
property MenuAnimation: Boolean index SPI_GETMENUANIMATION read GetBoolInfo write SetBoolInfo stored False;
property ComboboxAnimation: Boolean index SPI_GETCOMBOBOXANIMATION read GetBoolInfo write SetBoolInfo stored False;
property ListboxSmoothScrolling: Boolean index SPI_GETLISTBOXSMOOTHSCROLLING read GetBoolInfo write SetBoolInfo stored False;
property GradientCaptions: Boolean index SPI_GETGRADIENTCAPTIONS read GetBoolInfo write SetBoolInfo stored False;
property MenuUnderLines: Boolean index SPI_GETMENUUNDERLINES read GetBoolInfo write SetBoolInfo stored False;
property ActiveWindowTrackZOrder: Boolean index SPI_GETACTIVEWNDTRKZORDER read GetBoolInfo write SetBoolInfo stored False;
property HotTracking: Boolean index SPI_GETHOTTRACKING read GetBoolInfo write SetBoolInfo stored False;
prope
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -