2011年10月4日 星期二
Set Of String in Delphi? Yes! Union, Intersection and Difference For String Lists.
About.com| About.com Delphi Programming |05:54:28
inDelphi TIPS::In Delphi, sets or set types allow you to do set type operations like union, intersection and difference on a set of ordinal values. A set ...Read Full Post
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 和窗体?..
2011年10月2日 星期日
表达式Delphi XE2 之 FireMonkey 入门(26) - 数据绑定: TBindingsList: TBindExprItems
万一| 万一的 Delphi 博客 |23:05:00
如果要给一对 "源控件" 和 "目标控件" 写多个表达式, 使用 TBindExpression 就不如 TBindExprItems 了.TBindExprItems 中的表达式又分两组: FormatExpressions、ClearExpressions, 后者是在断开绑定时的表达式.示例设想:1、TrackBar1 为源, 把其 Value 值绑定给 Edit...
Delphi XE2 之 FireMonkey 入门(25) - 数据绑定: TBindingsList: 表达式的灵活性及表达式函数
万一| 万一的 Delphi 博客 |18:25:00
绑定表达式中可以有简单的运算和字符串连接, 但字符串需放在双引号中.还可以使用 TBindingsList.Methods 提供的一组表达式函数(来自 System.Bindings.Methods 单元):ToStr()ToVariant()Round()Format()UpperCase()LowerCase()FormatDateTime()StrToDateTime()Max()Mi...
Register for CodeRage 6 - Free Online Conference for Software Developers
Embarcadero| EDN Delphi Feed |17:00:00
Delphi XE2 之 FireMonkey 入门(24) - 数据绑定: TBindingsList: TBindExpression.Direction
万一| 万一的 Delphi 博客 |14:12:00
在学习 BindingSource 属性时, 可以让两个控件互为绑定源; TBindExpression 对应的功能是 Direction 属性.先在窗体上添加 Edit1、Edit2、BindingsList1; 然后激活 Edit1、Edit2 和窗体的默认事件.procedure TForm1.FormCreate(Sender: TObject);begin with TBindExp...
Delphi XE2 之 FireMonkey 入门(23) - 数据绑定: TBindingsList: TBindExpression
万一| 万一的 Delphi 博客 |11:24:00
准备用 TBindingsList 重做上一个例子.可以先把 TBindingsList 理解为是一组绑定表达式(TBindExpression)的集合;官方应该是提倡在设计时完成 TBindExpression 的建立与参数设置, 但我觉得看运行时的代码会更容易理解.1、先在窗体上添加 添加 TrackBar1、Edit1、Label...
2011年10月1日 星期六
Delphi XE2 之 FireMonkey 入门(22) - 数据绑定 : BindingSource、BindingName、FindBinding()、Binding[]
万一| 万一的 Delphi 博客 |12:31:00
窗体上添加 TrackBar1、Edit1、Label1, 然后设置属性(可在设计时):procedure TForm1.FormCreate(Sender: TObject);begin Edit1.BindingSource := TrackBar1; //将 TrackBar1 的值绑定在 Edit1 Label1.BindingSource := TrackBar1; //将 TrackBar1 的值绑定在 Labe...





冀公网安备 13098202000212号