Delphi

Mobile app lifecycle events handling in Delphi XE5

Author: Pawe Gowacki The lifecycle of a mobile app is more complex and different from a desktop app. On a mobile device an application runs either in the foreground or in the background. When a phone calls arrive or when user opens another app, our app is going to background. If you are a programmer, you might be interested in responding to changes in the application state, for example saving…
Read more
News

Printing from an Android device using FireMonkey

Author: J T403 Printing from an Android device requires a little bit more setup than in iOS where you simply connect to an AirPrint capable printer (like my Epson XP-400). However, Android printing appears to work with any Wifi printer (or PC connected printer), so its more flexible. Basically, it consists of three steps. First, download and install Google CloudPrint onto your device. Second…
Read more
Delphi

Clone FireMonkey objects

Author: Vsevolod L1433 I’ve got a task of cloning FireMonkey objects. Let it be “chess”. An object is created as an aggregate in design-time. Look at the picture in the Structure pane. I have made the composite pawn model and start thinking of make 15…
News

Setting Text Parameters in FireMonkey

Author: Сергей One of small but rather useful new features of FireMonkey introduced in XE3 version is the FMX.Types.ITextSettings interface. Often we need to change some parameters of an output text for a component, which class is not known a priori. For example, a…
News

YAML and Remote Code Execution

Author: Craig Stuntz YAML’s security risks are in no way limited to Rails or Ruby. YAML documents should be treated as executable code and firewalled accordingly. Deserializing arbitrary types is user-controlled, arbitrary code execution. It’s Not Just Ruby A few weeks ago, I had a need to parse Jasmine’s jasmine.yml in some C# code. I spent some time looking at existing YAML…
Read more
Delphi

Components vs Children in FireMonkey

Author: Jayme Jeffman Filho You have probably iterated through the Components array many many times as a Delphi developer. Consider this simple application: It’s probably no surprise that listing the Components of the form like this… procedure TForm2.Button1Click(Sender: TObject); var i: Integer; begin Memo2.Lines.Clear; for i := 0 to ComponentCount-1 do …
Read more