This file contains hidden or 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
program StaticOverride; | |
type | |
TFoo = class | |
public | |
class procedure Bar; virtual; | |
end; | |
TBar = class(TFoo) | |
public |
This file contains hidden or 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
(* | |
* This is sample code (My memorandum) | |
* System.Net.HttpClient.THttpClient class | |
* | |
* Programmed by HOSOKAWA Jun / twitter @pik | |
*) | |
program MVPCounter; | |
{$APPTYPE CONSOLE} |
This file contains hidden or 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
program Foo; | |
function Bar(N: Integer): Integer; | |
begin | |
if (N > 0) then | |
Bar := Bar(N - 1); | |
end; | |
begin | |
Bar(5); |
This file contains hidden or 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
(* | |
* 概要 Base64 にエンコード | |
* 引数 iSrc エンコードしたいストリーム | |
* iDest エンコード結果格納先 | |
* iSepCount セパレータを入れる場所(32 なら 32 個エンコードした所で入る) | |
* iSep セパレータ | |
*) | |
procedure EncodeBase64( | |
const iSrc, iDest: TStream; | |
iSepCount: Integer = 0; |
This file contains hidden or 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
uses | |
System.Generics.Collections; | |
type | |
TOpenText = class(TText); | |
procedure TForm1.CreateRandomText; | |
var | |
x, y: Integer; | |
Text: TText; |
This file contains hidden or 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 FixTaskbarIconClick; | |
(* | |
* Fix RSP-17322 | |
* | |
* USAGE: | |
* Just add FixTaskbarIconClick to the uses section. | |
* | |
* RSP-17322: | |
* Window minimize-restore via taskbar icon click is broken in | |
* all Windows flavours |
This file contains hidden or 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
(* | |
* TComboEdit のフォントを変更するサンプルコード | |
* | |
* Copyright (c) 2018 HOSOKAWA Jun. | |
* | |
* HOW TO USE: | |
* 1. Add uComboEditHelper to uses block. | |
* 2. Call ComboEdit.SetFont at an appropriate timing such as FormCreate | |
* | |
* EXAMPLE: |
This file contains hidden or 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
(* | |
* MMX, SSE, SSE2, 3DNow, 3DNow2, CPU Manifacture を取得するクラス | |
* Copyright (c) 2018 HOSOKAWA Jun. | |
* | |
* LICENSE: | |
* 本ソフトウェアは「現状のまま」で、明示であるか暗黙であるかを問わず、 | |
* 何らの保証もなく提供されます。 | |
* 本ソフトウェアの使用によって生じるいかなる損害についても、 | |
* 作者は一切の責任を負わないものとします。 | |
* |
This file contains hidden or 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
(* | |
* TStringGrid をソートするサンプルコード | |
* | |
* Copyright (c) 2018 HOSOKAWA Jun. | |
* | |
* HOW TO USE: | |
* 1. Add PK.StringGrid.Helper to uses block. | |
* 2. Call StringGrid.SortByColumn(Column) | |
* | |
* EXAMPLE: |
This file contains hidden or 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
(* | |
* XE5 TStringGrid でヘッダをクリックされたイベントを取得するサンプルコード | |
* | |
* Copyright (c) 2018 HOSOKAWA Jun. | |
* | |
* HOW TO USE: | |
* 1. Add XE5.Grid.Helper to uses block. | |
* 2. Call StringGrid.Header[Column].OnXXX | |
* | |
* EXAMPLE: |