Sabtu, 30 April 2011

Data Bindings

I just published a post about my Delphi data binding implementation on Delphi-Praxis.Since it is german here is the translation:Those who already worked with .Net most likely know and like them: data bindingsYou can bind almost everything. Like showing collections of objects in tree-, list- or gridviews or editing properties of objects in text-, check- or comboboxes. You can even change the visibitiy or the appearance of controls with them.You...

Sabtu, 16 April 2011

Yield return and Delphi

Well, some may know that Sergey Antonov already came up with some implementation on the yield functionality for Delphi in 2007. It was pretty impressive but for my taste it involved to much asm stuff and it was before Delphi had generics.So what if we could do something like this?for i in Power(2, 10) dobegin Writeln(i);end;Well, you can! All you need is define the function as follows:function Power(ANumber, AExponent: Integer): IEnumerable<Integer>;begin...

Kamis, 14 April 2011

Delphi sorcery project on Google Code

Ok, I just created a project on google code and added the first files.It's a first version of a data binding class which includes a multicast event implementation and a class to add lifetime management to objects that are not inherited from TComponent.I also added a small sample to show how easy it is to bind properties to controls with just one line!Some people might call subclassing the VCL controls and adding that unit as the last in the interface...

Selasa, 12 April 2011

Initialization

Well ok, I finally made my own blog...I will post here about Delphi related topics and programming stuff in gereral. Mostly about things that my coworker refers to as "magic" or "voodoo" hence the name of the blog....
 

Indah Hidup Copyright © 2012 Fast Loading -- Powered by Blogger