Skip to content

Instantly share code, notes, and snippets.

@DelphiWorlds
DelphiWorlds / FrameworkInputPaneHandler.pas
Last active January 21, 2019 03:42
Work in progress to handle when the Windows 10 OSK shows/hides
unit FrameworkInputPaneHandler;
interface
uses
System.Win.ComObj,
Winapi.Windows;
// https://github.com/tpn/winsdk-10/blob/master/Include/10.0.10240.0/um/ShObjIdl.idl
const
@DelphiWorlds
DelphiWorlds / TryFinallySafety.pas
Created February 6, 2018 23:03
Distinction between causing and raising an exception, and try..finally safety
type
TSomeObject = class(TObject)
public
procedure DoSomething;
end;
TFaultyObject = class(TObject)
private
FStrings: TStrings;
public
@DelphiWorlds
DelphiWorlds / GetLocalAddressList.pas
Last active June 5, 2017 11:24
Substitute for TIdStackVCLPosix.GetLocalAddressList
interface
uses
IdStack;
procedure GetLocalAddressList(const AAddresses: TIdStackLocalAddressList);
implementation
uses