OnClick Event in TTreeView Objects
This code returns the TAG of a clicked node in Delphi for PHP function TreeView1JSClick($sender, $params) { ?> //Add your javascript code here tag=event.getTarget().tag; alert(tag); return(false);...
View ArticleRight To Left Forms support
How to enable Right To Left Forms (including icons and form captions) with Delphi: Override the CreateParams method and insert procedure TForm1.CreateParams(var Params: TCreateParams); begin inherited;...
View ArticleUnicode in Resource files
Ever tried to put a unicode string (Delphi 2009) in a resource (.rc) file and tried to compile it with brcc32 or rc32? You’ll get this error: Expecting resource name or resource type name The Solution...
View ArticleDelphi Prism new language features
Andreano Lanusse wrote about the new Delphi Prism language features compared to Delphi Win32. Some of them I really would like to see in Delphi Win32 and some I don’t like and disallowed it in our...
View ArticleLua 5.1 for Delphi 2010
This is a Lua 5.1 Wrapper for Delphi 2009 and Delphi 2010 which automatically creates OOP callback functions. “Lua is a powerful, fast, lightweight, embeddable scripting language, it has been used in...
View ArticleSolving circular unit references with class helpers
Sooner or later you run into the circular unit reference problem when using a single unit for each class. There are some solutions (move the common used structs into a separate unit, use type casting,...
View ArticleVerySimpleXML – a lightweight Delphi XML reader and writer
There are lot of possibilities if you’re in need to parse or write XML files: use TXMLDocument (the MSXML wrapper) or use xml components like OmniXML, NativeXml, ADOM, SAX, libxml2, DIXml, fcl-XML,...
View ArticleThere is already a standard code style
As François Piette (a very honourable Embarcadero MVP) recently wrote, coding style matters. He states “… this is mostly a matter of personal preferences as long as the style is constant…” but I...
View ArticlePorting to XE5 and the “W1030 Invalid compiler directive: ‘true’” warning
If you port your application to Delphi XE5 and you receive this warning [dcc32 Warning] W1030 Invalid compiler directive: 'true' then edit the ‘Build Configurations (Debug)’ settings and change the...
View ArticleException while using TStreamReader with TZipFile
If you’re using the TStreamReader with a TZDecompressionStream – the stream output by TZipFile.Read(const FileName: string; out Stream: TStream; out LocalHeader: TZipHeader) – you’re likely to...
View ArticleVerySimpleXML 2.0 – a lightweight, cross-platform, one-unit XML reader/writer...
There are lot of possibilities if you’re in need to parse or write XML files: use TXMLDocument (the MS XML wrapper) or use a xml component like OmniXML, NativeXml, ADOM, SAX, libxml2, DIXml, fcl-XML,...
View ArticleDelphi XE7 and iOS error “Unable to mount developer image (e800000e)”
Stumbled across this error during Delphi XE7 iOS deployment: Unable to mount developer image (e800000e). Solution: reinstall Xcode command line tools with xcode-select --install A software update popup...
View ArticleVerySimple.Lua 2.0 – a cross-platform Lua 5.3.0 wrapper for Delphi XE5-XE7
VerySimple.Lua is a Lua 5.3 binding for Delphi XE5- XE7 which automatically creates OOP callback functions for Win32, Win64, Mac OS X, iOS and Android. “Lua is a powerful, fast, lightweight, embeddable...
View ArticleHow to fix the “api-ms-win-crt-runtime-l1-1.0.dll is missing” error for...
If you experience this error during the start of Delphi 10 Seattle This error is not related to Delphi 10 Seattle – it is caused by TortoiseSVN v1.9 which is “side loaded” during start up (if installed...
View ArticleLibBLP v1.0 – A BLP image reader library for Delphi 10.1 Berlin+ with DXT3/5...
LibBLP v1.0 – A BLP image reader library for Delphi 10.1 Berlin+ for Palettized and uncompressed images and with DXT1 / DXT3 and DXT5 decompression support BLP files are Blizzard’s texture format. The...
View ArticleBehavior3 client library for Delphi (Behavior Trees for Delphi)
behavior3delphi is a Behavior3 client library for Delphi (Behavior Trees for Delphi) based on behavior3js. Features Based on behavior3 Supports loading of behavior3editor project files (a visual...
View ArticlePass a multidimensional array as a parameter (with a hidden caveat)
How to pass a multidimensional array as a parameter? Long ago this question was answered on Stack Overflow with a simple answer: make a specific type for your array. But there is a hidden caveat… If...
View ArticleMOS6502-delphi – a MOS 6502 CPU emulator for Delphi
This is the Delphi / Pascal port of the C++ implementation for the MOS Technology 6502 CPU by Gianluca Ghettini. The code is written to be more readable than fast, however some minor tricks have been...
View ArticlePlease make inline vars usable for production – fix RSP-22158
With the arrival of Delphi Rio 10.3 in October 2018 we saw “a very handy feature to the language, local inline variables with local scope and type inference” [Marco Tech Blog]. That was a feature “long...
View Article