Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

It is possible to do something like XE2 LiveBindings in D2010?

It's factible or it uses some compiler technology only available in XE2 ?

I just want to bind (bidirectional) a TEdit.Text property to a object function that returns a string in code (I don't need designer components or expression evaluators)..

Thanks!

like image 384
pragmatic_programmer Avatar asked Dec 13 '22 08:12

pragmatic_programmer


2 Answers

I guess you could try Delphi sorcery library. It has quite powerful data binding solution which should work in all the modern Delphi versions.

like image 93
Linas Avatar answered Dec 14 '22 21:12

Linas


No, as far as I can tell, the LiveBindings system was implemented entirely in code with no new language features introduced to support it. Which is a bit of a shame, IMO; it could be a much simpler and overall better system if the language had support for something like property references.

like image 25
Mason Wheeler Avatar answered Dec 14 '22 22:12

Mason Wheeler