2011年10月3日 星期一
Delphi XE2 之 FireMonkey 入门(32) - 数据绑定: TBindingsList: TBindList、TBindPosition
万一| 万一的 Delphi 博客 |22:07:00
//待补...作者:万一发表于 2011-10-03 22:07原文链接评论: 0 查看评论 发表评论最新新闻:·iPhone 4S体验:硬件无新意 软件功能强大(2011-10-05 14:38)·宇宙声音:爱因斯坦预言引力波时空涟漪之谜(2011-10-05 14:30)·解读苹果发布会公布数据:iOS市占率主要来自...
Delphi XE2 之 FireMonkey 入门(31) - 数据绑定: 绑定到数据库
万一| 万一的 Delphi 博客 |22:06:00
一、全设计时操作:先在窗体上放置控件:DataSource1 : TDataSource;ClientDataSet1 : TClientDataSet;Label1 : TLabel;Edit1 : TEdit;Memo1 : TMemo;ImageControl1 : TImageControl;BindNavigator1 : TBindNavigator;{在连接过程中, 会...
Delphi XE2 之 FireMonkey 入门(31) - 数据绑定: 绑定数据库
万一| 万一的 Delphi 博客 |22:06:00
一、全设计时操作:先在窗体上放置控件:DataSource1 : TDataSource;ClientDataSet1 : TClientDataSet;Label1 : TLabel;Edit1 : TEdit;Memo1 : TMemo;ImageControl1 : TImageControl;BindNavigator1 : TBindNavigator;{在连接过程中, 会...
Delphi LiveBindings Spelunking
Felix Colibri| Felix Colibri’s Delphi Blog |18:51:01
Delphi LiveBindings Spelunking : analysis of the architecture of theDelphi LiveBindings : how the tBindingExpression compiles aString expression to build an environment referencing objects which canbe evaluated to fill component properties. Dump o...
Delphi XE2 之 FireMonkey 入门(30) - 数据绑定: TBindingsList: TBindExpression 的 OnAssigningValue 事件
万一| 万一的 Delphi 博客 |14:07:00
表达式中的函数有限, 譬如我想绑定出 Edit1.Text 的长度就没有相应的函数;这可在 TBindExpression 的 OnAssigningValue 事件中处理.TBindExpression 和它的兄弟们 (TBindExprItems、TBindLink、TBindListLink、TBindGridLink、TBindPosition、TBindList、TBindGridLi...
Delphi XE2 之 FireMonkey 入门(29) - 数据绑定: TBindingsList: 表达式的 Evaluate() 方法
万一| 万一的 Delphi 博客 |12:51:00
TBindingsList 中可能不止一个表达式, 通过表达式的 Evaluate 方法可单独提交绑定, 并可在 Active = False 时提交.在 TBindExprItems 中对应的方法是 EvaluateFormat.测试设想: Label1、Label2 的绑定源同是 Edit1, 分别提交绑定.1、在窗体上加控件: Label1、Label2?..
Delphi XE2 之 FireMonkey 入门(28) - 数据绑定: TBindingsList: 表达式函数测试: SelectedText()、CheckedState()
万一| 万一的 Delphi 博客 |10:43:00
示例构想: 用 Label1 显示 ListBox1 的选项, 用 Label2 显示 CheckBox1 的状态.1、放控件: Label1、Label2、ListBox1、CheckBox1、BindingsList1、BindScope1;2、激活 ListBox1 的 OnClick 事件和窗体的默认事件.unit Unit1;interfaceuses System.SysUtils, System....
Delphi XE2 之 FireMonkey 入门(27) - 数据绑定: TBindingsList: TBindScope
万一| 万一的 Delphi 博客 |09:49:00
如果在编写表达式时, 如果能够随意指认需要的控件就好了(通过 Owner 也可以勉强做到), TBindScope 就是解决这个问题的.示例设想: 把三个 TEdit 的 Text 绑定到一个 TLabel.在窗体上添加 Label1、Edit1、Edit2、Edit3、BindingsList1、BindScope1; 激活 Edit1 和窗体?..





冀公网安备 13098202000212号