Documentation ¶
Overview ¶
Package adapter 数据适配器.
Index ¶
- type AdapterListView
- func (a *AdapterListView) AddRef() int
- func (a *AdapterListView) DeleteAll() int
- func (a *AdapterListView) DeleteAllGroup() int
- func (a *AdapterListView) DeleteAllItem() int
- func (a *AdapterListView) DeleteColumnGroup(iColumn int) int
- func (a *AdapterListView) DeleteColumnItem(iColumn int) int
- func (a *AdapterListView) Destroy() int
- func (a *AdapterListView) EnableAutoDestroy(bEnable bool) int
- func (a *AdapterListView) GetRefCount() int
- func (a *AdapterListView) Group_AddColumn(pName string) int
- func (a *AdapterListView) Group_AddItemImage(hImage int, iPos int) int
- func (a *AdapterListView) Group_AddItemImageEx(pName string, hImage int, iPos int) int
- func (a *AdapterListView) Group_AddItemText(pValue string, iPos int) int
- func (a *AdapterListView) Group_AddItemTextEx(pName string, pValue string, iPos int) int
- func (a *AdapterListView) Group_DeleteAllChildItem(iGroup int) int
- func (a *AdapterListView) Group_DeleteItem(iGroup int) bool
- func (a *AdapterListView) Group_GetCount() int
- func (a *AdapterListView) Group_GetImage(iGroup int, iColumn int) int
- func (a *AdapterListView) Group_GetImageEx(iGroup int, pName string) int
- func (a *AdapterListView) Group_GetText(iGroup int, iColumn int) string
- func (a *AdapterListView) Group_GetTextEx(iGroup int, pName string) string
- func (a *AdapterListView) Group_SetImage(iGroup int, iColumn int, hImage int) bool
- func (a *AdapterListView) Group_SetImageEx(iGroup int, pName string, hImage int) bool
- func (a *AdapterListView) Group_SetText(iGroup int, iColumn int, pValue string) bool
- func (a *AdapterListView) Group_SetTextEx(iGroup int, pName string, pValue string) bool
- func (a *AdapterListView) Item_AddColumn(pName string) int
- func (a *AdapterListView) Item_AddItemImage(iGroup int, hImage int, iPos int) int
- func (a *AdapterListView) Item_AddItemImageEx(iGroup int, pName string, hImage int, iPos int) int
- func (a *AdapterListView) Item_AddItemText(iGroup int, pValue string, iPos int) int
- func (a *AdapterListView) Item_AddItemTextEx(iGroup int, pName string, pValue string, iPos int) int
- func (a *AdapterListView) Item_DeleteItem(iGroup int, iItem int) bool
- func (a *AdapterListView) Item_GetCount(iGroup int) int
- func (a *AdapterListView) Item_GetImage(iGroup int, iItem int, iColumn int) int
- func (a *AdapterListView) Item_GetImageEx(iGroup int, iItem int, pName string) int
- func (a *AdapterListView) Item_GetText(iGroup int, iItem int, iColumn int) string
- func (a *AdapterListView) Item_GetTextEx(iGroup int, iItem int, pName string) string
- func (a *AdapterListView) Item_SetImage(iGroup int, iItem int, iColumn int, hImage int) bool
- func (a *AdapterListView) Item_SetImageEx(iGroup int, iItem int, pName string, hImage int) bool
- func (a *AdapterListView) Item_SetText(iGroup int, iItem int, iColumn int, pValue string) bool
- func (a *AdapterListView) Item_SetTextEx(iGroup int, iItem int, pName string, pValue string) bool
- func (a *AdapterListView) Release() int
- type AdapterMap
- func (a *AdapterMap) AddItemImage(pName string, hImage int) bool
- func (a *AdapterMap) AddItemText(pName string, pValue string) bool
- func (a *AdapterMap) AddRef() int
- func (a *AdapterMap) DeleteItem(pName string) bool
- func (a *AdapterMap) Destroy() int
- func (a *AdapterMap) EnableAutoDestroy(bEnable bool) int
- func (a *AdapterMap) GetCount() int
- func (a *AdapterMap) GetItemImage(pName string) int
- func (a *AdapterMap) GetItemText(pName string) string
- func (a *AdapterMap) GetRefCount() int
- func (a *AdapterMap) Release() int
- func (a *AdapterMap) SetItemImage(pName string, hImage int) bool
- func (a *AdapterMap) SetItemText(pName string, pValue string) bool
- type AdapterTable
- func (a *AdapterTable) AddColumn(pName string) int
- func (a *AdapterTable) AddItemImage(hImage int) int
- func (a *AdapterTable) AddItemImageEx(pName string, hImage int) int
- func (a *AdapterTable) AddItemText(pValue string) int
- func (a *AdapterTable) AddItemTextEx(pName string, pValue string) int
- func (a *AdapterTable) AddRef() int
- func (a *AdapterTable) DeleteColumnAll() int
- func (a *AdapterTable) DeleteItem(iItem int) bool
- func (a *AdapterTable) DeleteItemAll() int
- func (a *AdapterTable) DeleteItemEx(iItem int, nCount int) bool
- func (a *AdapterTable) Destroy() int
- func (a *AdapterTable) EnableAutoDestroy(bEnable bool) int
- func (a *AdapterTable) GetCount() int
- func (a *AdapterTable) GetCountColumn() int
- func (a *AdapterTable) GetItemDataType(iItem int, iColumn int) xcc.Adapter_Date_Type_
- func (a *AdapterTable) GetItemDataTypeEx(iItem int, pName string) xcc.Adapter_Date_Type_
- func (a *AdapterTable) GetItemFloat(iItem int, iColumn int, pOutValue *float32) bool
- func (a *AdapterTable) GetItemFloatEx(iItem int, pName string, pOutValue *float32) bool
- func (a *AdapterTable) GetItemImage(iItem int, iColumn int) int
- func (a *AdapterTable) GetItemImageEx(iItem int, pName string) int
- func (a *AdapterTable) GetItemInt(iItem int, iColumn int, pOutValue *int) bool
- func (a *AdapterTable) GetItemIntEx(iItem int, pName string, pOutValue *int) bool
- func (a *AdapterTable) GetItemText(iItem int, iColumn int) string
- func (a *AdapterTable) GetItemTextEx(iItem int, pName string) string
- func (a *AdapterTable) GetRefCount() int
- func (a *AdapterTable) InsertItemImage(iItem int, hImage int) int
- func (a *AdapterTable) InsertItemImageEx(iItem int, pName string, hImage int) int
- func (a *AdapterTable) InsertItemText(iItem int, pValue string) int
- func (a *AdapterTable) InsertItemTextEx(iItem int, pName string, pValue string) int
- func (a *AdapterTable) Release() int
- func (a *AdapterTable) SetColumn(pColName string) int
- func (a *AdapterTable) SetItemFloat(iItem int, iColumn int, fValue float32) bool
- func (a *AdapterTable) SetItemFloatEx(iItem int, pName string, fValue float32) bool
- func (a *AdapterTable) SetItemImage(iItem int, iColumn int, hImage int) bool
- func (a *AdapterTable) SetItemImageEx(iItem int, pName string, hImage int) bool
- func (a *AdapterTable) SetItemInt(iItem int, iColumn int, nValue int) bool
- func (a *AdapterTable) SetItemIntEx(iItem int, pName string, nValue int) bool
- func (a *AdapterTable) SetItemText(iItem int, iColumn int, pValue string) bool
- func (a *AdapterTable) SetItemTextEx(iItem int, pName string, pValue string) bool
- func (a *AdapterTable) Sort(iColumn int, bAscending bool) int
- type AdapterTree
- func (a *AdapterTree) AddColumn(pName string) int
- func (a *AdapterTree) AddRef() int
- func (a *AdapterTree) DeleteColumnAll() int
- func (a *AdapterTree) DeleteItem(nID int) bool
- func (a *AdapterTree) DeleteItemAll() int
- func (a *AdapterTree) Destroy() int
- func (a *AdapterTree) EnableAutoDestroy(bEnable bool) int
- func (a *AdapterTree) GetCount() int
- func (a *AdapterTree) GetCountColumn() int
- func (a *AdapterTree) GetItemImage(nID int, iColumn int) int
- func (a *AdapterTree) GetItemImageEx(nID int, pName string) int
- func (a *AdapterTree) GetItemText(nID int, iColumn int) string
- func (a *AdapterTree) GetItemTextEx(nID int, pName string) string
- func (a *AdapterTree) GetRefCount() int
- func (a *AdapterTree) InsertItemImage(hImage int, nParentID int, insertID int) int
- func (a *AdapterTree) InsertItemImageEx(pName string, hImage int, nParentID int, insertID int) int
- func (a *AdapterTree) InsertItemText(pValue string, nParentID int, insertID int) int
- func (a *AdapterTree) InsertItemTextEx(pName string, pValue string, nParentID int, insertID int) int
- func (a *AdapterTree) Release() int
- func (a *AdapterTree) SetColumn(pColName string) int
- func (a *AdapterTree) SetItemImage(nID int, iColumn int, hImage int) bool
- func (a *AdapterTree) SetItemImageEx(nID int, pName string, hImage int) bool
- func (a *AdapterTree) SetItemText(nID int, iColumn int, pValue string) bool
- func (a *AdapterTree) SetItemTextEx(nID int, pName string, pValue string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterListView ¶
type AdapterListView struct {
// contains filtered or unexported fields
}
数据适配器-列表视元素.
func NewAdapterListViewByHandle ¶
func NewAdapterListViewByHandle(handle int) *AdapterListView
从句柄创建对象.
func (*AdapterListView) DeleteAll ¶
func (a *AdapterListView) DeleteAll() int
数据适配器列表视_删除全部, 删除所有(组,项,列).
func (*AdapterListView) DeleteAllGroup ¶
func (a *AdapterListView) DeleteAllGroup() int
数据适配器列表视_删除全部组, 删除所有的组.
func (*AdapterListView) DeleteAllItem ¶
func (a *AdapterListView) DeleteAllItem() int
数据适配器列表视_删除全部项, 删除所有的项.
func (*AdapterListView) DeleteColumnGroup ¶
func (a *AdapterListView) DeleteColumnGroup(iColumn int) int
数据适配器列表视_组删除列, 删除组的列.
iColumn: 列索引.
func (*AdapterListView) DeleteColumnItem ¶
func (a *AdapterListView) DeleteColumnItem(iColumn int) int
数据适配器列表视_项删除列, 删除项的列.
iColumn: 列索引.
func (*AdapterListView) Group_AddColumn ¶
func (a *AdapterListView) Group_AddColumn(pName string) int
数据适配器列表视_组添加列, 组操作, 添加数据列, 返回列索引.
pName: 字段称.
func (*AdapterListView) Group_AddItemImage ¶
func (a *AdapterListView) Group_AddItemImage(hImage int, iPos int) int
数据适配器列表视_添加组图片, 组操作, 添加组, 数据默认填充第一列.
hImage: 图片句柄.
iPos: 插入位置, 可为-1.
func (*AdapterListView) Group_AddItemImageEx ¶
func (a *AdapterListView) Group_AddItemImageEx(pName string, hImage int, iPos int) int
数据适配器列表视_添加组图片扩展, 组操作, 添加组, 数据填充指定列.
pName: 字段称.
hImage: 图片句柄.
iPos: 插入位置, 可为-1.
func (*AdapterListView) Group_AddItemText ¶
func (a *AdapterListView) Group_AddItemText(pValue string, iPos int) int
数据适配器列表视_添加组文本, 组操作, 添加组, 数据默认填充到第一列, 返回组索引.
pValue: 值.
iPos: 插入位置, 可为-1.
func (*AdapterListView) Group_AddItemTextEx ¶
func (a *AdapterListView) Group_AddItemTextEx(pName string, pValue string, iPos int) int
数据适配器列表视_添加组文本扩展, 组操作, 添加组, 数据填充指定列, 返回组索引.
pName: 字段称.
pValue: 值.
iPos: 插入位置, 可为-1.
func (*AdapterListView) Group_DeleteAllChildItem ¶
func (a *AdapterListView) Group_DeleteAllChildItem(iGroup int) int
数据适配器列表视_删除全部子项, 删除指定组的所有子项.
iGroup: 组索引.
func (*AdapterListView) Group_DeleteItem ¶
func (a *AdapterListView) Group_DeleteItem(iGroup int) bool
数据适配器列表视_组删除项, 删除组, 自动删除子项.
iGroup: 组索引.
func (*AdapterListView) Group_GetCount ¶
func (a *AdapterListView) Group_GetCount() int
数据适配器列表视_取组数量, 组操作, 获取组数量.
func (*AdapterListView) Group_GetImage ¶
func (a *AdapterListView) Group_GetImage(iGroup int, iColumn int) int
数据适配器列表视_组取图片, 返回图片句柄.
iGroup: 组索引.
iColumn: 列索引.
func (*AdapterListView) Group_GetImageEx ¶
func (a *AdapterListView) Group_GetImageEx(iGroup int, pName string) int
数据适配器列表视_组取图片扩展, 返回图片句柄.
iGroup: 组索引.
pName: 字段名称.
func (*AdapterListView) Group_GetText ¶
func (a *AdapterListView) Group_GetText(iGroup int, iColumn int) string
数据适配器列表视_组取文本, 返回文本内容.
iGroup: 组索引.
iColumn: 列索引.
func (*AdapterListView) Group_GetTextEx ¶
func (a *AdapterListView) Group_GetTextEx(iGroup int, pName string) string
数据适配器列表视_组取文本扩展, 返回文本内容.
iGroup: 组索引.
pName: 字段名称.
func (*AdapterListView) Group_SetImage ¶
func (a *AdapterListView) Group_SetImage(iGroup int, iColumn int, hImage int) bool
数据适配器列表视_组设置图片, 组操作, 设置指定项数据.
iGroup: 组索引.
iColumn: 列索引.
hImage: 图片句柄.
func (*AdapterListView) Group_SetImageEx ¶
func (a *AdapterListView) Group_SetImageEx(iGroup int, pName string, hImage int) bool
数据适配器列表视_组设置图片扩展, 组操作, 设置指定项数据.
iGroup: 组索引.
pName: 字段名.
hImage: 图片句柄.
func (*AdapterListView) Group_SetText ¶
func (a *AdapterListView) Group_SetText(iGroup int, iColumn int, pValue string) bool
数据适配器列表视_组设置文本, 组操作, 设置指定项数据.
iGroup: 组索引.
iColumn: 列索引.
pValue: 值.
func (*AdapterListView) Group_SetTextEx ¶
func (a *AdapterListView) Group_SetTextEx(iGroup int, pName string, pValue string) bool
数据适配器列表视_组设置文本扩展, 组操作, 设置指定项数据.
iGroup: 组索引.
pName: 字段名.
pValue: 值.
func (*AdapterListView) Item_AddColumn ¶
func (a *AdapterListView) Item_AddColumn(pName string) int
数据适配器列表视_项添加列, 项操作, 添加列.
pName: 字段称.
func (*AdapterListView) Item_AddItemImage ¶
func (a *AdapterListView) Item_AddItemImage(iGroup int, hImage int, iPos int) int
数据适配器列表视_添加项图片, 项操作, 添加项.
iGroup: 组索引.
hImage: 图片句柄.
iPos: 插入位置, 可为-1.
func (*AdapterListView) Item_AddItemImageEx ¶
数据适配器列表视_添加项图片扩展, 项操作, 添加项, 填充指定列数据.
iGroup: 组索引.
pName: 字段称.
hImage: 图片句柄.
iPos: 插入位置, 可为-1.
func (*AdapterListView) Item_AddItemText ¶
func (a *AdapterListView) Item_AddItemText(iGroup int, pValue string, iPos int) int
数据适配器列表视_添加项文本, 项操作, 添加项.
iGroup: 组索引.
pValue: 值.
iPos: 插入位置, 可为-1.
func (*AdapterListView) Item_AddItemTextEx ¶
数据适配器列表视_添加项文本扩展, 项操作, 添加项, 数据填充指定列.
iGroup: 组索引.
pName: 字段称.
pValue: 值.
iPos: 插入位置, 可为-1.
func (*AdapterListView) Item_DeleteItem ¶
func (a *AdapterListView) Item_DeleteItem(iGroup int, iItem int) bool
数据适配器列表视_删除项, 删除项.
iGroup: 组索引.
iItem: 项索引.
func (*AdapterListView) Item_GetCount ¶
func (a *AdapterListView) Item_GetCount(iGroup int) int
数据适配器列表视_取组中项数量, 项操作, 获取指定组中项数量.
iGroup: 组索引.
func (*AdapterListView) Item_GetImage ¶
func (a *AdapterListView) Item_GetImage(iGroup int, iItem int, iColumn int) int
数据适配器列表视_项取图片. 项操作, 返回项图片句柄.
iGroup: 组索引.
iItem: 项索引.
iColumn: 列索引.
func (*AdapterListView) Item_GetImageEx ¶
func (a *AdapterListView) Item_GetImageEx(iGroup int, iItem int, pName string) int
数据适配器列表视_项获取图片扩展, 项操作, 获取项图片句柄.
iGroup: 组索引.
iItem: 项索引.
pName: 字段称.
func (*AdapterListView) Item_GetText ¶
func (a *AdapterListView) Item_GetText(iGroup int, iItem int, iColumn int) string
数据适配器列表视_项取文本. 项操作, 返回项文本内容.
iGroup: 组索引.
iItem: 项索引.
iColumn: 列索引.
func (*AdapterListView) Item_GetTextEx ¶
func (a *AdapterListView) Item_GetTextEx(iGroup int, iItem int, pName string) string
数据适配器列表视_项获取文本扩展, 项操作, 获取项文本内容.
iGroup: 组索引.
iItem: 项索引.
pName: 字段称.
func (*AdapterListView) Item_SetImage ¶
数据适配器列表视_项置图片, 项操作, 数据填充指定列.
iGroup: 组索引.
iItem: 项索引.
iColumn: 列索引.
hImage: 图片句柄.
func (*AdapterListView) Item_SetImageEx ¶
数据适配器列表视_项置图片扩展, 项操作, 数据填充指定列.
iGroup: 组索引.
iItem: 项索引.
pName: 字段称.
hImage: 图片句柄.
func (*AdapterListView) Item_SetText ¶
数据适配器列表视_项置文本, 项操作, 数据填充指定列.
iGroup: 组索引.
iItem: 项索引.
iColumn: 列索引.
pValue: 值.
func (*AdapterListView) Item_SetTextEx ¶
数据适配器列表视_项置文本扩展, 项操作, 数据填充指定列.
iGroup: 组索引.
iItem: 项索引.
pName: 字段称.
pValue: 值.
type AdapterMap ¶
type AdapterMap struct {
// contains filtered or unexported fields
}
数据适配器-单列Map-列表头(listHeader).
func (*AdapterMap) AddItemImage ¶
func (a *AdapterMap) AddItemImage(pName string, hImage int) bool
数据适配器MAP_添加项图片, 增加数据项.
pName: 字段称.
hImage: 图片句柄.
func (*AdapterMap) AddItemText ¶
func (a *AdapterMap) AddItemText(pName string, pValue string) bool
数据适配器MAP_添加项文本, 增加数据项.
pName: 字段称.
pValue: 值.
func (*AdapterMap) DeleteItem ¶
func (a *AdapterMap) DeleteItem(pName string) bool
数据适配器MAP_删除项, 删除数据项.
pName: 字段称.
func (*AdapterMap) GetItemImage ¶
func (a *AdapterMap) GetItemImage(pName string) int
数据适配器MAP_取项图片, 获取项内容, 如果内容为图片句柄, 返回图片句柄.
pName: 字段称.
func (*AdapterMap) GetItemText ¶
func (a *AdapterMap) GetItemText(pName string) string
数据适配器MAP_取项文本, 获取项内容, 如果内容为文本.
pName: 字段称.
func (*AdapterMap) SetItemImage ¶
func (a *AdapterMap) SetItemImage(pName string, hImage int) bool
数据适配器MAP_置项图片, 设置项内容.
pName: 字段称.
hImage: 值.
func (*AdapterMap) SetItemText ¶
func (a *AdapterMap) SetItemText(pName string, pValue string) bool
数据适配器MAP_置项文本, 设置项内容.
pName: 字段称.
pValue: 值.
type AdapterTable ¶
type AdapterTable struct {
// contains filtered or unexported fields
}
数据适配器-XList-XListBox.
func (*AdapterTable) AddColumn ¶
func (a *AdapterTable) AddColumn(pName string) int
数据适配器表_添加列, 添加数据列.
pName: 字段称.
func (*AdapterTable) AddItemImage ¶
func (a *AdapterTable) AddItemImage(hImage int) int
数据适配器表_添加项图片, 添加数据项, 默认值放到第一列, 返回项索引值.
hImage: 图片句柄.
func (*AdapterTable) AddItemImageEx ¶
func (a *AdapterTable) AddItemImageEx(pName string, hImage int) int
数据适配器表_添加项图片扩展, 添加数据项, 并填充指定列数据.
pName: 字段称.
hImage: 图片句柄.
func (*AdapterTable) AddItemText ¶
func (a *AdapterTable) AddItemText(pValue string) int
数据适配器表_添加项文本, 添加数据项, 默认值放到第一列, 返回项索引值.
pValue: 值.
func (*AdapterTable) AddItemTextEx ¶
func (a *AdapterTable) AddItemTextEx(pName string, pValue string) int
数据适配器表_添加项文本扩展, 添加数据项, 填充指定列数据, 返回项索引.
pName: 字段称.
pValue: 值.
func (*AdapterTable) DeleteColumnAll ¶
func (a *AdapterTable) DeleteColumnAll() int
数据适配器表_删除列全部, 删除所有列, 并且清空所有数据.
func (*AdapterTable) DeleteItem ¶
func (a *AdapterTable) DeleteItem(iItem int) bool
数据适配器表_删除项, 删除项.
iItem: 项索引.
func (*AdapterTable) DeleteItemAll ¶
func (a *AdapterTable) DeleteItemAll() int
数据适配器表_删除项全部, 删除所有项.
func (*AdapterTable) DeleteItemEx ¶
func (a *AdapterTable) DeleteItemEx(iItem int, nCount int) bool
数据适配器表_删除项扩展, 删除多个项.
iItem: 项起始索引.
nCount: 删除项数量.
func (*AdapterTable) GetCountColumn ¶
func (a *AdapterTable) GetCountColumn() int
数据适配器表_取列数量, 获取列数量.
func (*AdapterTable) GetItemDataType ¶
func (a *AdapterTable) GetItemDataType(iItem int, iColumn int) xcc.Adapter_Date_Type_
数据适配器表_取项数据类型, 获取项数据类型, 返回: Adapter_Date_Type_.
iItem: 项索引.
iColumn: 列索引.
func (*AdapterTable) GetItemDataTypeEx ¶
func (a *AdapterTable) GetItemDataTypeEx(iItem int, pName string) xcc.Adapter_Date_Type_
数据适配器表_取项数据类型扩展, 返回: Adapter_Date_Type_.
iItem: 项索引.
pName: 字段称.
func (*AdapterTable) GetItemFloat ¶
func (a *AdapterTable) GetItemFloat(iItem int, iColumn int, pOutValue *float32) bool
数据适配器表_取项浮点值, 获取项值.
iItem: 项索引.
iColumn: 列索引.
pOutValue: 接收返还值.
func (*AdapterTable) GetItemFloatEx ¶
func (a *AdapterTable) GetItemFloatEx(iItem int, pName string, pOutValue *float32) bool
数据适配器表_取项浮点值扩展, 获取项值.
iItem: 项索引.
pName: 字段称.
pOutValue: 接收返还值.
func (*AdapterTable) GetItemImage ¶
func (a *AdapterTable) GetItemImage(iItem int, iColumn int) int
数据适配器表_取项图片, 获取项图片句柄.
iItem: 项索引.
iColumn: 列索引.
func (*AdapterTable) GetItemImageEx ¶
func (a *AdapterTable) GetItemImageEx(iItem int, pName string) int
数据适配器表_取项图片扩展, 获取项图片句柄.
iItem: 项索引.
pName: 字段称.
func (*AdapterTable) GetItemInt ¶
func (a *AdapterTable) GetItemInt(iItem int, iColumn int, pOutValue *int) bool
数据适配器表_取项整数值, 获取项值.
iItem: 项索引.
iColumn: 列索引.
pOutValue: 接收返还值.
func (*AdapterTable) GetItemIntEx ¶
func (a *AdapterTable) GetItemIntEx(iItem int, pName string, pOutValue *int) bool
数据适配器表_取项整数值扩展, 获取项值.
iItem: 项索引.
pName: 字段称.
pOutValue: 接收返还值.
func (*AdapterTable) GetItemText ¶
func (a *AdapterTable) GetItemText(iItem int, iColumn int) string
数据适配器表_取项文本, 获取项文本内容.
iItem: 项索引.
iColumn: 列索引.
func (*AdapterTable) GetItemTextEx ¶
func (a *AdapterTable) GetItemTextEx(iItem int, pName string) string
数据适配器表_取项文本扩展, 获取项文本内容.
iItem: 项索引.
pName: 字段称.
func (*AdapterTable) InsertItemImage ¶
func (a *AdapterTable) InsertItemImage(iItem int, hImage int) int
数据适配器表_插入项图片, 插入数据项, 填充第一列数据, 返回项索引.
iItem: 插入位置索引.
hImage: 图片句柄.
func (*AdapterTable) InsertItemImageEx ¶
func (a *AdapterTable) InsertItemImageEx(iItem int, pName string, hImage int) int
数据适配器表_插入项图片扩展, 插入数据项, 并填充指定列数据, 返回项索引.
iItem: 插入位置索引.
pName: 字段称.
hImage: 图片句柄.
func (*AdapterTable) InsertItemText ¶
func (a *AdapterTable) InsertItemText(iItem int, pValue string) int
数据适配器表_插入项文本, 插入数据项, 填充第一列数据, 返回项索引.
iItem: 插入位置索引.
pValue: 值.
func (*AdapterTable) InsertItemTextEx ¶
func (a *AdapterTable) InsertItemTextEx(iItem int, pName string, pValue string) int
数据适配器表_插入项文本扩展, 插入数据项, 并填充指定列数据, 返回项索引.
iItem: 插入位置索引.
pName: 字段称.
pValue: 值.
func (*AdapterTable) SetColumn ¶
func (a *AdapterTable) SetColumn(pColName string) int
数据适配器表_置列, 设置列, 返回列数量.
pColName: 列名, 多个列名用逗号分开.
func (*AdapterTable) SetItemFloat ¶
func (a *AdapterTable) SetItemFloat(iItem int, iColumn int, fValue float32) bool
数据适配器表_置项浮点值, 设置项数据.
iItem: 项索引.
iColumn: 列索引.
fValue: 值.
func (*AdapterTable) SetItemFloatEx ¶
func (a *AdapterTable) SetItemFloatEx(iItem int, pName string, fValue float32) bool
数据适配器表_置项浮点值扩展, 设置项数据.
iItem: 项索引.
pName: 字段称.
fValue: 值.
func (*AdapterTable) SetItemImage ¶
func (a *AdapterTable) SetItemImage(iItem int, iColumn int, hImage int) bool
数据适配器表_置项图片, 设置项数据.
iItem: 项索引.
iColumn: 列索引.
hImage: 图片句柄.
func (*AdapterTable) SetItemImageEx ¶
func (a *AdapterTable) SetItemImageEx(iItem int, pName string, hImage int) bool
数据适配器表_置项图片扩展, 设置项数据.
iItem: 项索引.
pName: 字段称.
hImage: 图片句柄.
func (*AdapterTable) SetItemInt ¶
func (a *AdapterTable) SetItemInt(iItem int, iColumn int, nValue int) bool
数据适配器表_置项整数值, 设置项数据.
iItem: 项索引.
iColumn: 列索引.
nValue: 值.
func (*AdapterTable) SetItemIntEx ¶
func (a *AdapterTable) SetItemIntEx(iItem int, pName string, nValue int) bool
数据适配器表_置项整数值扩展, 设置项数据.
iItem: 项索引.
pName: 字段称.
nValue: 值.
func (*AdapterTable) SetItemText ¶
func (a *AdapterTable) SetItemText(iItem int, iColumn int, pValue string) bool
数据适配器表_置项文本, 设置项数据.
iItem: 项索引.
iColumn: 列索引.
pValue: 值.
func (*AdapterTable) SetItemTextEx ¶
func (a *AdapterTable) SetItemTextEx(iItem int, pName string, pValue string) bool
数据适配器表_置项文本扩展, 设置项数据.
iItem: 项索引.
pName: 字段称.
pValue: 值.
type AdapterTree ¶
type AdapterTree struct {
// contains filtered or unexported fields
}
数据适配器-树元素.
func (*AdapterTree) AddColumn ¶
func (a *AdapterTree) AddColumn(pName string) int
数据适配器树_添加列, 添加列, 返回索引值.
pName: 字段称.
func (*AdapterTree) DeleteColumnAll ¶
func (a *AdapterTree) DeleteColumnAll() int
数据适配器树_删除列全部, 删除所有列, 并且清空数据.
func (*AdapterTree) DeleteItem ¶
func (a *AdapterTree) DeleteItem(nID int) bool
数据适配器树_删除项, 删除项.
nID: 项ID.
func (*AdapterTree) GetItemImage ¶
func (a *AdapterTree) GetItemImage(nID int, iColumn int) int
数据适配器树_取项图片, 获取项内容, 返回图片句柄.
nID: 项ID.
iColumn: 列索引.
func (*AdapterTree) GetItemImageEx ¶
func (a *AdapterTree) GetItemImageEx(nID int, pName string) int
数据适配器树_取项图片扩展, 获取项内容, 返回图片句柄.
nID: 项ID.
pName: 字段称.
func (*AdapterTree) GetItemText ¶
func (a *AdapterTree) GetItemText(nID int, iColumn int) string
数据适配器树_取项文本, 获取项文本内容.
nID: 项ID.
iColumn: 列索引.
func (*AdapterTree) GetItemTextEx ¶
func (a *AdapterTree) GetItemTextEx(nID int, pName string) string
数据适配器树_取项文本扩展, 获取项文本内容.
nID: 项ID.
pName: 字段称.
func (*AdapterTree) InsertItemImage ¶
func (a *AdapterTree) InsertItemImage(hImage int, nParentID int, insertID int) int
数据适配器树_插入项图片, 插入项, 数据填充到第一列, 返回项ID值.
hImage: 图片句柄.
nParentID: 父ID.
insertID: 插入位置ID.
func (*AdapterTree) InsertItemImageEx ¶
数据适配器树_插入项图片扩展, 插入项, 数据填充到指定列, 返回项ID值.
pName: 字段称.
hImage: 图片句柄.
nParentID: 父ID.
insertID: 插入位置ID.
func (*AdapterTree) InsertItemText ¶
func (a *AdapterTree) InsertItemText(pValue string, nParentID int, insertID int) int
数据适配器树_插入项文本, 插入项, 数据填充到第一列, 返回项ID值.
pValue: 值.
nParentID: 父ID.
insertID: 插入位置ID.
func (*AdapterTree) InsertItemTextEx ¶
func (a *AdapterTree) InsertItemTextEx(pName string, pValue string, nParentID int, insertID int) int
数据适配器树_插入项文本扩展, 插入项, 数据填充到指定列, 返回项ID值.
pName: 字段称.
pValue: 值.
nParentID: 父ID.
insertID: 插入位置ID.
func (*AdapterTree) SetColumn ¶
func (a *AdapterTree) SetColumn(pColName string) int
数据适配器树_置列, 设置列, 返回列数量.
pColName: 列名, 列名, 多个列名用逗号分开.
func (*AdapterTree) SetItemImage ¶
func (a *AdapterTree) SetItemImage(nID int, iColumn int, hImage int) bool
数据适配器树_置项图片, 设置项数据.
nID: 项ID.
iColumn: 列索引.
hImage: 图片句柄.
func (*AdapterTree) SetItemImageEx ¶
func (a *AdapterTree) SetItemImageEx(nID int, pName string, hImage int) bool
数据适配器树_置项图片扩展, 设置项内容.
nID: 项ID.
pName: 字段称.
hImage: 图片句柄.
func (*AdapterTree) SetItemText ¶
func (a *AdapterTree) SetItemText(nID int, iColumn int, pValue string) bool
数据适配器树_置项文本, 设置项数据.
nID: 项ID.
iColumn: 列索引.
pValue: 值.
func (*AdapterTree) SetItemTextEx ¶
func (a *AdapterTree) SetItemTextEx(nID int, pName string, pValue string) bool
数据适配器树_置项文本扩展, 设置项文件内容.
nID: 项ID.
pName: 字段称.
pValue: 值.