大悟还俗

邮箱 key_ok@qq.com 我的收集 http://pan.baidu.com/share/home?uk=1177427271
  新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年1月24日

摘要: Windows使用剪贴板观察器和观察链。剪贴板观察器是一个显示剪贴板当前内容的窗口。 通常它应该至少能显示三种普通格式的内容:文字CF_TEXT、位图CF_BITMAP、元文件CF_MET AFILEPICT。剪贴板观察链是一系列相互独立的剪贴板观察窗口,它们都能够接受当前发送 到剪贴板的内容。我们大致按照以下步骤在窗口中处理有关剪贴板的内容。 首先,使用SetClipboardViewer(HWND)函数向剪贴板观察链中加入一个观察窗口。当剪 贴板的内容发生变化时,该窗口会接收到一个WM_DRAWCLIPBOARD消息。该函数需要传递的参 数是观察窗口的句柄。返回值也是一个窗口句柄类型,标识 阅读全文

posted @ 2014-01-24 17:30 大悟还俗_2 阅读(1824) 评论(0) 推荐(0) 编辑

摘要: 原文 :http://blogs.embarcadero.com/sarinadupont/2013/10/16/how-to-load-custom-styles-at-runtime/How to load custom styles at runtimeDuring my session at CodeRage, I briefly talked about how to load custom styles at runtime. I wanted to elaborate on this topic and provide some detailed steps.In this ex 阅读全文

posted @ 2014-01-24 17:28 大悟还俗_2 阅读(290) 评论(0) 推荐(0) 编辑

摘要: http://www.cnblogs.com/del/category/323943.html 记录一下, 作为目录 阅读全文

posted @ 2014-01-24 01:10 大悟还俗_2 阅读(258) 评论(0) 推荐(0) 编辑

摘要: 原文 http://monkeystyler.com/guide/Custom-Grid-Columnsack to FireMonkey TopicsAs we saw in TGrid a FireMonkey grid consists of columns which contain cells made of any descendant of TStyledControl. Or, effectively, any control. A number of column types come built in but it is a pretty simple matter to 阅读全文

posted @ 2014-01-24 01:03 大悟还俗_2 阅读(722) 评论(0) 推荐(0) 编辑

摘要: TOSVersion增加了一个记录类型:TOSVersion,看名字就知道它和版本功能有关,这比之前的函数好用多了,其实以前也没必要有它,这回是跨平台了才需要它。它可以获知当前运行环境是 x86,还是 x64,是 windows,还是 mac,并且还能得到操作系统的具体版本号,还可以方便的判断当前版本是否高于某个版本。它还有个叫 ToString() 的方法,它返回的结果符合直觉,就是一个格式化过的版本信息文本,而不是象以往 vcl 中的 ToString() 那样返回一个坑爹的类名称,比如在我的机子上是这样 Windows 7 (Version 6.1, Build 7600, 64-bit 阅读全文

posted @ 2014-01-24 01:01 大悟还俗_2 阅读(339) 评论(0) 推荐(0) 编辑

摘要: 有了 FireMonkey 框架,它不同于 VCL ,以往的数据感知控件不能放在它上面,所以 XE2 提供了 LiveBindings 功能作为替代方案。另外它也是个通用的基础设施,同样可用于传统的VCL 这里用一个极简化的例子说明它的意图,在窗体上放一个 edit 和一个 label,找到 label 的 LiveBindings 属性,选 New LiveBinding... ,再选择 TBindExpression 然后设置属性如图所示 这样就把 edit 的 text 属性和 label 的 caption 属性绑定起来了,不用写任何代码。运行后,会看到 label 的内容就是 e.. 阅读全文

posted @ 2014-01-24 00:58 大悟还俗_2 阅读(687) 评论(0) 推荐(0) 编辑

摘要: 原文http://www.malcolmgroves.com/blog/?p=1084一、新建VCL工程加入TAdapterBingSource控件二、定一个TPerson类MyPerson : TPerson; TPerson = class private FAge: Integer; FLastname: string; FFirstname: string; public constructor Create(const Firstname, Lastname : string; Age : Integer); virtual; property Fi... 阅读全文

posted @ 2014-01-24 00:49 大悟还俗_2 阅读(1474) 评论(0) 推荐(0) 编辑

摘要: Component LogoComponent NameDescriptionTBindSourceDBIs used for creating bindings to databases. 创建数据库绑定TPrototypeBindSourceProvides a data source for generating sample data that you can use to get started when you do not already have data to start with. Later you can replace this data source with so 阅读全文

posted @ 2014-01-24 00:04 大悟还俗_2 阅读(495) 评论(0) 推荐(0) 编辑