求助,获取控件中的文本 TDBLookupComboBox

L2642730 2017-01-23 12:32:24
单位十几年前的程序(Delphi编写)现在没人维护了,最近服务器端改动后导致客户端界面中一类名为TDBLookupComboBox的控件中数据没有排序,有几百行。原来是排序后,用户选择最后几行最近的数据。数据结构是两列:编号,日期
服务器端没办法改了,客户端有什么办法恢复排序。

我想了个办法是通过API调用sendmessage
列表控件可以发送LB_FINDSTRING消息查找文本,这个办法行吗?当然最好是把所有行排序最好,谢谢
...全文
5142 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
赵4老师 2017-01-24
  • 打赏
  • 举报
回复
找个反编译Delphi的软件反编译?
L2642730 2017-01-23
  • 打赏
  • 举报
回复
大师,我这是没办法,没源码的,只能剑走偏锋。
赵4老师 2017-01-23
  • 打赏
  • 举报
回复
获取对应Delphi源代码才是正道。
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.com 您还可以按照以下说明在库IDE手动安装文件 第2章安装库 安装后,请确保所有已安装组件的可操作性。 为此,请打开IDE,编译并启动一个主要的演示项目。 。\ Demos \ MainDemo \ Project1_XE2.dpr 阅读下一个文件,以获取有关使用库组件的完整说明: 。\ Hlp \ ENG \“ EhLib-用户指南.doc” 在文件阅读有关EhLib for Lazarus的信息-Lazarus \ readme.txt 总览 -------- 该库包含几个组件和对象。 TDBGridEh组件 TDBGridEh提供TDBGrid的所有功能 并添加了一些新功能,如下所示: 允许选择记录,列和矩形区域。 可以对应于多个/所有列的特殊标题。 能够显示总和/计数/其他字段值的页脚。 自动调整列大小以将网格宽度设置为等于客户端宽度。 能够更改行和标题的高度。 允许自动断单行长标题和数据行 到多行。 标题可以充当按钮,并可以选择显示排序标记。 自动排序标记。 能够用省略号截断长文本。 查找列表可以显示几个字段。 在查找字段进行增量搜索。 冻结的列。 DateTime选择器支持TDateField和TDateTimeField。 允许根据字段值显示TImageList的位图。 允许隐藏和跟踪水平或垂直滚动​​条。 允许隐藏列。 允许显示冻结,页脚和数据行的3D框架。 允许绘制备忘字段。 多行就地编辑器。 比例滚动与数据集的排序无关。 自动显示布尔字段的复选框。允许显示 其他类型字段的复选框。 具有保存和还原布局的程序(可见列,列 注册表或ini文件的顺序,列宽,排序标记,行高)。 允许显示提示(工具提示)以显示单元格不适合的文本。 允许将数据导出为Text,Csv,HTML,RTF,XLS和内部格式。 允许从文本和内部格式导入数据。 可以对各种数据集的数据进行排序。 可以过滤各种数据集的数据。 当DBGridEh连接到TMemTable类型的数据集时,它允许: 在不移动活动记录的情况下查看所有数据。 显示TMemTable记录的树型结构。 在SubTitle过滤器的下拉列表自动形成值列表。 根据所选库伦创建分组记录。 TDBVertGridEh组件 在“垂直方向”显示数据集的一条记录的组件。 有一个特殊的列来显示字段标题 可以像DBGridEh一样自定义就地编辑器和单元格数据。 TDBLookupComboboxEh组件 提供TDBLookupCombobox的所有功能并添加 几个新功能如下: 可以有平面样式。 允许只将值分配给KeyValue属性 显示文本属性。 允许将值键入(分配)到数据列表未包含的Text属性 (样式= csDropDownEh)。 允许将KeyValue和Text保持为互不影响的值。 当KeyField,ListField,ListSource,DataField和DataSource生效 属性为空。 下拉列表可以: 显示标题 有上浆力, 自动将宽度设置为列表字段DisplayWidth之和(宽度= -1), 用户按下按键时自动掉线。 编辑按钮可以: 显示下拉,省略号或位图图像。 有指定的宽度。 还有其他事件:OnKeyValueChanged,OnButtonClick。 TDBSumList组件 此组件用于总计一个记录的记录的总数和数量。 TDataSet具有动态更改。组件保留TDBSum的列表 对象,其包含组操作的类型(goSum或goCount) 和名称总和字段(无需goCount字段名称)。 TPrintDBGridEh组件 TPrintDBGridEh提供用于预览和预览的属性和例程。 具有以下功能的TDBGridEh组件的打印: 能够垂直扩展行,直到打印所有文本。 缩放网格以使其适合页面宽度的能力。 能够打印/预览网格标题。 能够打印/预览页面标题和页面页脚 指定当前页面,当前日期,当前时间和/或静态的宏 文本。 自动打印/预览TDBGridEh的选定区域 不为空。 能够在网格之前和之后打印/预览富文本。 TPreviewBox组件 TPreviewBox使您可以创建可自定义的运行时预览。 TPrinterPreview对象 TPrinterPreview允许您将可打印数据记录在缓冲区以进行跟踪 将它们输出到屏幕上并发送到打印机。TPrinterPreview具有所有功能,并且 属性与TPrinter对象的属性相同。您可以类似地使用TPrinterPreview对象 TPrinter的功能,除了一些细节。在TPrinter Printer.Canvas.Handle和 Printer.Handle相同,但在TPrinterPreviewPrinterPreview.Canvas.Handle 表示图元文件,其的数据和PrinterPreview.Handle的内容相同 代表Printer.Handle。这意味着您必须使用 用于绘制操作的PrinterPreview.Canvas.Handle(DrawText,DrawTexteEx等) 并在返回有关以下信息的函数使用PrinterPreview.Handle 打印机功能(GetDeviceCaps等)。全局功能PrinterPreview 返回默认的PrinterPreview对象,并以默认预览形式显示数据。 TDBEditEh组件 表示可以显示和编辑字段的单行或多行编辑控件 在数据集或可以用作非数据感知的编辑控件TDBDateTimeEditEh组件 表示可以显示和编辑的单行日期或时间编辑控件 数据集的日期时间字段,或可用作非数据感知的编辑控件TDBComboBoxEh组件 表示结合了编辑框的单行或多行编辑控件 带有可滚动列表,并且可以显示和编辑数据集的字段,或者可以 用作非数据感知组合编辑控件TDBNumberEditEh组件 表示可以显示和编辑数字的单行数字编辑控件 数据集的字段或可以用作非数据感知的编辑控件。 TPropStorageEh,TIniPropStorageManEh,TRegPropStorageManEh组件 组件实现了在设置存储组件属性的技术 存储,如ini文件,注册表等。 TMemTableEh组件 数据集,将数据保存在内存。它可能考虑为 记录。 此外,它: 支持一个特殊的接口,该接口允许DBGridEh组件查看所有 数据而不移动活动记录。 允许从TDataDriverEh对象(DataDriver属性)获取数据。 允许卸载更改回DataDriver,可操作或推迟(在 CachedUpdates属性的相关性)。 允许在客户端上创建主/明细关系(过滤记录) 或在外部源上(更新参数[Params]并需要数据 从DataDriver)。 允许一次(无动态支持)排序数据,包括 计算和查找字段。 允许在设计时创建和填充数据,并将数据保存在的dfm文件 形成。 允许以树的方式进行记录。每条记录可以有一条记录 元素分支和本身是其他父母记录的元素。 组件TDBGridEh支持显示这些组件的树型结构 记录。 允许连接到其他TMemTableEh的内部阵列(通过 ExternalMemData属性)并使用其数据:排序,过滤,编辑。 具有用于在列表的一列请求所有唯一值列表的接口 记录数组,忽略数据集的本地过滤器。TDBGridEh使用此 属性,用于自动填充字幕的DropDownBox的列表 过滤单元。 TDataDriverEh组件 执行两项任务: 将数据传送到TMemTableEh。 处理TMemTableEh的更改记录(将它们记录在其他数据集, 或调用事件以处理程序的更改)。 TSQLDataDriverEh 具有四个TSQLCommandEh类型的对象的DataDriver:SelectCommand, DeleteCommand,InsertCommand,UpdateCommand,GetrecCommand。 TSQLDataDriverEh无法将查询传输到服务器,但会调用全局 (对于应用程序)执行SQL必须编写的事件 服务器上的表达式。 TBDEDataDriverEh,TIBXDataDriverEh,TDBXDataDriverEh和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)或更高版本: -------------------
你的 DBGrid 需要合计行吗?想做出速达 E2 一样的单据录入界面吗?有了 QLGrid Suite,这些都不是问题! TQLDBGrid --------- 1、国财务凭证式的金额显示。各显示位之间的分隔线颜色可自行定义,并可在标题行上显示“...万千百十个角分”!!! 2、支持多种方式的合计行。支持合计、平均、计数、文本等方式的合计行。国财务凭证式的金额显示在合计行上同样适用。合计行的颜色可自行定义!!! 3、可在 Grid 的各列上嵌入任意控件来代替默认编辑器,例如可在布尔型字段的列上嵌入 DBCheckBox,在一只读或计算字段的列上嵌入 DBEdit!!! 4、支持交替式的行颜色显示。奇数行和偶数行可定义不同的颜色 5、自适应宽度。Grid 的各列的宽度随 Grid 宽度的改变可自行调整宽度,使其始终填充整个 Grid 客户区域 6、回车键转换为制表键。可将回车键当作制表键来处理,使用户敲回车键时自动转入下一列或行,输入数据更快速方便 7、结合 TQLQRDBGridBuilder 自动生成 QuickReport 报表,省去手工制作报表的麻烦!!! 8、结合 TDBLookupComboBox 实现输入内容按拼音码查找(如同速达 E2 的品名输入方式),而不必在大量的产品目录来回查找或强迫用户记忆大量的产品代码!!! 9、继承自标准的 TDBGrid,使用 TDBGrid 或其子类开发的现有程序可实现平滑升级 更多强大的特性.... TQLDBLookupComboBox ------------------- 标准 DBLookupComboBox 的替代品,提供了方便国用户使用的强大特性 1、弹出的列表框的内容可按拼音码或原文(包含方式)查找!!! 2、弹出的列表框的下面可显示相应的操作按钮,如显示新建、修改、置空按钮来针对当前记录提供操作!!! 3、属性完全兼容 TDBLookupComboBox ......
The EhLib set contains components 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 components included in the EhLib collection: TDBGridhEh: Take advantage of all the features of TDBGrid 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… TPrintDBGridEh: Provides features and procedures for previewing and printing from the TDBGridEh component 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… TDBVertGridEh: Component 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. TDBLookupComboboxEh: All features of the TDBLookupCombobox 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. TDBEditEh: To display the editing area, a linear or multi-line to change the field of data or use as a purely demo. TDBDateTimeEditEh: 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. TDBComboBoxEh: 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. TDBNumberEditEh: To display the numeric editing environment for editing a field containing numeric content from the data or use it solely for displaying and without changing data. TDBSumList: To count the total and amount of records in TDataSet with simultaneous editing. This component lists a list of TDBSum 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 component has all the functions and features of the TPrinter object. TPropStorageEh: Component 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 component that can display all data without having to remove the active record. It is possible to fetch data from the TDataDriverEh object. And… TDataDriverEh: 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… TDataSetDriverEh: Includes DataDriver, which is responsible for transferring TMemTableEh records from 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 component consists of five TSQLCommandEh objects: SelectCommand, DeleteCommand, InsertCommand, UpdateCommand, GetrecCommand. Each of these objects holds SQL commands and parameters to run a variety of SQL commands. TBDEDataDriverEh: To use the DataDriver Component. This component is responsible for assigning the connection, so that DataDriver sends queries to the server. TIBXDataDriverEh: The DataDriver component that interacts with the database server using the IBX driver. This component is responsible for assigning the connection, so that DataDriver sends queries to the server. TDBXDataDriverEh: The DataDriver component that interacts with the database server using the DBX driver. This component is responsible for assigning the connection, so that DataDriver sends queries to the server. TADODataDriverEh: The DataDriver component that interacts with the database server using the ADO driver. This component is responsible for assigning the connection, so that DataDriver sends queries to the server.

1,486

社区成员

发帖
与我相关
我的任务
社区描述
VB API
社区管理员
  • API
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧