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
license: gpl-3.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 Lyna.Generators; | |
interface | |
uses | |
SysUtils, Rtti, TypInfo; | |
type | |
TRange = record | |
strict private |
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
type | |
TObjectHelper = class helper for TObject | |
public | |
class function &&op_LogicalOr<T: class>(A, B: T): T; static; | |
end; | |
class function TObjectHelper.&&op_LogicalOr<T>(A, B: T): T; | |
begin | |
if A <> nil then | |
Result := A |
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
program Project1; | |
{$APPTYPE CONSOLE} | |
uses | |
System.SysUtils, System.Classes, System.Types, Vcl.Dialogs; | |
type | |
TStringListEx = class(TStringList) | |
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
date/time : 2017-02-15, 14:42:16, 728ms | |
computer name : EDWIN-T450 | |
user name : edwin <admin> | |
registered owner : edwin | |
operating system : Windows 7 x64 Service Pack 1 build 7601 | |
system language : Chinese (Simplified) | |
system up time : 1 day 22 hours | |
program up time : 1 minute 35 seconds | |
processors : 4x Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz | |
physical memory : 2970/7888 MB (free/total) |
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
date/time : 2017-02-16, 13:37:20, 734ms | |
operating system : Windows XP Service Pack 3 build 2600 | |
system language : Chinese | |
system up time : 3 hours | |
program up time : 3 hours | |
processors : 4x Intel(R) Atom(TM) CPU D525 @ 1.80GHz | |
physical memory : 1494/2037 MB (free/total) | |
free disk space : (C:) 17.47 GB | |
display mode : 1024x768, 32 bit | |
allocated memory : 214.53 MB |
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 frmMain: TfrmMain | |
Left = 0 | |
Top = 0 | |
Caption = 'frmMain' | |
ClientHeight = 571 | |
ClientWidth = 798 | |
Color = clBtnFace | |
Font.Charset = DEFAULT_CHARSET | |
Font.Color = clWindowText | |
Font.Height = -14 |
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
(* | |
1 - the thread proc. | |
*) | |
procedure MyThreadProc(task: IOmniTask); | |
begin | |
while not task.Terminated do begin | |
SubProcedureThatWillTakeAtLeast3Second; | |
if task.Terminated then Exit; | |
SubProcedureThatWillTakeAtLeas2Second; |
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 UDebouncedEvent; | |
interface | |
uses | |
System.Classes, System.SysUtils, System.DateUtils, FMX.Types; | |
type | |
TDebouncedEvent = class (TComponent) | |
private |
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 NonBlockingDlgHelperU; | |
interface | |
uses | |
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, | |
Vcl.Controls, Vcl.Forms, Vcl.Dialogs; | |
const | |
WM_ShowDlgA = WM_APP + 1; |
OlderNewer