社区
Delphi
帖子详情
关于DbgridEh.Columns.DropDownBox.Columns的问题?
das
2003-10-18 12:21:09
Ehlib2.6中自带的Demos1里的范例程序中,该属性选中后弹出编辑框,鼠标右键菜单中可选中"Add All Fields",它是怎样与什么数据源关联的?搞了半天了,上火。
...全文
187
1
打赏
收藏
关于DbgridEh.Columns.DropDownBox.Columns的问题?
Ehlib2.6中自带的Demos1里的范例程序中,该属性选中后弹出编辑框,鼠标右键菜单中可选中"Add All Fields",它是怎样与什么数据源关联的?搞了半天了,上火。
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
yzykjh
2003-10-18
打赏
举报
回复
这是组件开发的问题。建议你看看《Delphi 5开发人员指南》这本书中组件方面的内容。
db
grid
eh
中的keylist,picklist的用法.doc
db
grid
eh
中的keylist,picklist的用法,有交流Delphi请留言。
Eh
lib_6.1.129
The history of the
Eh
Lib library -------------------------------- Version 6.1 + A new component T
DB
Vert
Grid
Eh
- DataSet
Grid
with the Vertical Orientation. The component is used to display and edit a single record of DataSet in a vertical orientation. Basic properties of the T
DB
Vert
Grid
Eh
: Rows: T
DB
Ver
Grid
Rows - A collection of items of TFieldRow
Eh
type to display fields of a record. This is analogous to the
Column
s collection in T
DB
Grid
Eh
. Options: T
DB
VH
Grid
Options - Configure basic properties of the vertical
grid
. RowsDefValues: TFieldRowDefValues
Eh
- default values for line
Grid
row - TFieldRow
Eh
. This is analogous of
Column
DefValues in T
DB
Grid
Eh
.
Grid
LineParams: T
DB
Vert
Grid
LineParams
Eh
- Color settings of the dividing lines in vertical
grid
. DataColParams: T
DB
Vert
Grid
DataColParams
Eh
- The setting of the
column
with data. LabelColParams: T
DB
Vert
Grid
LabelColParam
Eh
- The setting of the
column
with row label. See an example of using T
DB
Vert
Grid
Eh
in a project: <
Eh
Lib Archive> \ Demos \
DB
Vert
Grid
Eh
.SimpleDemo \ Project1.dpr compiled project: <
Eh
Lib Archive> \ Demos \ Bin \
DB
Vert
Grid
Eh
.SimpleDemo.Exe * There are changes in the
grid
s inheritance tree: New inheritance tree is: TCustomControl | - TCustom
Grid
Eh
| - TCustom
DB
Axis
Grid
Eh
| - TCustom
DB
Grid
Eh
| | | - T
DB
Grid
Eh
| - TCustom
DB
Vert
Grid
Eh
| - T
DB
Vert
Grid
Eh
* Some constants and procedures are moved from the module
DB
Grid
Eh
to the
DB
Axis
Grid
s
Eh
. + Added a new global function to display a ObjectInspector-like Form. Use the next procedure to display the ObjectInspector-like Form: procedure ShowObjectInspectorForm ( Component: TObject; // A component to Inspect FormBounds: TRect; // Form Borders NewForm: Boolean = False // Show as a new Form ); This is a simple ObjectInspector that can be used to debug property setting at run-time. See an example that shows how to use ShowObjectInspectorForm here: <
Eh
Lib Archive> \ Demos \ ObjectInspectorForm.SimpleDemo \ Project1.dpr compiled project: <
Eh
Lib Archive> \ Demos \ Bin \ ObjectInspectorForm.SimpleDemo.Exe In
DB
Grid
Eh
+ Added an ability to change the size of RowDetailPanel by mouse at RunTime. New properties in RowDetailPanel: property VertSizing: Boolean - Show an RowDetailPanel Splitter at the buttom of the RowDetailPanel. property MinHeight: Integer - Minimum height of the RowDetailPanel. property MaxHeight: Integer - Maximum height of the RowDetailPanel. property SizingBarBeveled: Boolean - Splitter area has a 3D border. property SizingBarHeight: Integer - The height of the Splitter. + Added an ability to darken gray the
grid
while the data is loading. See StartLoadingStatus and FinishLoadingStatus methods in the T
DB
Grid
Eh
. See the example that shows this opportunity in a project: <
Eh
Lib Archive> \ Demos \
DB
Grid
Eh
.LoadingStatus \ Project1.dpr compiled project: <
Eh
Lib Archive> \ Demos \ Bin \
DB
Grid
Eh
.LoadingStatus.Exe
一个
DB
Grid
转excel文件的类 Delphi环境.rar
一个
DB
Grid
转excel文件的类 Delphi环境,用的XLSReadWrite。下面代码设置列宽,导出数据时应将AutoFitColWidths属性值设置为False XLS.Sheet[0].
Column
s.AddIfNone(0,F
Column
Count); FitColWidths:=F
DB
Grid
Eh
.AutoFitColWidths; F
DB
Grid
Eh
.AutoFitColWidths:=False; for i:=0 to F
Column
Count-1 do XLS.Sheet[0].
Column
s[i].PixelWidth:=F
DB
Grid
Eh
.
Column
s[i].Width; F
DB
Grid
Eh
.AutoFitColWidths:=FitColWidths; //下面代码设置标题行行高 XLS.Sheet[0].Rows.AddIfNone(FStartRow,FTitleRowCount); for i:=FStartRow to FStartRow FTitleRowCount-1 do XLS.Sheet[0].Rows[i].PixelHeight:=GetTitl
eH
eightFull; end; 另外还有导出数据行、显示进度条进度、输出
DB
Grid
Eh
表脚、设置单元格横向对齐方式、设置单元格显示格式、设置数据行行高等功能的代码,请下载类源码。
EH
Lib 6.3.171〖D7~XE5〗
+ A new property SelectionDrawParams: T
Grid
SelectionDrawParams
Eh
SelectionDrawParams property is added in
DB
Grid
Eh
and
DB
Vert
Grid
Eh
component, which allows you to customize the style of the currently selected cell. The property has the following sub-properties: SelectionStyle: T
Grid
SelectionDrawStyle
Eh
- paint style of the currently selected cell DrawFocusFrame: Boolean - Specifies whether to draw a dotted border around the currently selected cell. T
Grid
SelectionStyle
Eh
type contains the following values: gsdsDefault
Eh
- The default style is determined depending on the version of the OS and included Windows schemas and Delphi schemas.If Windows schemes is on the gssListViewThemed
Eh
is used. If the active style of Delphi XE is on the
Grid
Themed style is used. gsdsClassic
Eh
- Classic style. The cell is painted by uniform clSelected color. gsds
Grid
Themed
Eh
- The Delphi XE style is used to draw a celeced cell. gsdsListViewThemed
Eh
- Windows ListView style is to draw a celeced cell. For a global management of style use the properties of the global object
Grid
DrawStyle of T
Grid
DrawStyle
Eh
type. Use the procedure
Grid
DefaultDrawStyle
Eh
, Set
Grid
DefaultDrawStyle
Eh
, declared in a module
Grid
s
Eh
.pas to access
Grid
DrawStyle the object. T
Grid
DrawStyle
Eh
type has the following properties: SelectionStyle: T
Grid
SelectionStyle
Eh
- style shading display the currently selected cell. DrawFocusFrame: Boolean - Specifies whether to draw a dotted border around the currently selected cell. To change the style of lighting in all
grid
s of project, use code like this: unit MyMainForm; uses ...
Grid
s
Eh
; .... initialization
Grid
DefaultDrawStyle
Eh
.SelectionStyle := gsdsClassic
Eh
; //Draw selected cell by the classic style. end. Setting Lookup relationships directly in the
column
s of the
grid
without using of lookup fields. + A new property -
Column
.LookupParams: T
DB
LookupData
Eh
in
column
s of
DB
Grid
Eh
and
DB
Vert
Grid
Eh
. The property allows you to setup lookup relationship in the
grid
column
s. The property consists of the following sub-properties: KeyFieldNames: String - Identifies the field or fields in the dataset that must be matched in a lookup dataset when doing a lookup. LookupCache: Boolean - Determines whether the values of a lookup field are cached or looked up dynamically every time the current record in the dataset changes. LookupDataSet: TDataSet - Identifies the dataset used to look up field values. LookupDisplayFieldName: String - Identifies the field from the lookup dataset whose value is displayed in place of KeyFields. LookupKeyFieldNames: String - Identifies the field or fields in the lookup dataset to match when doing a lookup. Other features of this version + New property - TBase
Column
Eh
.CaseInsensitiveTextSearch: Boolean default True. Defines CaseInsensitive search in a text editor for the
dropdown
box
items. The property as added in
column
s of
DB
Grid
Eh
,
DB
Vert
Grid
Eh
and in T
DB
Combo
box
Eh
T
DB
Lookupcombo
box
Eh
controls. + LimitTextToListValues property of Boolean type. Defines to limit of values in the edit
box
by the list of values in the
dropdown
box
. The property as added in
column
s of
DB
Grid
Eh
DB
Vert
Grid
Eh
and in T
DB
Combo
box
Eh
control. + In
DB
Grid
Eh
. At Design-Time it is allowed select DataSet from the list of Favorite DataSets DataSet is created via the
Grid
Design Panel. + In the Filter Drop-down lists of the
DB
Grid
Eh
it is allowed to selected several values quickly by pressing and dragging the pressed mouse. + In
DB
Grid
Eh
. If gioShowRowselCheck
box
es
Eh
value is in the
DB
Grid
Eh
.IndicatorOptions property then it is allowed to selected several records quickly by pressing and dragging the pressed mouse. + In
DB
Grid
Eh
.Pas A new property ColWidthsOptimizationMaxWaitingTime is added in the global class T
DB
Grid
Eh
Center. This property can be assigned by a maximum time, which will be used to calculate the widths of the
column
s when the user double click on the line that separates
column
s. If the time of calculation of
column
widths is exceeded the value that was set in ColWidthsOptimizationMaxWaitingTime then
grid
cancels a calculation of the remaining records. The default value is 2000 (2 seconds). + New property ShowImageAndText is added in the T
Column
Title
Eh
class. If ShowImageAndText = True and the title of the
grid
is set to display images from TitleParams.Images, then the text of the
column
header will be displayed along with the picture. If ShowImageAndText = False, it will only display the picture without the text. + New methods GetColCellParams GetTitleParams RowDetailPanelShow and RowDetailPanelHide are added in the global class T
DB
Grid
Eh
Center, This mathods are virtual methods so you can override them in new derived class TMy
DB
Grid
Eh
Center and control corresponding events for all
Grid
s of the project. (
DB
Vert
Grid
s
Eh
.pas) + A new property Options
Eh
of T
DB
VH
Grid
Options
Eh
type is added in the T
DB
Vert
Grid
Eh
component. T
DB
VH
Grid
Options
Eh
type contains the following values: dgvhHighlightFocus
Eh
- Highlight the current cell when the
grid
has focus. dgvhClearSelection
Eh
- Clear a selected area when a user navigates the current cell in the
grid
. dgvhEnterToNextRow
Eh
- Move the current cell to the next row in a
grid
when user presses an Enter key. dgvhTabToNextRow
Eh
- Move the current cell to the next row in a
grid
when user presses an Tab key. dgvhRowsIsTabControls
Eh
- Rows in the
grid
are operated as a list of edit controls. ie : - Does not allow to leave the current record of DataSet with keyboard keys. - When the current cell in the
grid
is on the last line, the Tab key on the
grid
translates the input focus to the next TabStop Control of a Form (dgvhTabToNextRow
Eh
property must be included). - When the current cell in the
grid
is on the first line , then by Alt+Tab key in the
Grid
will put focus to the previous TabStop Control of a Form (dgvhTabToNextRow
Eh
property must be included). + T
DB
Vert
Grid
Eh
allows to select lines and rectangular region of cells with mouse or keyboard and supports ClipBoard operations. + A new property - AllowedSelections of T
DB
Vert
Grid
AllowedSelections
Eh
. Specifies the permitted types of selections in the
grid
. vgstRows
Eh
- Allows to select lines in the
grid
with the mouse or with the keyboard. vgstRectangle
Eh
- Allows the select square area in the
grid
with the mouse or with the keyboard. vgstAll
Eh
- Allows to the select all the data in the
grid
by a Ctrl+A key combination. + A new property - EditActions of T
Grid
EditActions
Eh
type. Defines the permitted operations with the selected area. geaCut
Eh
, geaCopy
Eh
, geaPaste
Eh
, geaDelete
Eh
, geaSelectAll
Eh
. + New Property - Selection of T
DB
Vert
Grid
Selection
Eh
type. The property contains information about the selected area in the
Grid
. + Added T
DB
Vert
Grid
Eh
.OnRowCategoriesNodeExpanded and T
DB
Vert
Grid
Eh
.OnRowCategoriesNodeCollapsed events. (DataDriver
Eh
.pas) * Changes: Published parameter - TConnectionProvider
Eh
.OnGetServerSpecOperations: TResolverGetServerSpecOperations
Eh
was changed. Old declaration: TResolverGetServerSpecOperations
Eh
= function (var Processed: Boolean): TServerSpecOperations
Eh
of object; New declaration: TResolverGetServerSpecOperations
Eh
= procedure (var Processed: Boolean; var ServerSpecOperations: TServerSpecOperations
Eh
) of object; Announcement via function caused an inexplicable error in compile-time in C++ Builder. (
DB
Ctrls
Eh
.pas) + New events (OnClose
DropDown
Form OnOpen
DropDown
Form) are added in T
DB
Edit
Eh
, T
DB
DateTimeEdit
Eh
, T
DB
Combo
Box
Eh
controls.
Eh
Lib 9.0 Build 9.0.033 Full Source
+ New type of
DropDown
calendar with support for entering date and time + Highlight holidays, weekends and current day in TPlannerCalendarPicker
Eh
component + Highlight current day and current time in TPlannerControl
Eh
+ AllowedOperations property in TPlannerControl
Eh
+ ReadOnly state for TPlannerControl
Eh
and TPlannerDataItem
Eh
+ Time divider of 5, 6, 10, 15, 30 and 60 minutes in TPlannerDayView
Eh
and TPlannerWeekView
Eh
components + New properties and events in TPlannerXXXView
Eh
components (TPlannerDayView
Eh
, TPlannerWeekView
Eh
…) + CellButtons in
column
s of
DB
Grid
Eh
and rows
DB
Vert
Grid
Eh
to create buttons in cells of the
grid
operating without activation InplaceEditor text editor. + Search in a mode of “Begins with” in SearchPanel + Selecting of rows in
DB
Grid
Eh
.DataGrouping mode by pressing the group row in the indicator section
Delphi
5,392
社区成员
262,730
社区内容
发帖
与我相关
我的任务
Delphi
Delphi 开发及应用
复制链接
扫一扫
分享
社区描述
Delphi 开发及应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章