This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Form1: TForm1 | |
Left = 0 | |
Top = 0 | |
Caption = 'Form1' | |
ClientHeight = 441 | |
ClientWidth = 624 | |
Color = clBtnFace | |
Font.Charset = ANSI_CHARSET | |
Font.Color = clWindowText | |
Font.Height = -37 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit PasswordUtils; | |
interface | |
{$DEFINE ENABLE_CHECK_ROUTINES} | |
uses | |
System.SysUtils; | |
type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Unit2; | |
interface | |
{$IF RTLVersion < 21.0} | |
{$MESSAGE ERROR 'Delphi 2010 or later is required.'} | |
{$IFEND} | |
uses | |
{$IF RTLVersion < 23.0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Unit2; | |
interface | |
uses | |
{$IF RTLVersion < 23.0} | |
Windows, SysUtils; | |
{$ELSE} | |
Winapi.Windows, System.SysUtils; | |
{$IFEND} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hide Quick Action Panel from Delphi 2010 or later | |
// Delphi 2010以降のクイックアクションパネルを非表示にする | |
// original by MartynA from https://stackoverflow.com/questions/41501400/delphi-xe4-ide-how-to-always-hide-the-bottom-panes-of-the-object-inspector | |
// | |
// How to use this package: | |
// Open HideQuickActionPanel.dpk and change project option/description page below, and select 'install' on project pane's context menu. | |
// 1.Set description 'Hide quick action panel' or something. | |
// 2.Set LIB suffix, for example '330'(compiler version) or '260'(Delphi version) or '200'(studio version) or 'Rio'(codename) or etc. | |
// 3.Set 'Design time only'. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit DumpExceptionStack; | |
interface | |
uses | |
Winapi.Windows, | |
System.SysUtils, | |
JclBase, JclDebug; | |
function GetExceptionDescription(E: Exception): String; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit UCombSort; | |
interface | |
{$IF RTLVersion <= 20.00} | |
{$MESSAGE ERROR 'Need Delphi 2010 or later'} | |
{$IFEND} | |
uses | |
{$IF RTLVersion >= 23.00} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Unit2; | |
interface | |
uses | |
{$IF RTLVersion >= 23.00} | |
Winapi.Windows, System.SysUtils, System.Win.Registry, System.AnsiStrings, | |
Vcl.DdeMan; | |
{$ELSE} | |
Windows, SysUtils, Registry, {$IFDEF UNICODE}AnsiStrings, {$ENDIF}DdeMan; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Unit2; | |
interface | |
uses | |
Unit3; | |
type | |
TFooHelper = class helper for TFoo | |
public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function IsWindowsServer: Boolean; | |
var | |
OSVI: TOSVersionInfoEx; | |
ConditionMask: UInt64; | |
begin | |
FillChar(OSVI,SizeOf(TOSVersionInfoEX),0); | |
OSVI.dwOSVersionInfoSize := SizeOf(OSVI); | |
OSVI.wProductType := VER_NT_WORKSTATION; |
NewerOlder