社区
API
帖子详情
求助,获取控件中的文本 TDBLookupComboBox
L2642730
2017-01-23 12:32:24
单位十几年前的程序(Delphi编写)现在没人维护了,最近服务器端改动后导致客户端界面中一类名为TDBLookupComboBox的控件中数据没有排序,有几百行。原来是排序后,用户选择最后几行最近的数据。数据结构是两列:编号,日期
服务器端没办法改了,客户端有什么办法恢复排序。
我想了个办法是通过API调用sendmessage
列表控件可以发送LB_FINDSTRING消息查找文本,这个办法行吗?当然最好是把所有行排序最好,谢谢
...全文
5142
3
打赏
收藏
求助,获取控件中的文本 TDBLookupComboBox
单位十几年前的程序(Delphi编写)现在没人维护了,最近服务器端改动后导致客户端界面中一类名为TDBLookupComboBox的控件中数据没有排序,有几百行。原来是排序后,用户选择最后几行最近的数据。数据结构是两列:编号,日期 服务器端没办法改了,客户端有什么办法恢复排序。 我想了个办法是通过API调用sendmessage 列表控件可以发送LB_FINDSTRING消息查找文本,这个办法行吗?当然最好是把所有行排序最好,谢谢
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
赵4老师
2017-01-24
打赏
举报
回复
找个反编译Delphi的软件反编译?
L2642730
2017-01-23
打赏
举报
回复
大师,我这是没办法,没源码的,只能剑走偏锋。
赵4老师
2017-01-23
打赏
举报
回复
获取对应Delphi源代码才是正道。
delphi EhLib 9.5.012 Full Source 专业版 .rar
EhLib.VCL 9.5内部版本9.5.012专业版。 ---------------------------------------------- 该库包含Borland Delphi版本7、9的组件和类。 Developer Studio 2006,Delphi 2007,Embarcadero RAD Studio 2009-XE10.3,Lazarus。 目录 ----------------- 总览 安装库 安装帮助 示范节目 注册和价格 其他资讯 关于作者 从哪儿开始。 ------------------- 从主要的Demo项目开始概述库 。\ Demos \ Bin \ MainDemo.Exe。 (已编译的演示文件在该库的评估版
中
可用) 如果您使用了库的早期版本,则可以阅读摘要 的新功能和更改
中
的内容history-eng.html。 此版本库
中
有关新功能的更多详细信息 可以在文件
中
找到-关于EhLib 9.5 Eng.doc 要在IDE
中
安装该库的新版本,请使用安装程序 。\ Installer \ EhLibInstaller.exe 如果安装时有任何问题,请写信给ehlib支持 地址support@ehlib.c
om
您还可以按照以下说明在库IDE
中
手动安装文件 第2章安装库 安装后,请确保所有已安装组件的可操作性。 为此,请打开IDE,编译并启动一个主要的演示项目。 。\ Demos \ MainDemo \ Project1_XE2.dpr 阅读下一个文件,以
获取
有关使用库组件的完整说明: 。\ Hlp \ ENG \“ EhLib-用户指南.doc” 在文件
中
阅读有关EhLib for Lazarus的信息-Lazarus \ readme.txt 总览 -------- 该库包含几个组件和对象。
TD
BGridEh组件
TD
BGridEh提供
TD
BGrid的所有功能 并添加了一些新功能,如下所示: 允许选择记录,列和矩形区域。 可以对应于多个/所有列的特殊标题。 能够显示总和/计数/其他字段值的页脚。 自动调整列大小以将网格宽度设置为等于客户端宽度。 能够更改行和标题的高度。 允许自动
中
断单行长标题和数据行 到多行。 标题可以充当按钮,并可以选择显示排序标记。 自动排序标记。 能够用省略号截断长
文本
。 查找列表可以显示几个字段。 在查找字段
中
进行增量搜索。 冻结的列。 DateTime选择器支持
TD
ateField和
TD
ateTimeField。 允许根据字段值显示TImageList
中
的位图。 允许隐藏和跟踪水平或垂直滚动条。 允许隐藏列。 允许显示冻结,页脚和数据行的3D框架。 允许绘制备忘字段。 多行就地编辑器。 比例滚动与数据集的排序无关。 自动显示布尔字段的复选框。允许显示 其他类型字段的复选框。 具有保存和还原布局的程序(可见列,列 注册表或ini文件
中
的顺序,列宽,排序标记,行高)。 允许显示提示(工具提示)以显示单元格
中
不适合的
文本
。 允许将数据导出为Text,Csv,HTML,RTF,XLS和内部格式。 允许从
文本
和内部格式导入数据。 可以对各种数据集
中
的数据进行排序。 可以过滤各种数据集
中
的数据。 当DBGridEh连接到TMemTable类型的数据集时,它允许: 在不移动活动记录的情况下查看所有数据。 显示TMemTable记录的树型结构。 在SubTitle过滤器的下拉列表
中
自动形成值列表。 根据所选库伦创建分组记录。
TD
BVertGridEh组件 在“垂直方向”
中
显示数据集
中
的一条记录的组件。 有一个特殊的列来显示字段标题 可以像DBGridEh
中
一样自定义就地编辑器和单元格数据。
TD
BLook
u
pC
om
bobo
xEh组件 提供
TD
BLook
u
pC
om
bobo
x的所有功能并添加 几个新功能如下: 可以有平面样式。 允许只将值分配给KeyValue属性 显示
文本
属性。 允许将值键入(分配)到数据列表
中
未包含的Text属性 (样式= csDropDownEh)。 允许将KeyValue和Text保持为互不影响的值。 当KeyField,ListField,ListSource,DataField和DataSource生效 属性为空。 下拉列表可以: 显示标题 有上浆力, 自动将宽度设置为列表字段DisplayWidth之和(宽度= -1), 用户按下按键时自动掉线。 编辑按钮可以: 显示下拉,省略号或位图图像。 有指定的宽度。 还有其他事件:OnKeyValueChanged,OnButtonClick。
TD
BSumList组件 此组件用于总计一个记录
中
的记录的总数和数量。
TD
ataSet具有动态更改。组件保留
TD
BSum的列表 对象,其
中
包含组操作的类型(goSum或goCount) 和名称总和字段(无需goCount字段名称)。 TPrin
tD
BGridEh组件 TPrin
tD
BGridEh提供用于预览和预览的属性和例程。 具有以下功能的
TD
BGridEh组件的打印: 能够垂直扩展行,直到打印所有
文本
。 缩放网格以使其适合页面宽度的能力。 能够打印/预览网格标题。 能够打印/预览页面标题和页面页脚 指定当前页面,当前日期,当前时间和/或静态的宏
文本
。 自动打印/预览
TD
BGridEh的选定区域 不为空。 能够在网格之前和之后打印/预览富
文本
。 TPreviewBox组件 TPreviewBox使您可以创建可自定义的运行时预览。 TPrinterPreview对象 TPrinterPreview允许您将可打印数据记录在缓冲区
中
以进行跟踪 将它们输出到屏幕上并发送到打印机。TPrinterPreview具有所有功能,并且 属性与TPrinter对象
中
的属性相同。您可以类似地使用TPrinterPreview对象 TPrinter的功能,除了一些细节。在TPrinter Printer.Canvas.Handle和 Printer.Handle相同,但在TPrinterPreview
中
PrinterPreview.Canvas.Handle 表示图元文件,其
中
的数据和PrinterPreview.Handle的内容相同 代表Printer.Handle。这意味着您必须使用 用于绘制操作的PrinterPreview.Canvas.Handle(DrawText,DrawTexteEx等) 并在返回有关以下信息的函数
中
使用PrinterPreview.Handle 打印机功能(Ge
tD
eviceCaps等)。全局功能PrinterPreview 返回默认的PrinterPreview对象,并以默认预览形式显示数据。
TD
BEditEh组件 表示可以显示和编辑字段的单行或多行编辑
控件
在数据集
中
或可以用作非数据感知的编辑
控件
。
TD
BDateTimeEditEh组件 表示可以显示和编辑的单行日期或时间编辑
控件
数据集
中
的日期时间字段,或可用作非数据感知的编辑
控件
。
TD
BC
om
boBo
xEh组件 表示结合了编辑框的单行或多行编辑
控件
带有可滚动列表,并且可以显示和编辑数据集
中
的字段,或者可以 用作非数据感知组合编辑
控件
。
TD
BNumberEditEh组件 表示可以显示和编辑数字的单行数字编辑
控件
数据集
中
的字段或可以用作非数据感知的编辑
控件
。 TPropStorageEh,TIniPropStorageManEh,TRegPropStorageManEh组件 组件实现了在设置
中
存储组件属性的技术 存储,如ini文件,注册表等。 TMemTableEh组件 数据集,将数据保存在内存
中
。它可能考虑为 记录。 此外,它: 支持一个特殊的接口,该接口允许DBGridEh组件查看所有 数据而不移动活动记录。 允许从
TD
ataDriverEh对象(DataDriver属性)
获取
数据。 允许卸载更改回DataDriver
中
,可操作或推迟(在 CachedUpdates属性的相关性)。 允许在客户端上创建主/明细关系(过滤记录) 或在外部源上(更新参数[Params]并需要数据 从DataDriver)。 允许一次(无动态支持)排序数据,包括 计算和查找字段。 允许在设计时创建和填充数据,并将数据保存在的dfm文件
中
形成。 允许以树的方式进行记录。每条记录可以有一条记录 元素分支和本身是其他父母记录的元素。 组件
TD
BGridEh支持显示这些组件的树型结构 记录。 允许连接到其他TMemTableEh的内部阵列(通过 ExternalMemData属性)并使用其数据:排序,过滤,编辑。 具有用于在列表的一列
中
请求所有唯一值列表的接口 记录数组,忽略数据集的本地过滤器。
TD
BGridEh使用此 属性,用于自动填充字幕的DropDownBox
中
的列表 过滤单元。
TD
ataDriverEh组件 执行两项任务: 将数据传送到TMemTableEh。 处理TMemTableEh的更改记录(将它们记录在其他数据集
中
, 或调用事件以处理程序
中
的更改)。 TSQLDataDriverEh 具有四个TSQLC
om
mandEh类型的对象的DataDriver:SelectC
om
mand, DeleteC
om
mand,InsertC
om
mand,UpdateC
om
mand,GetrecC
om
mand。 TSQLDataDriverEh无法将查询传输到服务器,但会调用全局 (对于应用程序)执行SQL必须编写的事件 服务器上的表达式。 TBDEDataDriverEh,TIBXDataDriverEh,
TD
BXDataDriverEh和TADODataDriverEh组件。 这些是SQLDataDrivers,可以使用以下命令将查询传递到服务器 数据访问的相应驱动程序。 -------------------- 2.安装库 -------------------- -------------------- 2.1自动安装库 -------------------- 从“安装程序”文件夹
中
运行EhLibInstaller.exe程序以在以下位置安装EhLib Delphi / C ++ Builder IDE。该程序创建文件夹以保持EhLib二进制 和其他重新整理的文件,将重新整理的文件复制到创建的文件夹, 编译程序包,在IDE
中
注册程序包并编写重新格式化的路径 在注册表
中
。 如果您具有可执行的安装程序(例如,EhLibSetupD7Eval.exe) 那么您只需要运行程序并遵循安装过程即可。自动设置 将所有单元写入必要的目录,在IDE
中
安装软件包和帮助文件。 -------------------- 2.2手动安装库 ------------------- 按照以下说明从EhLib归档文件安装文件: - 2.2.1。对于RAD Studio XE2(Delphi)或更高版本: -------------------
EhLib4562AddTransParent
很好用的EHLib包 为TCust
om
erDBEditEh,
TD
BEditEh,
TD
BDateTimeEh,
TD
BC
om
o
boBo
xEh,
TD
BNnumberEditEh、
TD
BLook
U
pC
om
boBo
x增加TransParent,以使
控件
支持透明。修正
TD
BEditEh的PassChar不为空且排列方式非左对齐时乱码问题(可能不是BUG,也许是因本人修改PaintWindow引起的错误也不一定)。修改单元:DBCtrlsEh.pas,D
BLook
upEh.pas,修改标记://yy 透明。 未解决问题:
控件
直接放在窗体上时,设置TransParent时透明有效,但在获得焦点,再退出时,放在窗体上的部分透明无效。
速达式 DBGrid
你的 DBGrid 需要合计行吗?想做出速达 E2 一样的单据录入界面吗?有了 QLGrid Suite,这些都不是问题! TQLDBGrid --------- 1、
中
国财务凭证式的金额显示。各显示位之间的分隔线颜色可自行定义,并可在标题行上显示“...万千百十个角分”!!! 2、支持多种方式的合计行。支持合计、平均、计数、
文本
等方式的合计行。
中
国财务凭证式的金额显示在合计行上同样适用。合计行的颜色可自行定义!!! 3、可在 Grid 的各列上嵌入任意
控件
来代替默认编辑器,例如可在布尔型字段的列上嵌入 DBCheckBox,在一只读或计算字段的列上嵌入 DBEdit!!! 4、支持交替式的行颜色显示。奇数行和偶数行可定义不同的颜色 5、自适应宽度。Grid
中
的各列的宽度随 Grid 宽度的改变可自行调整宽度,使其始终填充整个 Grid 客户区域 6、回车键转换为制表键。可将回车键当作制表键来处理,使用户敲回车键时自动转入下一列或行,输入数据更快速方便 7、结合 TQLQRDBGridBuilder 自动生成 QuickReport 报表,省去手工制作报表的麻烦!!! 8、结合
TD
BLook
u
pC
om
boBo
x 实现输入内容按拼音码查找(如同速达 E2
中
的品名输入方式),而不必在大量的产品目录
中
来回查找或强迫用户记忆大量的产品代码!!! 9、继承自标准的
TD
BGrid,使用
TD
BGrid 或其子类开发的现有程序可实现平滑升级 更多强大的特性.... TQLD
BLook
u
pC
om
boBo
x ------------------- 标准 D
BLook
u
pC
om
boBo
x 的替代品,提供了方便
中
国用户使用的强大特性 1、弹出的列表框
中
的内容可按拼音码或原文(包含方式)查找!!! 2、弹出的列表框的下面可显示相应的操作按钮,如显示新建、修改、置空按钮来针对当前记录提供操作!!! 3、属性完全兼容
TD
BLook
u
pC
om
boBo
x ......
QLD
BLook
u
pC
om
boBo
x
标准 D
BLook
u
pC
om
boBo
x 的替代品,提供了方便
中
国用户使用的强大特性 特性: 弹出的列表框
中
的内容可按拼音码或原文(包含方式)查找!!! 弹出的列表框的下面可显示相应的操作按钮,如显示新建、修改、置空按钮来针对当前记录提供操作!!! 属性完全兼容
TD
BLook
u
pC
om
boBo
x
EhLib 9.1.038 for D7-XE-10.2
The EhLib set contains c
om
ponents and classes for various versions of the Delphi programming language and to increase the capacity of the user’s database database software to interact with users. List and features of the c
om
ponents included in the EhLib collection:
TD
BGridhEh: Take advantage of all the features of
TD
BGrid and several newer features for: Allows you to select records, columns, and quadrilateral environments. Certain titles attributed to multiple or all columns. Putting a footnote that can represent the values of the total fields, the number, and the rest. Ability to resize columns to adjust the width of the table with the width of the user table. Possibility to change height and title And… TPrin
tD
BGridEh: Provides features and procedures for previewing and printing fr
om
the
TD
BGridEh c
om
ponent with more features such as: Ability to enlarge rows vertically, so all text can be printed. Possibility to enlarge the table to cover the whole page. Possibility to preview and print titles for tables Possibility to preview and print headers and footers to use current page display macros, current date, … And…
TD
BVertGridEh: C
om
ponent to display a record of data (dataset) vertically. Has a special column for displaying field titles. Ability to edit and modify cell content, such as those in DBGridEh.
TD
BLook
u
pC
om
bobo
xEh: All features of the
TD
BLook
u
pC
om
bobo
x are also available, including: Possibility to display with flat template Ability to assign a value like KeyValue only to display the text attribute. Ability to write (assign) values to the text property (text property) as previously not included in the data list (Style = csDropDownEh). Ability to maintain KeyValue value and text so that they do not affect the values.
TD
BEditEh: To display the editing area, a linear or multi-line to change the field of data or use as a purely demo.
TD
BDateTimeEditEh: To display the editing of the date or time on a line so that it can edit the date and time field in the data, or use it in a purely demo-like environment without changing the data.
TD
BC
om
boBo
xEh: To display the editing box, one or more lines are available to scroll through the list for editing data fields or use only to display without changing the data.
TD
BNumberEditEh: To display the numeric editing environment for editing a field containing numeric content fr
om
the data or use it solely for displaying and without changing data.
TD
BSumList: To count the total and amount of records in
TD
ataSet with simultaneous editing. This c
om
ponent lists a list of
TD
BSum objects that include the type of operation (goSum or goCount), as well as the field name for displaying the calculation, and performs the corresponding request. TPreviewBox: Possibility to create a personal preview at runtime. TPrinterPreview: Provide a memory space for stunning data to print as they want to print. This c
om
ponent has all the functions and features of the TPrinter object. TPropStorageEh: C
om
ponent with the ability to save or read the properties of the ini files, registry and … TMemTableEh: To store data in memory. It is also possible to consider the form of an array of records. Besides that: It supports a specific environment that allows the use of the DBGridEh c
om
ponent that can display all data without having to remove the active record. It is possible to fetch data fr
om
the
TD
ataDriverEh object. And…
TD
ataDriverEh: Responsible for performing two tasks: 1. Send data to TMemTableEh. 2. Processing TMemTableEh modified records (saving in another data or using an event to process changes) And…
TD
ataSe
tD
riverEh: Includes DataDriver, which is responsible for transferring TMemTableEh records fr
om
other databases. Process the records that have been modified in TMemTableEh and write them in another data set. TSQLDataDriverEh: A global interface for data and their interaction with the server using SQL. This c
om
ponent consists of five TSQLC
om
mandEh objects: SelectC
om
mand, DeleteC
om
mand, InsertC
om
mand, UpdateC
om
mand, GetrecC
om
mand. Each of these objects holds SQL c
om
mands and parameters to run a variety of SQL c
om
mands. TBDEDataDriverEh: To use the DataDriver C
om
ponent. This c
om
ponent is responsible for assigning the connection, so that DataDriver sends queries to the server. TIBXDataDriverEh: The DataDriver c
om
ponent that interacts with the database server using the IBX driver. This c
om
ponent is responsible for assigning the connection, so that DataDriver sends queries to the server.
TD
BXDataDriverEh: The DataDriver c
om
ponent that interacts with the database server using the DBX driver. This c
om
ponent is responsible for assigning the connection, so that DataDriver sends queries to the server. TADODataDriverEh: The DataDriver c
om
ponent that interacts with the database server using the ADO driver. This c
om
ponent is responsible for assigning the connection, so that DataDriver sends queries to the server.
API
1,486
社区成员
23,280
社区内容
发帖
与我相关
我的任务
API
VB API
复制链接
扫一扫
分享
社区描述
VB API
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章