widget

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 2 Imported by: 66

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button struct {
	Element

	HEle int
}

func NewButton

func NewButton(x int, y int, cx int, cy int, pName string, hParent int) *Button

按钮_创建 x: 按钮x坐标 y: 按钮y坐标 cx: 宽度 cy: 高度 pName: 标题 hParent: 父为窗口句柄或元素句柄.

func (*Button) AddAnimationFrame

func (b *Button) AddAnimationFrame(hImage int, uElapse int) int

按钮_添加动画帧 hImage: 图片句柄 uElapse: 图片帧延时, 单位毫秒.

func (*Button) AddBkBorder

func (b *Button) AddBkBorder(nState int, color int, alpha uint8, width int) int

按钮_添加背景边框, 添加背景内容边框. nState: 按钮状态, Button_State_ color: RGB颜色. alpha: 透明度. width: 线宽.

func (*Button) AddBkFill

func (b *Button) AddBkFill(nState int, color int, alpha uint8) int

按钮_添加填充背景, 添加背景内容填充 nState: 按钮状态, Button_State_ color: RGB颜色. alpha: 透明度.

func (*Button) AddBkImage

func (b *Button) AddBkImage(nState int, hImage int) int

按钮_添加背景图片 nState: 按钮状态, Button_State_ hImage: 图片句柄.

func (*Button) ClearBkInfo

func (b *Button) ClearBkInfo() int

按钮_清空背景对象, 清空背景内容; 如果背景没有内容,将使用系统默认内容,以便保证背景正确

func (*Button) EnableAnimation

func (b *Button) EnableAnimation(bEnable bool, bLoopPlay bool) int

按钮_启用动画, 开始或关闭图片动画的播放 bEnable: 开始播放动画TRUE, 关闭播放动画FALSE. bLoopPlay: 是否循环播放.

func (*Button) Event_BnClick added in v0.0.2

func (b *Button) Event_BnClick(pFun func(pbHandled *bool) int) bool

事件_按钮被单击 pFun: 事件函数指针.

func (*Button) Event_BnClick1 added in v0.0.2

func (b *Button) Event_BnClick1(pFun func(hEle int, pbHandled *bool) int) bool

事件_按钮被单击1 pFun: 事件函数指针.

func (*Button) GetBindEle

func (b *Button) GetBindEle() int

按钮_取绑定元素, 返回: 绑定的元素句柄

func (*Button) GetBkInfoCount

func (b *Button) GetBkInfoCount() int

按钮_取背景对象数量, 获取背景内容数量, 成功返回背景内容数量, 否则返回: XC_ID_ERROR

func (*Button) GetGroupID

func (b *Button) GetGroupID() int

按钮_取组ID

func (*Button) GetIcon

func (b *Button) GetIcon(nType int) int

按钮_取图标, 返回图标句柄 nType: 图标类型, 0:默认图标, 1:禁用状态图标.

func (*Button) GetState

func (b *Button) GetState() int

按钮_取状态, 返回: Common_State3_

func (*Button) GetStateEx

func (b *Button) GetStateEx() int

按钮_取状态扩展, 返回: Button_State_

func (*Button) GetStyle

func (b *Button) GetStyle() int

按钮_取样式, 返回: Button_Style_

func (*Button) GetText

func (b *Button) GetText() string

按钮_取文本

func (*Button) GetTextAlign

func (b *Button) GetTextAlign() int

按钮_取文本对齐方式, 返回: TextFormatFlag_ , TextAlignFlag_ , TextTrimming_

func (*Button) GetType

func (b *Button) GetType() int

按钮_取类型, 获取按钮功能类型, 返回: Button_Type_

func (*Button) IsCheck

func (b *Button) IsCheck() bool

按钮_判断选中, 是否选中状态

func (*Button) SetBindEle

func (b *Button) SetBindEle(hBindEle int) int

按钮_置绑定元素 hBindEle: 将要绑定的元素.

func (*Button) SetCheck

func (b *Button) SetCheck(bCheck bool) bool

按钮_置选中, 设置选中状态 bCheck: 是否选中.

func (*Button) SetGroupID

func (b *Button) SetGroupID(nID int) int

按钮_置组ID nID: 组ID.

func (*Button) SetIcon

func (b *Button) SetIcon(hImage int) int

按钮_置图标 hImage: 图片句柄.

func (*Button) SetIconAlign

func (b *Button) SetIconAlign(align int) int

按钮_置图标对齐 align: 对齐方式, Button_Icon_Align_

func (*Button) SetIconDisable

func (b *Button) SetIconDisable(hImage int) int

按钮_置禁用图标 hImage: 图片句柄.

func (*Button) SetIconSpace

func (b *Button) SetIconSpace(size int) int

按钮_置图标间隔, 设置图标与文本间隔大小 size: 间隔大小.

func (*Button) SetOffset

func (b *Button) SetOffset(x int, y int) int

按钮_置偏移, 设置按钮文本坐标偏移量 x: 偏移量. y: 偏移量.

func (*Button) SetOffsetIcon

func (b *Button) SetOffsetIcon(x int, y int) int

按钮_置图标偏移, 设置按钮图标坐标偏移量 x: 偏移量. y: 偏移量.

func (*Button) SetState

func (b *Button) SetState(nState int) int

按钮_置状态 nState: 按钮状态, Common_State3_

func (*Button) SetStyle

func (b *Button) SetStyle(nStyle int) int

按钮_置样式 nStyle: 样式, Button_Style_

func (*Button) SetText

func (b *Button) SetText(pName string) int

按钮_置文本 pName: 文本内容.

func (*Button) SetTextAlign

func (b *Button) SetTextAlign(nFlags int) int

按钮_置文本对齐 nFlags: 对齐方式, TextFormatFlag_ , TextAlignFlag_ , TextTrimming_

func (*Button) SetType

func (b *Button) SetType(nType int) int

按钮_置类型, 设置按钮功能类型. nType: 按钮类型, Button_Type_

func (*Button) SetTypeEx

func (b *Button) SetTypeEx(nType int) int

按钮_置类型扩展, 设置按钮类型并自动修改样式和文本对齐方式. nType: 按钮类型, Button_Type_

type ComboBox

type ComboBox struct {
	Element

	HEle int
}

func NewComboBox

func NewComboBox(x int, y int, cx int, cy int, hParent int) *ComboBox

组合框_创建, 返回元素句柄 x: 元素x坐标. y: 元素y坐标. cx: 宽度. cy: 高度. hParent: 父是窗口资源句柄或UI元素资源句柄.如果是窗口资源句柄将被添加到窗口

func (*ComboBox) AddBkBorder

func (c *ComboBox) AddBkBorder(nState int, color int, alpha uint8, width int) int

组合框_添加背景边框, 添加背景内容边框 nState: 按钮状态. color: RGB颜色. alpha: 透明度. width: 线宽.

func (*ComboBox) AddBkFill

func (c *ComboBox) AddBkFill(nState int, color int, alpha uint8) int

组合框_添加背景填充, 添加背景内容填充 nState: 按钮状态. color: RGB颜色. alpha: 透明度.

func (*ComboBox) AddBkImage

func (c *ComboBox) AddBkImage(nState int, hImage int) int

组合框_添加背景图片, 添加背景内容图片 nState: 按钮状态. hImage: 图片句柄.

func (*ComboBox) AddItemImage

func (c *ComboBox) AddItemImage(hImage int) int

组合框_添加项图片, 返回项索引 hImage: 图片句柄

func (*ComboBox) AddItemImageEx

func (c *ComboBox) AddItemImageEx(pName string, hImage int) int

组合框_添加项图片扩展, 返回项索引 pName: 字段名 hImage: 图片句柄

func (*ComboBox) AddItemText

func (c *ComboBox) AddItemText(pText string) int

组合框_添加项文本, 返回项索引 pText:

func (*ComboBox) AddItemTextEx

func (c *ComboBox) AddItemTextEx(pName string, pText string) int

组合框_添加项文本扩展, 返回项索引 pName: 字段名 pText: 文本

func (*ComboBox) BindAdapter

func (c *ComboBox) BindAdapter(hAdapter int) int

组合框_绑定数据适配器 hAdapter: 适配器句柄.

func (*ComboBox) ClearBkInfo

func (c *ComboBox) ClearBkInfo() int

组合框_清空背景对象, 清空背景内容; 如果背景没有内容, 将使用系统默认内容, 以便保证背景正确

func (*ComboBox) CreateAdapter

func (c *ComboBox) CreateAdapter() int

组合框_创建数据适配器, 返回数据适配器句柄

func (*ComboBox) DeleteColumnAll

func (c *ComboBox) DeleteColumnAll() int

组合框_删除列全部

func (*ComboBox) DeleteItem

func (c *ComboBox) DeleteItem(iItem int) bool

组合框_删除项 iItem: 项索引

func (*ComboBox) DeleteItemAll

func (c *ComboBox) DeleteItemAll() int

组合框_删除项全部

func (*ComboBox) DeleteItemEx

func (c *ComboBox) DeleteItemEx(iItem int, nCount int) bool

组合框_删除项扩展 iItem: 项索引 nCount: 删除数量

func (*ComboBox) EnableDrawButton

func (c *ComboBox) EnableDrawButton(bEnable bool) int

组合框_启用绘制下拉按钮, 是否绘制下拉按钮 bEnable: 是否绘制.

func (*ComboBox) EnableDropHeightFixed

func (c *ComboBox) EnableDropHeightFixed(bEnable bool) int

组合框_启用下拉列表高度固定大小, 启用/关闭下拉列表高度固定大小 bEnable: 是否启用.

func (*ComboBox) EnableEdit

func (c *ComboBox) EnableEdit(bEdit bool) int

组合框_启用编辑, 启用可编辑显示的文本内容 bEdit: TRUE可编辑

func (*ComboBox) GetAdapter

func (c *ComboBox) GetAdapter() int

组合框_取数据适配器, 获取绑定的数据适配器

func (*ComboBox) GetBkInfoCount

func (c *ComboBox) GetBkInfoCount() int

组合框_取背景对象数量, 成功返回背景内容数量, 否则返回: XC_ID_ERROR

func (*ComboBox) GetButtonRect

func (c *ComboBox) GetButtonRect(pRect *xc.RECT) int

组合框_取下拉按钮坐标 pRect: 坐标.

func (*ComboBox) GetCount

func (c *ComboBox) GetCount() int

组合框_取项数量

func (*ComboBox) GetCountColumn

func (c *ComboBox) GetCountColumn() int

组合框_取列数量

func (*ComboBox) GetDropHeight

func (c *ComboBox) GetDropHeight() int

组合框_取下拉列表高度

func (*ComboBox) GetItemFloat

func (c *ComboBox) GetItemFloat(iItem int, iColumn int, pOutValue *float32) bool

组合框_取项浮点值 iItem: 项索引 iColumn: 列索引 pOutValue: 接收返回浮点值

func (*ComboBox) GetItemFloatEx

func (c *ComboBox) GetItemFloatEx(iItem int, pName string, pOutValue *float32) bool

组合框_取项浮点值扩展 iItem: 项索引 pName: 字段名 pOutValue: 接收返回浮点值

func (*ComboBox) GetItemImage

func (c *ComboBox) GetItemImage(iItem int, iColumn int) int

组合框_取项图片 iItem: 项索引 iColumn: 列索引

func (*ComboBox) GetItemImageEx

func (c *ComboBox) GetItemImageEx(iItem int, pName string) int

组合框_取项图片扩展 iItem: 项索引 pName: 字段名

func (*ComboBox) GetItemInt

func (c *ComboBox) GetItemInt(iItem int, iColumn int, pOutValue *int) bool

组合框_取项整数值 iItem: 项索引 iColumn: 列索引 pOutValue: 接收返回整数值

func (*ComboBox) GetItemIntEx

func (c *ComboBox) GetItemIntEx(iItem int, pName string, pOutValue *int) bool

组合框_取项整数值扩展 iItem: 项索引 pName: 字段名 pOutValue: 接收返回整数值

func (*ComboBox) GetItemText

func (c *ComboBox) GetItemText(iItem int, iColumn int) string

组合框_取项文本 iItem: 项索引 iColumn: 列索引

func (*ComboBox) GetItemTextEx

func (c *ComboBox) GetItemTextEx(iItem int, pName string) string

组合框_取项文本扩展 iItem: 项索引 pName: 字段名

func (*ComboBox) GetSelItem

func (c *ComboBox) GetSelItem() int

组合框_取选择项, 获取组合框下拉列表中选择项索引

func (*ComboBox) GetState

func (c *ComboBox) GetState() int

组合框_取状态, 返回: ComboBox_State_

func (*ComboBox) InsertItemImage

func (c *ComboBox) InsertItemImage(iItem int, hImage int) int

组合框_插入项图片, 返回项索引 iItem: 项索引 hImage: 图片句柄

func (*ComboBox) InsertItemImageEx

func (c *ComboBox) InsertItemImageEx(iItem int, pName string, hImage int) int

组合框_插入项图片扩展, 返回项索引 iItem: 项索引 pName: 字段名 hImage: 图片句柄

func (*ComboBox) InsertItemText

func (c *ComboBox) InsertItemText(iItem int, pText string) int

组合框_插入项文本, 返回项索引 iItem: 项索引 pText: 文本

func (*ComboBox) InsertItemTextEx

func (c *ComboBox) InsertItemTextEx(iItem int, pName string, pText string) int

组合框_插入项文本扩展, 返回项索引 iItem: 项索引 pName: 字段名 pText: 文本

func (*ComboBox) SetBindName

func (c *ComboBox) SetBindName(pName string) int

组合框_置绑定名称 pName: 字段名

func (*ComboBox) SetButtonSize

func (c *ComboBox) SetButtonSize(size int) int

组合框_置下拉按钮大小 size: 大小.

func (*ComboBox) SetComboBoxSelectEnd

func (c *ComboBox) SetComboBoxSelectEnd(pFun func(iItem int, pbHandled *bool) int) bool

组合框_下拉列表项选择完成事件, 编辑框内容已经改变 pFun: 事件函数指针.

func (*ComboBox) SetComboBoxSelectEnd1

func (c *ComboBox) SetComboBoxSelectEnd1(pFun func(hEle int, iItem int, pbHandled *bool) int) bool

组合框_下拉列表项选择完成事件, 编辑框内容已经改变 pFun: 事件函数指针.

func (*ComboBox) SetDropHeight

func (c *ComboBox) SetDropHeight(height int) int

组合框_置下拉列表高度 height: 高度, -1自动计算高度

func (*ComboBox) SetItemFloat

func (c *ComboBox) SetItemFloat(iItem int, iColumn int, fFloat float32) bool

组合框_置项浮点值 iItem: 项索引 iColumn: 列索引 fFloat: 浮点数

func (*ComboBox) SetItemFloatEx

func (c *ComboBox) SetItemFloatEx(iItem int, pName string, fFloat float32) bool

组合框_置项浮点值扩展 iItem: 项索引 pName: 字段名 fFloat: 浮点数

func (*ComboBox) SetItemImage

func (c *ComboBox) SetItemImage(iItem int, iColumn int, hImage int) bool

组合框_置项图片 iItem: 项索引 iColumn: 列索引 hImage: 图片句柄

func (*ComboBox) SetItemImageEx

func (c *ComboBox) SetItemImageEx(iItem int, pName string, hImage int) bool

组合框_置项图片扩展 iItem: 项索引 pName: 字段名 hImage: 图片句柄

func (*ComboBox) SetItemInt

func (c *ComboBox) SetItemInt(iItem int, iColumn int, nValue int) bool

组合框_置项整数值 iItem: 项索引 iColumn: 列索引 nValue: 整数值

func (*ComboBox) SetItemIntEx

func (c *ComboBox) SetItemIntEx(iItem int, pName string, nValue int) bool

组合框_置项指数值扩展 iItem: 项索引 pName: 字段名 nValue: 整数值

func (*ComboBox) SetItemTemplateXML

func (c *ComboBox) SetItemTemplateXML(pXmlFile string) int

组合框_置项模板, 设置下拉列表项模板文件 pXmlFile: 项模板文件.

func (*ComboBox) SetItemTemplateXMLFromString

func (c *ComboBox) SetItemTemplateXMLFromString(pStringXML string) int

组合框_置项模板从字符串, 设置下拉列表项模板 pStringXML: 字符串指针.

func (*ComboBox) SetItemText

func (c *ComboBox) SetItemText(iItem int, iColumn int, pText string) bool

组合框_置项文本 iItem: 项索引 iColumn: 列索引 pText: 文本

func (*ComboBox) SetItemTextEx

func (c *ComboBox) SetItemTextEx(iItem int, pName string, pText string) bool

组合框_置项文本扩展 iItem: 项索引 pName: 字段名 pText: 文本

func (*ComboBox) SetSelItem

func (c *ComboBox) SetSelItem(iIndex int) bool

组合框_置选择项 iIndex: 项索引.

type Edit

type Edit struct {
	Element

	HEle int
}

func NewEdit

func NewEdit(x int, y int, cx int, cy int, hParent int) *Edit

编辑框_创建, 返回元素句柄 x: 元素x坐标 y: 元素y坐标 cx: 宽度 cy: 高度 hParent: 父为窗口句柄或元素句柄

func NewEditEx

func NewEditEx(x int, y int, cx int, cy int, nType int, hParent int) *Edit

编辑框_创建扩展, 返回元素句柄 x: 元素x坐标 y: 元素y坐标 cx: 宽度 cy: 高度 nType: 类型, Edit_Type_ hParent: 父为窗口句柄或元素句柄

func (*Edit) AddByStyle

func (e *Edit) AddByStyle(iStyle int) int

编辑框_添加对象从样式, 当样式为图片时有效 iStyle: 样式索引

func (*Edit) AddChatBegin

func (e *Edit) AddChatBegin(hImageAvatar int, hImageBubble int, nFlag int) int

编辑框_添加气泡开始, 当前行开始 hImageAvatar: 头像 hImageBubble: 气泡背景 nFlag: 标志, Chat_Flag_

func (*Edit) AddChatEnd

func (e *Edit) AddChatEnd() int

编辑框_添加气泡结束, 当前行结束

func (*Edit) AddData

func (e *Edit) AddData(pData *xc.Edit_Data_Copy_, styleTable []uint16, nStyleCount int) int

编辑框_添加数据 pData: 数据结构 styleTable: 样式表 nStyleCount: 样式数量

func (*Edit) AddObject

func (e *Edit) AddObject(hObj int) int

编辑框_添加对象, 例如: 字体, 图片, UI对象, 返回样式索引 hObj: 对象句柄

func (*Edit) AddStyle

func (e *Edit) AddStyle(hFont_image_Obj int, color int, bColor bool) int

编辑框_添加样式, 返回样式索引 hFont_image_Obj: 字体 color: 颜色 bColor: 是否使用颜色

func (*Edit) AddStyleEx

func (e *Edit) AddStyleEx(fontName string, fontSize int, fontStyle int, color int, bColor bool) int

编辑框_添加样式扩展, 返回样式索引 fontName: 字体名称 fontSize: 字体大小 fontStyle: 字体样式 color: 颜色 bColor: 是否使用颜色

func (*Edit) AddText

func (e *Edit) AddText(pString string) int

编辑框_添加文本 pString: 字符串

func (*Edit) AddTextEx

func (e *Edit) AddTextEx(pString string, iStyle int) int

编辑框_添加文本扩展 pString: 字符串 iStyle: 样式索引

func (*Edit) AutoScroll

func (e *Edit) AutoScroll() bool

编辑框_自动滚动, 视图自动滚动到当前插入符位置

func (*Edit) AutoScrollEx

func (e *Edit) AutoScrollEx(iRow int, iCol int) bool

编辑框_自动滚动扩展, 视图自动滚动到指定位置 iRow: 行索引 iCol: 列索引

func (*Edit) CancelSelect

func (e *Edit) CancelSelect() bool

编辑框_取消选择

func (*Edit) ClipboardCopy

func (e *Edit) ClipboardCopy() bool

编辑框_剪贴板复制

func (*Edit) ClipboardCut

func (e *Edit) ClipboardCut() bool

编辑框_剪贴板剪切

func (*Edit) ClipboardPaste

func (e *Edit) ClipboardPaste() bool

编辑框_剪贴板粘贴

func (*Edit) Delete

func (e *Edit) Delete(iStartRow int, iStartCol int, iEndRow int, iEndCol int) bool

编辑框_删除, 删除指定范围内容 iStartRow: 起始行索引 iStartCol: 起始行列索引 iEndRow: 结束行索引 iEndCol: 结束行列索引

func (*Edit) DeleteRow

func (e *Edit) DeleteRow(iRow int) bool

编辑框_删除行 iRow: 行索引

func (*Edit) DeleteSelect

func (e *Edit) DeleteSelect() bool

编辑框_删除选择内容

func (*Edit) EnableAutoCancelSel

func (e *Edit) EnableAutoCancelSel(bEnable bool) int

编辑框_启用自动取消选择, 当失去焦点时自动取消选择 bEnable: 是否启用

func (*Edit) EnableAutoSelAll

func (e *Edit) EnableAutoSelAll(bEnable bool) int

编辑框_启用自动选择, 当获得焦点时,自动选择所有内容 bEnable: 是否启用

func (*Edit) EnableAutoWrap

func (e *Edit) EnableAutoWrap(bEnable bool) int

编辑框_启用自动换行 bEnable: 是否启用

func (*Edit) EnableMultiLine

func (e *Edit) EnableMultiLine(bEnable bool) int

编辑框_启用多行 bEnable:

func (*Edit) EnablePassword

func (e *Edit) EnablePassword(bEnable bool) int

编辑框_启用密码, 启用密码模式(只支持默认类型编辑框) bEnable: 是否启用

func (*Edit) EnableReadOnly

func (e *Edit) EnableReadOnly(bEnable bool) int

编辑框_启用只读 bEnable: 是否启用

func (*Edit) FreeData

func (e *Edit) FreeData(pData *xc.Edit_Data_Copy_) int

编辑框_释放数据

func (*Edit) GetAt

func (e *Edit) GetAt(iRow int, iCol int) int

编辑框_取字符, 返回指定位置字符 iRow: 行索引 iCol: 列索引

func (*Edit) GetCurCol

func (e *Edit) GetCurCol() int

编辑框_取当前列, 返回列索引

func (*Edit) GetCurPos

func (e *Edit) GetCurPos() int

编辑框_取当前位置点, 返回范围位置点

func (*Edit) GetCurRow

func (e *Edit) GetCurRow() int

编辑框_取当前行, 返回行索引

func (*Edit) GetData

func (e *Edit) GetData() xc.Edit_Data_Copy_

编辑框_取数据, 包含文本或非文本内容

func (*Edit) GetLength

func (e *Edit) GetLength() int

编辑框_取内容长度, 包含非文本内容

func (*Edit) GetLengthRow

func (e *Edit) GetLengthRow(iRow int) int

编辑框_取内容长度行, 包含非文本内容 iRow: 行索引

func (*Edit) GetPoint

func (e *Edit) GetPoint(iRow int, iCol int, pOut *xc.POINT) int

编辑框_取坐标点 iRow: 行索引 iCol: 列索引 pOut: 接收返回坐标点

func (*Edit) GetRowCount

func (e *Edit) GetRowCount() int

编辑框_取总行数

func (*Edit) GetSelectRange

func (e *Edit) GetSelectRange(pBegin *xc.Position_, pEnd *xc.Position_) bool

编辑框_取选择内容范围 pBegin: 起始位置 pEnd: 结束位置

func (*Edit) GetSelectText

func (e *Edit) GetSelectText(pOut string, nOutLen int) int

未实现 hEle: 元素句柄 pOut: 接收返回文本内容 nOutLen: 接收内存大小

func (*Edit) GetStyleInfo

func (e *Edit) GetStyleInfo(iStyle int, info *xc.Edit_Style_Info_) bool

编辑框_取样式信息 iStyle: 样式索引 info: 返回样式信息

func (*Edit) GetText

func (e *Edit) GetText(pOut string, nOutlen int) int

未实现 hEle: 元素句柄 pOut: 接收文本内存指针 nOutlen: 内存大小

func (*Edit) GetTextRow

func (e *Edit) GetTextRow(iRow int, pOut *string, nOutlen *int) int

未实现 hEle: 元素句柄 iRow: 行索引 pOut: 接收文本内存指针 nOutlen: 接收文本内存块长度

func (*Edit) GetVisibleRowRange

func (e *Edit) GetVisibleRowRange(piStart *int, piEnd *int) int

编辑框_取可视行范围 piStart: 起始行索引 piEnd: 结束行索引

func (*Edit) InsertText

func (e *Edit) InsertText(iRow int, iCol int, pString string) int

编辑框_插入文本 iRow: 行索引 iCol: 列索引 pString: 字符串

func (*Edit) InsertTextUser

func (e *Edit) InsertTextUser(pString string) int

编辑框_插入文本模拟用户操作, 自动刷新UI, 支持撤销/恢复 pString: 字符串

func (*Edit) IsAutoWrap

func (e *Edit) IsAutoWrap() bool

编辑框_是否自动换行

func (*Edit) IsEmpty

func (e *Edit) IsEmpty() bool

编辑框_判断为空

func (*Edit) IsInSelect

func (e *Edit) IsInSelect(iRow int, iCol int) bool

编辑框_是否在选择区域 iRow: 行索引 iCol: 列索引

func (*Edit) IsMultiLine

func (e *Edit) IsMultiLine() bool

编辑框_是否多行

func (*Edit) IsPassword

func (e *Edit) IsPassword() bool

编辑框_是否密码

func (*Edit) IsReadOnly

func (e *Edit) IsReadOnly() bool

编辑框_是否只读

func (*Edit) PositionToInfo

func (e *Edit) PositionToInfo(iPos int, pInfo *xc.Position_) int

编辑框_转换位置, 转换位置点到行列 iPos: 位置点 pInfo: 行列

func (*Edit) Redo

func (e *Edit) Redo() bool

编辑框_恢复

func (*Edit) SelectAll

func (e *Edit) SelectAll() bool

编辑框_选择全部

func (*Edit) SetCaretColor

func (e *Edit) SetCaretColor(color int) int

编辑框_置插入符颜色 color: 颜色

func (*Edit) SetCaretWidth

func (e *Edit) SetCaretWidth(nWidth int) int

编辑框_置插入符宽度 nWidth: 宽度

func (*Edit) SetChatIndentation

func (e *Edit) SetChatIndentation(nIndentation int) int

编辑框_置气泡缩进, 设置聊天气泡内容缩进 nIndentation: 缩进值

func (*Edit) SetCurPos

func (e *Edit) SetCurPos(iRow int, iCol int) int

编辑框_置当前位置 iRow: 行索引 iCol: 列索引

func (*Edit) SetCurStyle

func (e *Edit) SetCurStyle(iStyle int) int

编辑框_置当前样式 iStyle: 样式索引

func (*Edit) SetDefaultText

func (e *Edit) SetDefaultText(pString string) int

编辑框_置默认文本, 当内容为空时, 显示默认文本 pString: 文本内容

func (*Edit) SetDefaultTextColor

func (e *Edit) SetDefaultTextColor(color int, alpha uint8) int

编辑框_置默认文本颜色 color: RGB颜色值 alpha: 透明度

func (*Edit) SetPasswordCharacter

func (e *Edit) SetPasswordCharacter(ch int) int

编辑框_置密码字符 ch: 字符

func (*Edit) SetRowHeight

func (e *Edit) SetRowHeight(nHeight int) int

编辑框_置默认行高 nHeight: 行高

func (*Edit) SetRowHeightEx

func (e *Edit) SetRowHeightEx(iRow int, nHeight int) int

编辑框_置指定行高度, 类型为 Edit_Type_Richedit 支持指定不同行高 iRow: 行索引 nHeight: 高度

func (*Edit) SetSelect

func (e *Edit) SetSelect(iStartRow int, iStartCol int, iEndRow int, iEndCol int) bool

编辑框_置选择 iStartRow: 起始行索引 iStartCol: 起始行列索引 iEndRow: 结束行索引 iEndCol: 结束行列索引

func (*Edit) SetSelectBkColor

func (e *Edit) SetSelectBkColor(color int, alpha uint8) int

编辑框_置选择背景颜色 color: RGB颜色 alpha: 透明度

func (*Edit) SetTabSpace

func (e *Edit) SetTabSpace(nSpace int) int

编辑框_置TAB空格 nSpace: 空格数量

func (*Edit) SetText

func (e *Edit) SetText(pString string) int

编辑框_置文本 pString: 字符串

func (*Edit) SetTextAlign

func (e *Edit) SetTextAlign(align int) int

编辑框_置文本对齐, 单行模式下有效 align: 对齐方式, Edit_TextAlign_Flag_

func (*Edit) SetTextInt

func (e *Edit) SetTextInt(nValue int) int

编辑框_置文本整数 nValue: 整数值

func (*Edit) Undo

func (e *Edit) Undo() bool

编辑框_撤销

type Editor

type Editor struct {
	Element

	HEle int
}

func NewEditor

func NewEditor(x int, y int, cx int, cy int, hParent int) *Editor

代码编辑框_创建, 返回元素句柄 x: 元素x坐标. y: 元素y坐标. cx: 宽度. cy: 高度. hParent: 父为窗口句柄或元素句柄.

func (*Editor) AddConst

func (e *Editor) AddConst(pKey string) int

代码编辑框_添加自动匹配字符串 pKey: 字符串

func (*Editor) AddExcludeDefVarKeyword

func (e *Editor) AddExcludeDefVarKeyword(pKeyword string) int

代码编辑框_添加排除定义变量关键字, 排除定义变量的关键字, 用于排除定义变量, 因为定义变量禁用自动匹配; 此关键字不加入自动匹配,仅用于排除定义变量 pKeyword: 字符串

func (*Editor) AddFunction

func (e *Editor) AddFunction(pKey string) int

代码编辑框_添加自动匹配函数 pKey: 字符串

func (*Editor) AddKeyword

func (e *Editor) AddKeyword(pKey string, iStyle int) int

代码编辑框_添加关键字 pKey: 字符串 iStyle: 样式

func (*Editor) ClearBreakpoint

func (e *Editor) ClearBreakpoint() int

代码编辑框_清空断点

func (*Editor) EnableAutoMatchSpaseSelect

func (e *Editor) EnableAutoMatchSpaseSelect(bEnable bool) int

代码编辑框_启用空格选择自动匹配项 bEnable: 是否启用

func (*Editor) Expand

func (e *Editor) Expand(iRow int, bExpand bool) int

代码编辑框_展开指定行 iRow: 行索引 bExpand: 是否展开

func (*Editor) ExpandAll

func (e *Editor) ExpandAll(bExpand bool) int

代码编辑框_展开全部 bExpand: 是否展开

func (*Editor) ExpandEx

func (e *Editor) ExpandEx(iRow int) int

代码编辑框_展开扩展, 完全展开指定行, 例如:行包含在折叠内容中, 将其展开 iRow: 行索引

func (*Editor) GetBreakpointCount

func (e *Editor) GetBreakpointCount() int

代码编辑框_取断点数量

func (*Editor) GetBreakpoints

func (e *Editor) GetBreakpoints(aPoints int, nCount int) int

代码编辑框_取全部断点, 返回实际获取断点数量 aPoints: 接收断点数组 nCount: 数组大小

func (*Editor) GetColor

func (e *Editor) GetColor(pInfo *xc.Editor_Color_) int

代码编辑框_取颜色信息 pInfo: 颜色信息结构体指针

func (*Editor) GetDepth

func (e *Editor) GetDepth(iRow int) int

代码编辑框_获取深度 iRow: 行索引

func (*Editor) IsBreakpoint

func (e *Editor) IsBreakpoint(iRow int) bool

代码编辑框_判断断点 iRow: 行索引

func (*Editor) RemoveBreakpoint

func (e *Editor) RemoveBreakpoint(iRow int) bool

代码编辑框_移除断点 iRow: 行索引

func (*Editor) SetBreakpoint

func (e *Editor) SetBreakpoint(iRow int, bActivate bool) bool

代码编辑框_置断点 iRow: 行索引 bActivate: 是否激活

func (*Editor) SetColor

func (e *Editor) SetColor(pInfo *xc.Editor_Color_) int

代码编辑框_置颜色 pInfo: 颜色信息结构体指针

func (*Editor) SetCurRow

func (e *Editor) SetCurRow(iRow int) int

代码编辑框_设置当前行, 跳过收缩行 iRow: 行索引

func (*Editor) SetRunRow

func (e *Editor) SetRunRow(iRow int) bool

代码编辑框_置当前运行 iRow: 行索引

func (*Editor) SetStyleClass

func (e *Editor) SetStyleClass(iStyle int) int

代码编辑框_置类样式 iStyle: 样式

func (*Editor) SetStyleComment

func (e *Editor) SetStyleComment(iStyle int) int

代码编辑框_置注释样式 iStyle: 样式

func (*Editor) SetStyleDataType

func (e *Editor) SetStyleDataType(iStyle int) int

代码编辑框_置数据类型样式 iStyle: 样式

func (*Editor) SetStyleFunction

func (e *Editor) SetStyleFunction(iStyle int) int

代码编辑框_置函数样式 iStyle: 样式

func (*Editor) SetStyleKeyword

func (e *Editor) SetStyleKeyword(iStyle int) int

代码编辑框_置常量样式 iStyle: 样式

func (*Editor) SetStyleMacro

func (e *Editor) SetStyleMacro(iStyle int) int

代码编辑框_置宏样式 iStyle: 样式

func (*Editor) SetStyleNumber

func (e *Editor) SetStyleNumber(iStyle int) int

代码编辑框_置数字样式 iStyle: 样式

func (*Editor) SetStyleString

func (e *Editor) SetStyleString(iStyle int) int

代码编辑框_置字符串样式 iStyle: 样式

func (*Editor) SetStyleVar

func (e *Editor) SetStyleVar(iStyle int) int

代码编辑框_置变量样式 iStyle: 样式

func (*Editor) ToExpandRow

func (e *Editor) ToExpandRow(iRow int) int

代码编辑框_转换到展开行, 跳过收缩行 iRow: 行索引

type Element

type Element struct {
	HEle_ int
}

func NewElement

func NewElement(x int, y int, cx int, cy int, hParent int) *Element

元素_创建, 创建基础元素 y: 元素y坐标. cx: 宽度. cy: 高度. hParent: 父为窗口句柄或元素句柄.

func (*Element) AddBkBorder

func (e *Element) AddBkBorder(color int, alpha uint8, width int) int

元素_添加背景边框, 添加背景内容边框 color: RGB颜色. alpha: 透明度. width: 线宽.

func (*Element) AddBkFill

func (e *Element) AddBkFill(color int, alpha uint8) int

元素_添加背景填充, 添加背景内容填充 color: RGB颜色. alpha: 透明度.

func (*Element) AddBkImage

func (e *Element) AddBkImage(hImage int) int

元素_添加背景图片, 添加背景内容图片 hImage: 图片句柄.

func (*Element) AddChild

func (e *Element) AddChild(hChild int) bool

元素_添加子对象 hChild: 要添加的子元素句柄或形状对象句柄.

func (*Element) AdjustLayout

func (e *Element) AdjustLayout(nAdjustNo int) int

元素_调整布局 nAdjustNo:

func (*Element) AdjustLayoutEx

func (e *Element) AdjustLayoutEx(nFlags int, nAdjustNo int) int

元素_调整布局扩展 nFlags: 调整标识 nAdjustNo:

func (*Element) ClearBkInfo

func (e *Element) ClearBkInfo() int

元素_清空背景对象, 清空背景内容; 如果背景没有内容, 将使用系统默认内容, 以便保证背景正确

func (*Element) Destroy

func (e *Element) Destroy() int

元素_销毁

func (*Element) DrawEle

func (e *Element) DrawEle(hDraw int) int

元素_绘制, 在自绘事件函数中, 用户手动调用绘制元素, 以便控制绘制顺序 hDraw: 图形绘制句柄.

func (*Element) DrawFocus

func (e *Element) DrawFocus(hDraw int, pRect *xc.RECT) bool

元素_绘制焦点, 绘制元素焦点 hDraw: 图形绘制句柄. pRect: 区域坐标.

func (*Element) Enable

func (e *Element) Enable(bEnable bool) int

元素_启用, 启用或禁用元素 bEnable: 启用或禁用.

func (*Element) EnableBkTransparent

func (e *Element) EnableBkTransparent(bEnable bool) int

元素_启用背景透明 bEnable: 是否启用.

func (*Element) EnableCanvas

func (e *Element) EnableCanvas(bEnable bool) int

元素_启用画布, 启用或禁用背景画布; 如果禁用那么将绘制在父的画布之上, 也就是说他没有自己的画布 bEnable: 是否启用.

func (*Element) EnableDrawBorder

func (e *Element) EnableDrawBorder(bEnable bool) int

元素_启用绘制边框, 启用或禁用绘制默认边框 bEnable: 是否启用.

func (*Element) EnableDrawFocus

func (e *Element) EnableDrawFocus(bEnable bool) int

元素_启用绘制焦点 bEnable: 是否启用.

func (*Element) EnableEvent_XE_MOUSEWHEEL

func (e *Element) EnableEvent_XE_MOUSEWHEEL(bEnable bool) int

元素_启用事件_XE_MOUSEWHEEL, 启用接收鼠标滚动事件, 如果禁用那么事件会传递给父元素 bEnable: 是否启用.

func (*Element) EnableEvent_XE_PAINT_END

func (e *Element) EnableEvent_XE_PAINT_END(bEnable bool) int

元素_启用事件_XE_PAINT_END bEnable: 是否启用.

func (*Element) EnableFocus

func (e *Element) EnableFocus(bEnable bool) int

元素_启用焦点, 启用焦点 bEnable: 是否启用.

func (*Element) EnableKeyTab

func (e *Element) EnableKeyTab(bEnable bool) int

元素_启用接收TAB, 启用接收Tab输入 bEnable: 是否启用.

func (*Element) EnableMouseThrough

func (e *Element) EnableMouseThrough(bEnable bool) int

元素_启用鼠标穿透. 启用鼠标穿透, 如果启用, 那么该元素不能接收到鼠标事件, 但是他的子元素不受影响, 任然可以接收鼠标事件 bEnable: 是否启用.

func (*Element) EnableSwitchFocus

func (e *Element) EnableSwitchFocus(bEnable bool) int

元素_启用切换焦点, 启用接受通过键盘切换焦点 bEnable: 是否启用.

func (*Element) EnableTopmost

func (e *Element) EnableTopmost(bTopmost bool) bool

元素_启用置顶, 设置元素置顶. bTopmost: 是否置顶显示

func (*Element) EnableTransparentChannel

func (e *Element) EnableTransparentChannel(bEnable bool) int

元素_启用透明通道, 启用或关闭元素透明通道, 如果启用, 将强制设置元素背景不透明, 默认为启用, 此功能是为了兼容GDI不支持透明通道问题 bEnable: 启用或关闭.

func (*Element) Event_MENU_EXIT added in v0.0.2

func (b *Element) Event_MENU_EXIT(pFun func(pbHandled *bool) int) bool

事件_菜单退出

func (*Element) Event_MENU_POPUP added in v0.0.2

func (b *Element) Event_MENU_POPUP(pFun func(HMENUX int, pbHandled *bool) int) bool

事件_菜单弹出

func (*Element) Event_MENU_SELECT added in v0.0.2

func (b *Element) Event_MENU_SELECT(pFun func(nID int, pbHandled *bool) int) bool

事件_弹出菜单项被选择

func (*Element) GetBkInfoCount

func (e *Element) GetBkInfoCount() int

元素_取背景对象数量, 获取背景内容数量

func (*Element) GetBkManager

func (e *Element) GetBkManager() int

元素_取背景管理器, 获取元素背景管理器

func (*Element) GetBkManagerEx

func (e *Element) GetBkManagerEx() int

元素_取背景管理器扩展, 获取元素背景管理器, 优先从资源中获取

func (*Element) GetBorderSize

func (e *Element) GetBorderSize(pBorder *xc.RECT) int

元素_取边框大小 pBorder: 大小.

func (*Element) GetChildByID

func (e *Element) GetChildByID(nID int) int

元素_取子对象从ID, 获取子对象通过ID, 只检测当前层子对象 nID: 元素ID.

func (*Element) GetChildByIndex

func (e *Element) GetChildByIndex(index int) int

元素_取子对象从索引, 获取子对象通过索引, 只检测当前层子对象 index: 索引.

func (*Element) GetChildCount

func (e *Element) GetChildCount() int

元素_取子对象数量, 获取子对象(UI元素和形状对象)数量, 只检测当前层子对象

func (*Element) GetClientRect

func (e *Element) GetClientRect(pRect *xc.RECT) int

元素_取客户区坐标 pRect: 坐标.

func (*Element) GetContentSize

func (e *Element) GetContentSize(bHorizon bool, pSize *xc.SIZE, cx int, cy int) int

元素_取内容大小 bHorizon: pSize: 返回大小. cx: 宽度 cy: 高度

func (*Element) GetCursor

func (e *Element) GetCursor() int

元素_取光标, 获取元素鼠标光标, 返回光标句柄

func (*Element) GetFocusBorderColor

func (e *Element) GetFocusBorderColor() int

元素_取焦点边框颜色

func (*Element) GetFont

func (e *Element) GetFont() int

元素_取字体

func (*Element) GetFontEx

func (e *Element) GetFontEx() int

元素_取字体扩展, 获取元素字体, 优先从资源中获取

func (*Element) GetHWINDOW

func (e *Element) GetHWINDOW() int

元素_取HWINDOW

func (*Element) GetHWND

func (e *Element) GetHWND() int

元素_取HWND

func (*Element) GetHeight

func (e *Element) GetHeight() int

元素_取高度

func (*Element) GetID

func (e *Element) GetID() int

元素_取ID

func (*Element) GetName

func (e *Element) GetName() int

元素_取名称

func (*Element) GetPadding

func (e *Element) GetPadding(pPadding *xc.RECT) int

元素_取内填充大小 pPadding: 大小.

func (*Element) GetParent

func (e *Element) GetParent() int

元素_取父对象, 获取父对象, 父可能是元素或窗口, 通过此函数可以检查是否有父

func (*Element) GetParentEle

func (e *Element) GetParentEle() int

元素_取父元素

func (*Element) GetRect

func (e *Element) GetRect(pRect *xc.RECT) int

元素_取坐标 pRect: 坐标.

func (*Element) GetRectLogic

func (e *Element) GetRectLogic(pRect *xc.RECT) int

元素_取逻辑坐标, 获取元素坐标, 逻辑坐标, 包含滚动视图偏移 pRect: 坐标.

func (*Element) GetStateFlags

func (e *Element) GetStateFlags() int

元素_取状态, 获取组合状态

func (*Element) GetTextColor

func (e *Element) GetTextColor() int

元素_取文本颜色

func (*Element) GetTextColorEx

func (e *Element) GetTextColorEx() int

元素_取文本颜色扩展, 获取文本颜色, 优先从资源中获取

func (*Element) GetToolTip

func (e *Element) GetToolTip() int

元素_取工具提示, 获取工具提示内容

func (*Element) GetType

func (e *Element) GetType() int

元素_取类型

func (*Element) GetUID

func (e *Element) GetUID() int

元素_取UID

func (*Element) GetUserData

func (e *Element) GetUserData() int

元素_取用户数据

func (*Element) GetWidth

func (e *Element) GetWidth() int

元素_取宽度

func (*Element) GetWndClientRect

func (e *Element) GetWndClientRect(pRect *xc.RECT) int

元素_基于窗口客户区坐标 pRect: 坐标.

func (*Element) GetZOrder

func (e *Element) GetZOrder() int

元素_取Z序, 获取元素Z序索引, 位置索引

func (*Element) HitChildEle

func (e *Element) HitChildEle(pPt *xc.POINT) int

元素_测试点击元素, 检测坐标点所在元素, 包含子元素的子元素 pPt: 坐标点.

func (*Element) InsertChild

func (e *Element) InsertChild(hChild int, index int) bool

元素_插入子对象, 插入子对象到指定位置 hChild: 要插入的元素句柄或形状对象句柄. index: 插入位置索引.

func (*Element) IsBkTransparent

func (e *Element) IsBkTransparent() bool

元素_判断背景透明

func (*Element) IsChildEle

func (e *Element) IsChildEle(hChildEle int) bool

元素_判断为子元素, 判断hChildEle是否为hEle的子元素 hChildEle: 子元素句柄

func (*Element) IsDrawFocus

func (e *Element) IsDrawFocus() bool

元素_判断绘制焦点

func (*Element) IsEnable

func (e *Element) IsEnable() bool

元素_判断启用, 元素是否为启用状态

func (*Element) IsEnableCanvas

func (e *Element) IsEnableCanvas() bool

元素_判断启用画布, 判断是否启用画布

func (*Element) IsEnableEvent_XE_PAINT_END

func (e *Element) IsEnableEvent_XE_PAINT_END() bool

元素_判断启用事件_XE_PAINT_END, 是否启XE_PAINT_END用事件

func (*Element) IsEnableFocus

func (e *Element) IsEnableFocus() bool

元素_判断启用焦点, 元素是否启用焦点

func (*Element) IsEnable_XE_MOUSEWHEEL

func (e *Element) IsEnable_XE_MOUSEWHEEL() bool

元素_判断启用_XE_MOUSEWHEEL, 判断是否启用鼠标滚动事件, 如果禁用那么事件会发送给他的父元素

func (*Element) IsFocus

func (e *Element) IsFocus() bool

元素_判断焦点, 判断是否拥有焦点

func (*Element) IsFocusEx

func (e *Element) IsFocusEx() bool

元素_判断焦点扩展, 判断该元素或该元素的子元素是否拥有焦点

func (*Element) IsKeyTab

func (e *Element) IsKeyTab() bool

元素_判断接受TAB, 是否接受Tab键输入; 例如: XRichEdit, XEdit

func (*Element) IsMouseThrough

func (e *Element) IsMouseThrough() bool

元素_判断鼠标穿透, 元素是否启用鼠标穿透

func (*Element) IsShow

func (e *Element) IsShow() bool

元素_判断显示

func (*Element) IsSwitchFocus

func (e *Element) IsSwitchFocus() bool

元素_判断接受切换焦点, 是否接受通过键盘切换焦点(方向键,TAB键)

func (*Element) KillXCTimer

func (e *Element) KillXCTimer(nIDEvent int) bool

元素_关闭炫彩定时器, 关闭元素定时器 nIDEvent: 事件ID.

func (*Element) Move

func (e *Element) Move(x int, y int, bRedraw bool, nFlags int, nAdjustNo int) int

元素_移动, 如果坐标未改变返回0, 如果大小改变返回2(触发XE_SIZE), 否则返回1 x: X坐标. y: Y坐标. bRedraw: 是否重绘. nFlags: 调整布局标识位, XC_AdjustLayout_ nAdjustNo:

func (*Element) MoveLogic

func (e *Element) MoveLogic(x int, y int, bRedraw bool, nFlags int, nAdjustNo int) int

元素_移动逻辑坐标, 移动元素坐标, 逻辑坐标, 包含滚动视图偏移. 如果坐标未改变返回0, 如果大小改变返回2(触发XE_SIZE), 否则返回1 x: X坐标. y: Y坐标. bRedraw: 是否重绘. nFlags: 调整布局标识位, XC_AdjustLayout_ nAdjustNo:

func (*Element) PointClientToWndClient

func (e *Element) PointClientToWndClient(pPt *xc.POINT) int

元素_客户区点到窗口客户区, 元素客户区坐标转换到窗口客户区坐标 pPt: 坐标.

func (*Element) PointWndClientToEleClient

func (e *Element) PointWndClientToEleClient(pPt *xc.POINT) int

元素_窗口客户区点到元素客户区, 窗口客户区坐标转换到元素客户区坐标 pPt: 坐标.

func (*Element) PopupToolTip

func (e *Element) PopupToolTip(x int, y int) int

元素_弹出工具提示, 弹出工具提示 x: X坐标. y: Y坐标.

func (*Element) PostEvent

func (e *Element) PostEvent(nEvent int, wParam int, lParam int) int

元素_投递事件 nEvent: 事件类型, XE_ wParam: 参数. lParam: 参数.

func (*Element) RectClientToWndClient

func (e *Element) RectClientToWndClient(pRect *xc.RECT) int

元素_客户区坐标到窗口客户区, 元素客户区坐标转换到窗口客户区坐标 pRect: 坐标.

func (*Element) RectWndClientToEleClient

func (e *Element) RectWndClientToEleClient(pRect *xc.RECT) int

元素_窗口客户区坐标到元素客户区坐标, 窗口客户区坐标转换到元素客户区坐标 pRect: 坐标.

func (*Element) Redraw

func (e *Element) Redraw(bImmediate bool) int

元素_重绘 bImmediate: 是否立即重绘

func (*Element) RedrawRect

func (e *Element) RedrawRect(pRect *xc.RECT, bImmediate bool) int

元素_重绘指定区域 pRect: 相对于元素客户区坐标. bImmediate: 是否立即重绘

func (*Element) RegEventC

func (e *Element) RegEventC(nEvent int, pFun interface{}) bool

元素_注册事件C, 注册事件C方式, 省略2参数 nEvent: 事件类型, XE_ pFun: 事件函数指针.

func (*Element) RegEventC1

func (e *Element) RegEventC1(nEvent int, pFun interface{}) bool

元素_注册事件C1, 注册事件C1方式, 省略1参数 nEvent: 事件类型, XE_ pFun: 事件函数指针.

func (*Element) Remove

func (e *Element) Remove() int

元素_移除, 移除元素, 但不销毁

func (*Element) RemoveEventC

func (e *Element) RemoveEventC(nEvent int, pFun interface{}) bool

元素_移除事件C nEvent: 事件类型, XE_ pFun: 事件函数指针.

func (*Element) SendEvent

func (e *Element) SendEvent(nEvent int, wParam int, lParam int) int

元素_发送事件 nEvent: 事件类型, XE_ wParam: 参数. lParam: 参数.

func (*Element) SetAlpha

func (e *Element) SetAlpha(alpha uint8) int

元素_置透明度 alpha: 透明度.

func (*Element) SetBkManager

func (e *Element) SetBkManager(hBkInfoM int) int

元素_置背景管理器 hBkInfoM: 背景管理器

func (*Element) SetBorderSize

func (e *Element) SetBorderSize(left int, top int, right int, bottom int) int

元素_置边框大小 left: 左边大小. top: 上边大小. right: 右边大小. bottom: 下边大小.

func (*Element) SetCapture

func (e *Element) SetCapture(b bool) int

元素_置鼠标捕获 b: TRUE设置

func (*Element) SetCursor

func (e *Element) SetCursor(hCursor int) int

元素_置光标, 设置元素鼠标光标 hCursor: 光标句柄.

func (*Element) SetDragBorder

func (e *Element) SetDragBorder(nFlags int) int

元素_置拖动边框 nFlags: 边框位置组合, Element_Position_

func (*Element) SetDragBorderBindEle

func (e *Element) SetDragBorderBindEle(nFlags int, hBindEle int, nSpace int) int

元素_置拖动边框绑定元素, 设置拖动边框绑定元素, 当拖动边框时, 自动调整绑定元素的大小 nFlags: 边框位置标识, Element_Position_ hBindEle: 绑定元素. nSpace: 元素间隔大小

func (*Element) SetFocusBorderColor

func (e *Element) SetFocusBorderColor(color int, alpha uint8) int

元素_置焦点边框颜色 color: RGB颜色值. alpha: 透明度.

func (*Element) SetFont

func (e *Element) SetFont(hFontx int) int

元素_置字体 hFontx: 炫彩字体.

func (*Element) SetHeight

func (e *Element) SetHeight(nHeight int) int

元素_置高度 nHeight: 高度

func (*Element) SetID

func (e *Element) SetID(nID int) int

元素_置ID nID: ID值.

func (*Element) SetLockScroll

func (e *Element) SetLockScroll(bHorizon bool, bVertical bool) int

元素_置锁定滚动, 设置锁定元素在滚动视图中跟随滚动, 如果设置TRUE将不跟随滚动 bHorizon: 是否锁定水平滚动. bVertical: 是否锁定垂直滚动.

func (*Element) SetMaxSize

func (e *Element) SetMaxSize(nWidth int, nHeight int) int

元素_置最大大小 nWidth: 最大宽度. nHeight: 最大高度.

func (*Element) SetMinSize

func (e *Element) SetMinSize(nWidth int, nHeight int) int

元素_置最小大小 nWidth: 最小宽度 nHeight: 最小高度.

func (*Element) SetName

func (e *Element) SetName(pName string) int

元素_置名称 pName: name值

func (*Element) SetPadding

func (e *Element) SetPadding(left int, top int, right int, bottom int) int

元素_置内填充大小 left: 左边大小. top: 上边大小. right: 右边大小. bottom: 下边大小.

func (*Element) SetRect

func (e *Element) SetRect(pRect *xc.RECT, bRedraw bool, nFlags int, nAdjustNo int) int

元素_置坐标, 如果返回0坐标没有改变, 如果大小改变返回2(触发XE_SIZE), 否则返回1(仅改变left,top,没有改变大小) pRect: 坐标. bRedraw: 是否重绘. nFlags: 调整布局标识位, XC_AdjustLayout_ nAdjustNo:

func (*Element) SetRectEx

func (e *Element) SetRectEx(x int, y int, cx int, cy int, bRedraw bool, nFlags int, nAdjustNo int) int

元素_置坐标扩展, 如果坐标未改变返回0, 如果大小改变返回2(触发XE_SIZE), 否则返回1 x: X坐标. y: Y坐标. cx: 宽度. cy: 高度. bRedraw: 是否重绘. nFlags: 调整布局标识位, XC_AdjustLayout_ nAdjustNo:

func (*Element) SetRectLogic

func (e *Element) SetRectLogic(pRect *xc.RECT, bRedraw bool, nFlags int, nAdjustNo int) int

元素_置逻辑坐标, 如果坐标未改变返回0, 如果大小改变返回2(触发XE_SIZE), 否则返回1 pRect: 坐标. bRedraw: 是否重绘. nFlags: 参数将被带入XE_SIZE ,XE_ADJUSTLAYOUT 事件回调.xc_adjustLayout_ nAdjustNo:

func (*Element) SetTextColor

func (e *Element) SetTextColor(color int, alpha uint8) int

元素_置文本颜色 color: RGB颜色值. alpha: 透明度.

func (*Element) SetToolTip

func (e *Element) SetToolTip(pText string) int

元素_置工具提示, 设置工具提示内容 pText: 工具提示内容.

func (*Element) SetToolTipEx

func (e *Element) SetToolTipEx(pText string, nTextAlign int) int

元素_置工具提示扩展, 设置工具提示内容 pText: 工具提示内容. nTextAlign: 文本对齐方式, TextFormatFlag_, TextAlignFlag_, TextTrimming_

func (*Element) SetUID

func (e *Element) SetUID(nUID int) int

元素_置UID, 置元素UID, 全局唯一标识符 nUID: UID值.

func (*Element) SetUserData

func (e *Element) SetUserData(nData int) int

元素_置用户数据 nData: 用户数据.

func (*Element) SetWidth

func (e *Element) SetWidth(nWidth int) int

元素_置宽度 nWidth: 宽度

func (*Element) SetXCTimer

func (e *Element) SetXCTimer(nIDEvent int, uElapse int) bool

元素_置炫彩定时器, 设置元素定时器 nIDEvent: 事件ID. uElapse: 延时毫秒.

func (*Element) SetZOrder

func (e *Element) SetZOrder(index int) bool

元素_置Z序, 设置元素Z序 index: 位置索引.

func (*Element) SetZOrderEx

func (e *Element) SetZOrderEx(hDestEle int, nType int) bool

元素_置Z序扩展, 设置元素Z序 hDestEle: 目标元素. nType: 类型.

func (*Element) Show

func (e *Element) Show(bShow bool) int

元素_显示 bShow: TRUE显示元素

type List added in v0.0.2

type List struct {
	Element

	HEle int
}

func XList_Create added in v0.0.2

func XList_Create(x int, y int, cx int, cy int, hParent int) *List

列表_创建, 创建列表元素, 返回元素句柄 x: 元素x坐标. y: 元素y坐标. cx: 宽度. cy: 高度. hParent: 父是窗口资源句柄或UI元素资源句柄. 如果是窗口资源句柄将被添加到窗口, 如果是元素资源句柄将被添加到元素

func (*List) AddColumn added in v0.0.2

func (l *List) AddColumn(width int) int

列表_增加列, 返回位置索引 width: 列宽度.

func (*List) AddColumnImage added in v0.0.2

func (l *List) AddColumnImage(nWidth int, pName string, hImage int) int

列表_添加列图片 nWidth: pName: hImage:

func (*List) AddColumnText added in v0.0.2

func (l *List) AddColumnText(nWidth int, pName string, pText string) int

列表_添加列文本 nWidth: pName: pText:

func (*List) AddItemBkBorder added in v0.0.2

func (l *List) AddItemBkBorder(nState int, color int, alpha uint8, width int) int

列表_添加项背景边框, 添加项背景内容边框 nState: 项状态. color: RGB颜色. alpha: 透明度. width: 线宽.

func (*List) AddItemBkFill added in v0.0.2

func (l *List) AddItemBkFill(nState int, color int, alpha uint8) int

列表_添加项背景填充, 添加项背景内容填充 nState: 项状态. color: RGB颜色. alpha: 透明度.

func (*List) AddItemBkImage added in v0.0.2

func (l *List) AddItemBkImage(nState int, hImage int) int

列表_添加项背景图片, 添加项背景内容图片 nState: 项状态. hImage: 图片句柄.

func (*List) AddItemImage added in v0.0.2

func (l *List) AddItemImage(hImage int) int

列表_添加项图片 hImage:

func (*List) AddItemImageEx added in v0.0.2

func (l *List) AddItemImageEx(pName string, hImage int) int

列表_添加项图片扩展 pName: hImage:

func (*List) AddItemText added in v0.0.2

func (l *List) AddItemText(pText string) int

列表_添加项文本 pText:

func (*List) AddItemTextEx added in v0.0.2

func (l *List) AddItemTextEx(pName string, pText string) int

列表_添加项文本扩展 pName: pText:

func (*List) AddSelectItem added in v0.0.2

func (l *List) AddSelectItem(iItem int) bool

列表_添加选择项 iItem: 项索引

func (*List) BindAdapter added in v0.0.2

func (l *List) BindAdapter(hAdapter int) int

列表_绑定数据适配器 hAdapter: 数据适配器句柄 XAdTable.

func (*List) BindAdapterHeader added in v0.0.2

func (l *List) BindAdapterHeader(hAdapter int) int

列表_列表头绑定数据适配器 hAdapter: 数据适配器句柄 XAdMap.

func (*List) CancelSelectAll added in v0.0.2

func (l *List) CancelSelectAll() int

列表_取消全部选择项, 取消选择所有项(这里的项可以理解为行)

func (*List) CancelSelectItem added in v0.0.2

func (l *List) CancelSelectItem(iItem int) bool

列表_取消选择项, 取消选择指定项(这里的项可以理解为行) iItem: 项索引.

func (*List) ClearItemBkInfo added in v0.0.2

func (l *List) ClearItemBkInfo() int

列表_清空项背景对象, 清空项背景内容; 如果背景没有内容, 将使用系统默认内容, 以便保证背景正确.

func (*List) CreateAdapter added in v0.0.2

func (l *List) CreateAdapter() int

列表_创建数据适配器, 创建数据适配器,根据绑定的项模板初始化数据适配器的列, 返回适配器句柄.

func (*List) CreateAdapterHeader added in v0.0.2

func (l *List) CreateAdapterHeader() int

列表_列表头创建数据适配器, 创建数据适配器,根据绑定的项模板初始化数据适配器的列, 返回适配器句柄.

func (*List) DeleteColumn added in v0.0.2

func (l *List) DeleteColumn(iItem int) bool

列表_删除列 iItem: 项索引.

func (*List) DeleteColumnAll added in v0.0.2

func (l *List) DeleteColumnAll() int

列表_删除全部列, 删除所有的列, 仅删除List的, 数据适配器的列不变

func (*List) DeleteColumnAll_AD added in v0.0.2

func (l *List) DeleteColumnAll_AD() int

列表_删除列全部AD

func (*List) DeleteItem added in v0.0.2

func (l *List) DeleteItem(iItem int) bool

列表_删除项 iItem:

func (*List) DeleteItemAll added in v0.0.2

func (l *List) DeleteItemAll() int

列表_删除项全部

func (*List) DeleteItemEx added in v0.0.2

func (l *List) DeleteItemEx(iItem int, nCount int) bool

列表_删除项扩展 iItem: nCount:

func (*List) EnableDragChangeColumnWidth added in v0.0.2

func (l *List) EnableDragChangeColumnWidth(bEnable bool) int

列表_启用拖动更改列宽, 启用拖动改变列宽度 bEnable: 是否启用.

func (*List) EnableFixedRowHeight added in v0.0.2

func (l *List) EnableFixedRowHeight(bEnable bool) int

列表_启用固定行高 bEnable: 是否启用

func (*List) EnableItemBkFullRow added in v0.0.2

func (l *List) EnableItemBkFullRow(bFull bool) int

列表_启用项背景全行模式, 启用项背景全行填充模式 bFull: 是否启用.

func (*List) EnableMultiSel added in v0.0.2

func (l *List) EnableMultiSel(bEnable bool) int

列表_启用多选, 启用或关闭多选功能 bEnable: 是否启用.

func (*List) EnableVScrollBarTop added in v0.0.2

func (l *List) EnableVScrollBarTop(bTop bool) int

列表_启用垂直滚动条顶部对齐 bTop: 是否启用.

func (*List) EnableVirtualTable added in v0.0.2

func (l *List) EnableVirtualTable(bEnable bool) int

列表_启用虚表 bEnable: 是否启用

func (*List) EnablemTemplateReuse added in v0.0.2

func (l *List) EnablemTemplateReuse(bEnable bool) int

列表_启用模板复用 bEnable: 是否启用

func (*List) GetAdapter added in v0.0.2

func (l *List) GetAdapter() int

列表_取数据适配器, 返回数据适配器句柄

func (*List) GetAdapterHeader added in v0.0.2

func (l *List) GetAdapterHeader() int

列表_列表头获取数据适配器, 获取列表头数据适配器句柄

func (*List) GetColumnCount added in v0.0.2

func (l *List) GetColumnCount() int

列表_取列数量

func (*List) GetColumnWidth added in v0.0.2

func (l *List) GetColumnWidth(iColumn int) int

列表_取列宽度 iColumn: 列索引.

func (*List) GetCountColumn_AD added in v0.0.2

func (l *List) GetCountColumn_AD() int

列表_取列数量AD

func (*List) GetCount_AD added in v0.0.2

func (l *List) GetCount_AD() int

列表_取项数量AD

func (*List) GetHeaderHELE added in v0.0.2

func (l *List) GetHeaderHELE() int

列表_取列表头, 获取列表头元素, 返回列表头元素句柄

func (*List) GetHeaderHeight added in v0.0.2

func (l *List) GetHeaderHeight() int

列表_取列表头高度

func (*List) GetHeaderItemIndexFromHXCGUI added in v0.0.2

func (l *List) GetHeaderItemIndexFromHXCGUI(hXCGUI int) int

列表_取列表头对象所在行, 列表头, 获取当前对象所在模板实例, 属于列表头中哪一个项. 成功返回项索引, 否则返回XC_ID_ERROR. hXCGUI: 对象句柄.

func (*List) GetHeaderTemplateObject added in v0.0.2

func (l *List) GetHeaderTemplateObject(iItem int, nTempItemID int) int

列表_取列表头模板对象, 列表头, 通过模板项ID, 获取实例化模板项ID对应的对象句柄 iItem: 列表头项ID. nTempItemID: 模板项ID.

func (*List) GetItemBkInfoCount added in v0.0.2

func (l *List) GetItemBkInfoCount() int

列表_取项背景对象数量, 成功返回背景内容数量, 否则返回XC_ID_ERROR

func (*List) GetItemData added in v0.0.2

func (l *List) GetItemData(iItem int, iSubItem int) int

列表_取项数据, 获取项用户数据 iItem: 项索引. iSubItem: 子项索引.

func (*List) GetItemFloat added in v0.0.2

func (l *List) GetItemFloat(iItem int, iColumn int, pOutValue *float32) bool

列表_取项浮点值 iItem: iColumn: pOutValue:

func (*List) GetItemFloatEx added in v0.0.2

func (l *List) GetItemFloatEx(iItem int, pName string, pOutValue *float32) bool

列表_取项浮点值扩展 iItem: pName: pOutValue:

func (*List) GetItemHeightDefault added in v0.0.2

func (l *List) GetItemHeightDefault(pHeight *int, pSelHeight *int) int

列表_取项默认高度 pHeight: 高度. pSelHeight: 选中时高度.

func (*List) GetItemImage added in v0.0.2

func (l *List) GetItemImage(iItem int, iColumn int) int

列表_取项图片 iItem: iColumn:

func (*List) GetItemImageEx added in v0.0.2

func (l *List) GetItemImageEx(iItem int, pName string) int

列表_取项图片扩展 iItem: pName:

func (*List) GetItemIndexFromHXCGUI added in v0.0.2

func (l *List) GetItemIndexFromHXCGUI(hXCGUI int) int

列表_取对象所在行, 获取当前对象所在模板实例, 属于列表中哪一个项. 成功返回项索引, 否则返回XC_ID_ERROR. hXCGUI: 对象句柄, UI元素句柄或形状对象句柄

func (*List) GetItemInt added in v0.0.2

func (l *List) GetItemInt(iItem int, iColumn int, pOutValue *int) bool

列表_取项整数值 iItem: iColumn: pOutValue:

func (*List) GetItemIntEx added in v0.0.2

func (l *List) GetItemIntEx(iItem int, pName string, pOutValue *int) bool

列表_取项整数值扩展 iItem: pName: pOutValue:

func (*List) GetItemText added in v0.0.2

func (l *List) GetItemText(iItem int, iColumn int) string

列表_取项文本 iItem: iColumn:

func (*List) GetItemTextEx added in v0.0.2

func (l *List) GetItemTextEx(iItem int, pName string) string

列表_取项文本扩展 iItem: pName:

func (*List) GetRowSpace added in v0.0.2

func (l *List) GetRowSpace() int

列表_取行间距

func (*List) GetSelectAll added in v0.0.2

func (l *List) GetSelectAll(pArray int, nArraySize int) int

列表_取全部选择, 获取全部选择的行, 返回行数量 pArray: 接收行索引数组. nArraySize: 数组大小.

func (*List) GetSelectItem added in v0.0.2

func (l *List) GetSelectItem() int

列表_取选择项, 返回项索引

func (*List) GetSelectItemCount added in v0.0.2

func (l *List) GetSelectItemCount() int

列表_取选择项数量, 获取选择项数量

func (*List) GetTemplateObject added in v0.0.2

func (l *List) GetTemplateObject(iItem int, iSubItem int, nTempItemID int) int

列表_取项模板对象, 通过模板项ID, 获取实例化模板项ID对应的对象句柄 iItem: 项索引. iSubItem: 子项索引. nTempItemID: 模板项itemID.

func (*List) GetVisibleRowRange added in v0.0.2

func (l *List) GetVisibleRowRange(piStart *int, piEnd *int) int

列表_取可视行范围 piStart: 开始行索引. piEnd: 结束行索引.

func (*List) HitTest added in v0.0.2

func (l *List) HitTest(pPt *xc.POINT, piItem *int, piSubItem *int) bool

列表_测试点击项, 检测坐标点所在项 pPt: 坐标点. piItem: 项索引. piSubItem: 子项索引.

func (*List) HitTestOffset added in v0.0.2

func (l *List) HitTestOffset(pPt *xc.POINT, piItem *int, piSubItem *int) bool

列表_测试点击项扩展, 检查坐标点所在项, 自动添加滚动视图偏移量 pPt: 坐标点. piItem: 项索引. piSubItem: 子项索引.

func (*List) InsertColumn added in v0.0.2

func (l *List) InsertColumn(width int, iItem int) int

列表_插入列, 返回插入位置索引 width: 列宽度. iItem: 插入位置索引.

func (*List) InsertItemImage added in v0.0.2

func (l *List) InsertItemImage(iItem int, hImage int) int

列表_插入项图片 iItem: hImage:

func (*List) InsertItemImageEx added in v0.0.2

func (l *List) InsertItemImageEx(iItem int, pName string, hImage int) int

列表_插入项图片扩展 iItem: pName: hImage:

func (*List) InsertItemText added in v0.0.2

func (l *List) InsertItemText(iItem int, pValue string) int

列表_插入项文本 iItem: pValue:

func (*List) InsertItemTextEx added in v0.0.2

func (l *List) InsertItemTextEx(iItem int, pName string, pValue string) int

列表_插入项文本扩展 iItem: pName: pValue:

func (*List) RefreshData added in v0.0.2

func (l *List) RefreshData() int

列表_刷新项数据

func (*List) RefreshItem added in v0.0.2

func (l *List) RefreshItem(iItem int) int

列表_刷新指定项, 刷新指定项模板, 以便更新UI iItem: 项索引.

func (*List) SetColumnMinWidth added in v0.0.2

func (l *List) SetColumnMinWidth(iItem int, width int) int

列表_置列最小宽度 iItem: 列索引. width: 宽度.

func (*List) SetColumnWidth added in v0.0.2

func (l *List) SetColumnWidth(iItem int, width int) int

列表_置列宽 iItem: 列索引. width: 宽度.

func (*List) SetColumnWidthFixed added in v0.0.2

func (l *List) SetColumnWidthFixed(iColumn int, bFixed bool) int

列表_置列宽度固定 iColumn: 列索引. bFixed: 是否固定宽度.

func (*List) SetDrawItemBkFlags added in v0.0.2

func (l *List) SetDrawItemBkFlags(nFlags int) int

列表_置绘制项背景标志, 设置是否绘制指定状态下项的背景 nFlags: 标志位, List_DrawItemBk_Flag_

func (*List) SetHeaderHeight added in v0.0.2

func (l *List) SetHeaderHeight(height int) int

列表_置列表头高度 height: 高度.

func (*List) SetItemData added in v0.0.2

func (l *List) SetItemData(iItem int, iSubItem int, data int) bool

列表_置项数据, 设置项用户数据 iItem: 项索引. iSubItem: 子项索引. data: 用户数据.

func (*List) SetItemFloat added in v0.0.2

func (l *List) SetItemFloat(iItem int, iColumn int, fFloat float32) bool

列表_置项浮点值 iItem: iColumn: fFloat:

func (*List) SetItemFloatEx added in v0.0.2

func (l *List) SetItemFloatEx(iItem int, pName string, fFloat float32) bool

列表_置项浮点值扩展 iItem: pName: fFloat:

func (*List) SetItemHeightDefault added in v0.0.2

func (l *List) SetItemHeightDefault(nHeight int, nSelHeight int) int

列表_置项默认高度 nHeight: 高度. nSelHeight: 选中时高度.

func (*List) SetItemImage added in v0.0.2

func (l *List) SetItemImage(iItem int, iColumn int, hImage int) bool

列表_置项图片 iItem: iColumn: hImage:

func (*List) SetItemImageEx added in v0.0.2

func (l *List) SetItemImageEx(iItem int, pName string, hImage int) bool

列表_置项图片扩展 iItem: pName: hImage:

func (*List) SetItemInt added in v0.0.2

func (l *List) SetItemInt(iItem int, iColumn int, nValue int) bool

列表_置项指数值 iItem: iColumn: nValue:

func (*List) SetItemIntEx added in v0.0.2

func (l *List) SetItemIntEx(iItem int, pName string, nValue int) bool

列表_置项整数值扩展 iItem: pName: nValue:

func (*List) SetItemTemplate added in v0.0.2

func (l *List) SetItemTemplate(hTemp int) bool

列表_置项模板, 设置列表项模板 hTemp: 模板句柄.

func (*List) SetItemTemplateXML added in v0.0.2

func (l *List) SetItemTemplateXML(pXmlFile string) bool

列表_置项模板文件, 设置项布局模板文件 pXmlFile: 文件名.

func (*List) SetItemTemplateXMLFromString added in v0.0.2

func (l *List) SetItemTemplateXMLFromString(pStringXML int) bool

列表_置项模板从字符串, 设置项布局模板文件 pStringXML: 字符串指针.

func (*List) SetItemText added in v0.0.2

func (l *List) SetItemText(iItem int, iColumn int, pText string) bool

列表_置项文本 iItem: iColumn: pText:

func (*List) SetItemTextEx added in v0.0.2

func (l *List) SetItemTextEx(iItem int, pName string, pText string) bool

列表_置项文本扩展 iItem: pName: pText:

func (*List) SetLockColumnLeft added in v0.0.2

func (l *List) SetLockColumnLeft(iColumn int) int

列表_置锁定列左侧, 锁定列, 设置左侧锁定列分界列索引 iColumn: 列索引, -1代表不锁定

func (*List) SetLockColumnRight added in v0.0.2

func (l *List) SetLockColumnRight(iColumn int) int

列表_置锁定列右侧 iColumn: 列索引, -1代表不锁定. 暂时只支持锁定末尾列

func (*List) SetLockRowBottom added in v0.0.2

func (l *List) SetLockRowBottom(bLock bool) int

列表_置锁定行底部, 设置是否锁定末尾行 bLock: 是否锁定.

func (*List) SetLockRowBottomOverlap added in v0.0.2

func (l *List) SetLockRowBottomOverlap(bOverlap bool) int

列表_置锁定行底部重叠 bOverlap: 是否重叠

func (*List) SetRowSpace added in v0.0.2

func (l *List) SetRowSpace(nSpace int) int

列表_置行间距 nSpace: 行间距大小.

func (*List) SetSelectAll added in v0.0.2

func (l *List) SetSelectAll() int

列表_置选择全部, 选择全部行

func (*List) SetSelectItem added in v0.0.2

func (l *List) SetSelectItem(iItem int) bool

列表_置选择项 iItem: 项索引.

func (*List) SetSort added in v0.0.2

func (l *List) SetSort(iColumn int, iColumnAdapter int, bEnable bool) int

列表_置排序, 设置排序属性 iColumn: 列索引. iColumnAdapter: 需要排序的数据在数据适配器中的列索引. bEnable: 是否启用排序功能.

func (*List) SetVirtualRowCount added in v0.0.2

func (l *List) SetVirtualRowCount(nRowCount int) int

列表_置虚表行数 nRowCount: 行数

func (*List) VisibleItem added in v0.0.2

func (l *List) VisibleItem(iItem int) int

列表_显示指定项, 滚动视图让指定项可见 iItem: 项索引.

type ListBox added in v0.0.2

type ListBox struct {
	Element

	HEle int
}

func NewListBox added in v0.0.2

func NewListBox(x int, y int, cx int, cy int, hParent int) *ListBox

列表框_创建, 创建列表框元素, 返回元素句柄 x: 元素x坐标. y: 元素y坐标. cx: 宽度. cy: 高度. hParent: 父是窗口资源句柄或UI元素资源句柄. 如果是窗口资源句柄将被添加到窗口, 如果是元素资源句柄将被添加到元素

func (*ListBox) AddItemBkBorder added in v0.0.2

func (l *ListBox) AddItemBkBorder(nState int, color int, alpha uint8, width int) int

列表框_添加项背景边框, 添加项背景内容边框 nState: 项状态. color: RGB颜色. alpha: 透明度. width: 线宽.

func (*ListBox) AddItemBkFill added in v0.0.2

func (l *ListBox) AddItemBkFill(nState int, color int, alpha uint8) int

列表框_添加项背景填充, 添加项背景内容填充 nState: 项状态. color: RGB颜色. alpha: 透明度.

func (*ListBox) AddItemBkImage added in v0.0.2

func (l *ListBox) AddItemBkImage(nState int, hImage int) int

列表框_添加项背景图片, 添加项背景内容图片 nState: 项状态. hImage: 图片句柄.

func (*ListBox) AddItemImage added in v0.0.2

func (l *ListBox) AddItemImage(hImage int) int

列表框_添加项图片, XAdTable_AddItemImage hImage:

func (*ListBox) AddItemImageEx added in v0.0.2

func (l *ListBox) AddItemImageEx(pName string, hImage int) int

列表框_添加项图片扩展, XAdTable_AddItemImageEx pName: hImage:

func (*ListBox) AddItemText added in v0.0.2

func (l *ListBox) AddItemText(pText string) int

列表框_添加项文本, XAdTable_AddItemText, 返回项索引 pText:

func (*ListBox) AddItemTextEx added in v0.0.2

func (l *ListBox) AddItemTextEx(pName string, pText string) int

列表框_添加项文本扩展, XAdTable_AddItemTextEx pName: pText:

func (*ListBox) AddSelectItem added in v0.0.2

func (l *ListBox) AddSelectItem(iItem int) bool

列表框_添加选择项 iItem: 项索引

func (*ListBox) BindAdapter added in v0.0.2

func (l *ListBox) BindAdapter(hAdapter int) int

列表框_绑定数据适配器, 绑定数据适配器 hAdapter: 数据适配器句柄 XAdTable.

func (*ListBox) CancelSelectAll added in v0.0.2

func (l *ListBox) CancelSelectAll() bool

列表框_取消选择全部, 如果之前有选择状态的项返回TRUE, 此时可以更新UI, 否则返回FALSE

func (*ListBox) CancelSelectItem added in v0.0.2

func (l *ListBox) CancelSelectItem(iItem int) bool

列表框_取消选择项 iItem: 项索引.

func (*ListBox) ClearItemBkInfo added in v0.0.2

func (l *ListBox) ClearItemBkInfo() int

列表框_清空项背景对象, 清空项背景内容; 如果背景没有内容,将使用系统默认内容,以便保证背景正确

func (*ListBox) CreateAdapter added in v0.0.2

func (l *ListBox) CreateAdapter() int

列表框_创建数据适配器, 创建数据适配器并绑定, 根据绑定的项模板初始化数据适配器的列, 返回适配器句柄

func (*ListBox) DeleteColumnAll added in v0.0.2

func (l *ListBox) DeleteColumnAll() int

列表框_删除列全部

func (*ListBox) DeleteItem added in v0.0.2

func (l *ListBox) DeleteItem(iItem int) bool

列表框_删除项 iItem:

func (*ListBox) DeleteItemAll added in v0.0.2

func (l *ListBox) DeleteItemAll() int

列表框_删除项全部

func (*ListBox) DeleteItemEx added in v0.0.2

func (l *ListBox) DeleteItemEx(iItem int, nCount int) bool

列表框_删除项扩展 iItem: nCount:

func (*ListBox) EnableFixedRowHeight added in v0.0.2

func (l *ListBox) EnableFixedRowHeight(bEnable bool) int

列表框_启用固定行高 bEnable: 是否启用

func (*ListBox) EnableMultiSel added in v0.0.2

func (l *ListBox) EnableMultiSel(bEnable bool) int

列表框_启用多选, 是否启用多行选择功能 bEnable: 是否启用.

func (*ListBox) EnableVirtualTable added in v0.0.2

func (l *ListBox) EnableVirtualTable(bEnable bool) int

列表框_启用虚表 bEnable: 是否启用

func (*ListBox) EnablemTemplateReuse added in v0.0.2

func (l *ListBox) EnablemTemplateReuse(bEnable bool) int

列表框_启用模板复用 bEnable: 是否启用

func (*ListBox) GetAdapter added in v0.0.2

func (l *ListBox) GetAdapter() int

列表框_取数据适配器, 获取绑定的数据适配器, 返回数据适配器句柄

func (*ListBox) GetCountColumn_AD added in v0.0.2

func (l *ListBox) GetCountColumn_AD() int

列表框_取列数量AD

func (*ListBox) GetCount_AD added in v0.0.2

func (l *ListBox) GetCount_AD() int

列表框_取项数量AD

func (*ListBox) GetItemBkInfoCount added in v0.0.2

func (l *ListBox) GetItemBkInfoCount() int

列表框_取项背景对象数量, 获取背景内容数量, 成功返回背景内容数量, 否则返回XC_ID_ERROR

func (*ListBox) GetItemData added in v0.0.2

func (l *ListBox) GetItemData(iItem int) int

列表框_取项数据, 获取项用户数据 iItem: 项索引.

func (*ListBox) GetItemFloat added in v0.0.2

func (l *ListBox) GetItemFloat(iItem int, iColumn int, pOutValue *float32) bool

列表框_取项浮点值 iItem: iColumn: pOutValue:

func (*ListBox) GetItemFloatEx added in v0.0.2

func (l *ListBox) GetItemFloatEx(iItem int, pName string, pOutValue *float32) bool

列表框_取项浮点值扩展 iItem: pName: pOutValue:

func (*ListBox) GetItemHeightDefault added in v0.0.2

func (l *ListBox) GetItemHeightDefault(pHeight *int, pSelHeight *int) int

列表框_取项默认高度 pHeight: 高度. pSelHeight: 选中时高度.

func (*ListBox) GetItemImage added in v0.0.2

func (l *ListBox) GetItemImage(iItem int, iColumn int) int

列表框_取项图片 iItem: iColumn:

func (*ListBox) GetItemImageEx added in v0.0.2

func (l *ListBox) GetItemImageEx(iItem int, pName string) int

列表框_取项图片扩展 iItem: pName:

func (*ListBox) GetItemIndexFromHXCGUI added in v0.0.2

func (l *ListBox) GetItemIndexFromHXCGUI(hXCGUI int) int

列表框_取所在行索引, 获取当前对象所在模板实例, 属于列表中哪一个项(行). 成功返回项索引, 否则返回XC_ID_ERROR. hXCGUI: 对象句柄, UI元素句柄或形状对象句柄

func (*ListBox) GetItemInfo added in v0.0.2

func (l *ListBox) GetItemInfo(iItem int, pItem *xc.ListBox_Item_Info_) bool

列表框_取项背景信息, 获取项信息 iItem: 项索引. pItem: 项信息.

func (*ListBox) GetItemInt added in v0.0.2

func (l *ListBox) GetItemInt(iItem int, iColumn int, pOutValue *int) bool

列表框_取项整数值 iItem: iColumn: pOutValue:

func (*ListBox) GetItemIntEx added in v0.0.2

func (l *ListBox) GetItemIntEx(iItem int, pName string, pOutValue *int) bool

列表框_取项整数值扩展 iItem: pName: pOutValue:

func (*ListBox) GetItemMouseStay added in v0.0.2

func (l *ListBox) GetItemMouseStay() int

列表框_取鼠标停留项, 返回鼠标所在项

func (*ListBox) GetItemText added in v0.0.2

func (l *ListBox) GetItemText(iItem int, iColumn int) string

列表框_取项文本 iItem: iColumn:

func (*ListBox) GetItemTextEx added in v0.0.2

func (l *ListBox) GetItemTextEx(iItem int, pName string) string

列表框_取项文本扩展 iItem: pName:

func (*ListBox) GetRowSpace added in v0.0.2

func (l *ListBox) GetRowSpace() int

列表框_取行间距

func (*ListBox) GetSelectAll added in v0.0.2

func (l *ListBox) GetSelectAll(pArray int, nArraySize int) int

列表框_取全部选择, 获取所有选择项, 返回接收数量 pArray: 数组缓冲区. nArraySize: 数组大小.

func (*ListBox) GetSelectCount added in v0.0.2

func (l *ListBox) GetSelectCount() int

列表框_取选择项数量, 获取选择项数量

func (*ListBox) GetSelectItem added in v0.0.2

func (l *ListBox) GetSelectItem() int

列表框_取选择项, 返回项索引

func (*ListBox) GetTemplateObject added in v0.0.2

func (l *ListBox) GetTemplateObject(iItem int, nTempItemID int) int

列表框_取模板对象, 通过模板项ID, 获取实例化模板项ID对应的对象句柄, 成功返回对象句柄, 否则返回NULL iItem: 项索引. nTempItemID: 模板项ID.

func (*ListBox) GetVisibleRowRange added in v0.0.2

func (l *ListBox) GetVisibleRowRange(piStart *int, piEnd *int) int

列表框_取可视行范围, 获取当前可见行范围 piStart: 开始行索引 piEnd: 结束行索引

func (*ListBox) HitTest added in v0.0.2

func (l *ListBox) HitTest(pPt *xc.POINT) int

列表框_测试点击项, 检测坐标点所在项, 返回项索引 pPt: 坐标点.

func (*ListBox) HitTestOffset added in v0.0.2

func (l *ListBox) HitTestOffset(pPt *xc.POINT) int

列表框_测试点击项扩展, 检测坐标点所在项, 自动添加滚动视图偏移量, 返回项索引 pPt: 坐标点.

func (*ListBox) InsertItemImage added in v0.0.2

func (l *ListBox) InsertItemImage(iItem int, hImage int) int

列表框_插入项图片 iItem: hImage:

func (*ListBox) InsertItemImageEx added in v0.0.2

func (l *ListBox) InsertItemImageEx(iItem int, pName string, hImage int) int

列表框_插入项图片扩展 iItem: pName: hImage:

func (*ListBox) InsertItemText added in v0.0.2

func (l *ListBox) InsertItemText(iItem int, pValue string) int

列表框_插入项文本 iItem: pValue:

func (*ListBox) InsertItemTextEx added in v0.0.2

func (l *ListBox) InsertItemTextEx(iItem int, pName string, pValue string) int

列表框_插入项文本扩展 iItem: pName: pValue:

func (*ListBox) RefreshData added in v0.0.2

func (l *ListBox) RefreshData() int

列表框_刷新数据

func (*ListBox) RefreshItem added in v0.0.2

func (l *ListBox) RefreshItem(iItem int) int

列表框_刷新指定项, 刷新指定项模板, 以便更新UI iItem: 项索引.

func (*ListBox) SelectAll added in v0.0.2

func (l *ListBox) SelectAll() bool

列表框_选择全部项

func (*ListBox) SetDrawItemBkFlags added in v0.0.2

func (l *ListBox) SetDrawItemBkFlags(nFlags int) int

列表框_置绘制项背景标志, 设置是否绘制指定状态下项的背景 nFlags: 标志位, List_DrawItemBk_Flag_

func (*ListBox) SetItemData added in v0.0.2

func (l *ListBox) SetItemData(iItem int, nUserData int) bool

列表框_置项数据, 设置项用户数据 iItem: 想索引. nUserData: 用户数据.

func (*ListBox) SetItemFloat added in v0.0.2

func (l *ListBox) SetItemFloat(iItem int, iColumn int, fFloat float32) bool

列表框_置项浮点值 iItem: iColumn: fFloat:

func (*ListBox) SetItemFloatEx added in v0.0.2

func (l *ListBox) SetItemFloatEx(iItem int, pName string, fFloat float32) bool

列表框_置项浮点值扩展 iItem: pName: fFloat:

func (*ListBox) SetItemHeightDefault added in v0.0.2

func (l *ListBox) SetItemHeightDefault(nHeight int, nSelHeight int) int

列表框_置项默认高度 nHeight: 项高度. nSelHeight: 选中项高度.

func (*ListBox) SetItemImage added in v0.0.2

func (l *ListBox) SetItemImage(iItem int, iColumn int, hImage int) bool

列表框_置项图片 iItem: iColumn: hImage:

func (*ListBox) SetItemImageEx added in v0.0.2

func (l *ListBox) SetItemImageEx(iItem int, pName string, hImage int) bool

列表框_置项图片扩展 iItem: pName: hImage:

func (*ListBox) SetItemInfo added in v0.0.2

func (l *ListBox) SetItemInfo(iItem int, pItem *xc.ListBox_Item_Info_) bool

列表框_置项信息 iItem: 项索引. pItem: 项信息.

func (*ListBox) SetItemInt added in v0.0.2

func (l *ListBox) SetItemInt(iItem int, iColumn int, nValue int) bool

列表框_置项整数值 iItem: iColumn: nValue:

func (*ListBox) SetItemIntEx added in v0.0.2

func (l *ListBox) SetItemIntEx(iItem int, pName string, nValue int) bool

列表框_置项整数值扩展 iItem: pName: nValue:

func (*ListBox) SetItemTemplate added in v0.0.2

func (l *ListBox) SetItemTemplate(hTemp int) bool

列表框_置项模板, 设置列表项模板 hTemp: 模板句柄

func (*ListBox) SetItemTemplateXML added in v0.0.2

func (l *ListBox) SetItemTemplateXML(pXmlFile string) bool

列表框_置项模板文件, 设置列表项模板文件 pXmlFile: 文件名.

func (*ListBox) SetItemTemplateXMLFromString added in v0.0.2

func (l *ListBox) SetItemTemplateXMLFromString(pStringXML int) bool

列表框_置项模板从字符串, 设置项布局模板文件 pStringXML: 字符串指针.

func (*ListBox) SetItemText added in v0.0.2

func (l *ListBox) SetItemText(iItem int, iColumn int, pText string) bool

列表框_置项文本 iItem: iColumn: pText:

func (*ListBox) SetItemTextEx added in v0.0.2

func (l *ListBox) SetItemTextEx(iItem int, pName string, pText string) bool

列表框_置项文本扩展 iItem: pName: pText:

func (*ListBox) SetRowSpace added in v0.0.2

func (l *ListBox) SetRowSpace(nSpace int) int

列表框_置行间距 nSpace: 间距大小.

func (*ListBox) SetSelectItem added in v0.0.2

func (l *ListBox) SetSelectItem(iItem int) bool

列表框_置选择项, 设置选择选 iItem: 项索引.

func (*ListBox) SetVirtualRowCount added in v0.0.2

func (l *ListBox) SetVirtualRowCount(nRowCount int) int

列表框_置虚表行数 nRowCount: 行数

func (*ListBox) Sort added in v0.0.2

func (l *ListBox) Sort(iColumnAdapter int, bAscending bool) int

列表框_排序 iColumnAdapter: 需要排序的数据在数据适配器中所属列索引. bAscending: 升序(TRUE)或降序(FALSE).

func (*ListBox) VisibleItem added in v0.0.2

func (l *ListBox) VisibleItem(iItem int) int

列表框_显示指定项, 滚动视图让指定项可见 iItem: 项索引.

type Menu struct {
	HMenu int
}

func NewMenu

func NewMenu() *Menu

菜单_创建, 创建菜单, 默认弹出菜单窗口关闭后自动销毁

func (m *Menu) AddItem(nID int, pText string, nParentID int, nFlags int) int

菜单_添加项, 添加菜单项 nID: 项ID. pText: 文本内容. nParentID: 父项ID. nFlags: 标识, Menu_Item_Flag_

func (m *Menu) AddItemIcon(nID int, pText string, nParentID int, hIcon int, nFlags int) int

菜单_添加项图标 nID: 项ID. pText: 文本内容. nParentID: 父项ID. hIcon: 菜单项图标句柄. nFlags: 标识, Menu_Item_Flag_

func (m *Menu) CloseMenu() int

菜单_关闭

func (m *Menu) DestroyMenu() int

菜单_销毁

func (m *Menu) EnableDrawBackground(bEnable bool) int

菜单_启用用户绘制背景, 是否有用户绘制菜单背景, 如果启用XWM_MENU_DRAW_BACKGROUND和XE_MENU_DRAW_BACKGROUND事件有效 bEnable: 是否启用.

func (m *Menu) EnableDrawItem(bEnable bool) int

菜单_启用用户绘制项, 是否有用户绘制菜单项, 如果启用XWM_MENU_DRAWITEM和XE_MENU_DRAWITEM事件有效 bEnable: 是否启用.

func (m *Menu) GetEndChildItem(nID int) int

菜单_取末尾子项, 返回项ID nID: 项ID.

func (m *Menu) GetFirstChildItem(nID int) int

菜单_取第一个子项, 返回项ID nID: 项ID.

func (m *Menu) GetItemCount() int

菜单_取项数量, 获取菜单项数量, 包含子菜单项

func (m *Menu) GetItemHeight() int

菜单_取项高度

func (m *Menu) GetItemText(nID int) string

菜单_取项文本 nID: 项ID.

func (m *Menu) GetItemTextLength(nID int) int

菜单_取项文本长度, 获取项文本长度, 不包含字符串空终止符 nID: 项ID.

func (m *Menu) GetLeftSpaceText() int

菜单_取左侧文本间隔, 获取菜单项文本左间隔

func (m *Menu) GetLeftWidth() int

菜单_取左侧宽度, 获取左侧区域宽度

func (m *Menu) GetNextSiblingItem(nID int) int

菜单_取下一个兄弟项, 返回项ID nID: 项ID.

func (m *Menu) GetParentItem(nID int) int

菜单_取父项, 返回项ID nID: 项ID.

func (m *Menu) GetPrevSiblingItem(nID int) int

菜单_取上一个兄弟项, 返回项ID nID: 项ID.

func (m *Menu) InsertItem(nID int, pText string, nFlags int, insertID int) int

菜单_插入项 nID: 项ID. pText: 文本内容. nFlags: 标识, Menu_Item_Flag_ insertID: 插入位置ID.

func (m *Menu) InsertItemIcon(nID int, pText string, hIcon int, nFlags int, insertID int) int

菜单_插入项图标 nID: 项ID. pText: 文本内容. hIcon: 菜单项图标句柄. nFlags: 标识, Menu_Item_Flag_ insertID: 插入位置ID.

func (m *Menu) IsItemCheck(nID int) bool

菜单_判断项勾选, 判断菜单项是否勾选 nID: 菜单项ID

func (m *Menu) Popup(hParentWnd int, x int, y int, hParentEle int, nPosition int) bool

菜单_弹出 hParentWnd: 父窗口句柄. x: x坐标. y: y坐标. hParentEle: 父元素句柄, 如果该值不为NULL, hParentEle元素将接收菜单消息事件, 否则将由hParentWnd窗口接收菜单的消息事件 nPosition: 弹出位置, Menu_Popup_Position_

func (m *Menu) SetAutoDestroy(bAuto bool) int

菜单_置自动销毁, 设置是否自动销毁菜单 bAuto: 是否自动销毁.

func (m *Menu) SetBkImage(hImage int) int

菜单_置背景图片 hImage: 图片句柄.

func (m *Menu) SetBorderColor(crColor int, alpha uint8) int

菜单_置边框颜色, 设置菜单边框颜色 crColor: 颜色. alpha: 透明度0-255.

func (m *Menu) SetBorderSize(nLeft int, nTop int, nRight int, nBottom int) int

菜单_置边框大小, 设置弹出菜单窗口边框大小 nLeft: 边大小. nTop: 边大小. nRight: 边大小. nBottom: 边大小.

func (m *Menu) SetItemCheck(nID int, bCheck bool) bool

菜单_置项勾选, 设置菜单项勾选状态 nID: 菜单项ID bCheck: 勾选TRUE

func (m *Menu) SetItemFlags(nID int, uFlags int) bool

菜单_置项标志 nID: 项ID. uFlags: 标识, Menu_Item_Flag_

func (m *Menu) SetItemHeight(height int) int

菜单_置项高度 height: 高度.

func (m *Menu) SetItemIcon(nID int, hIcon int) bool

菜单_置项图标 nID: 项ID. hIcon: 菜单项图标句柄.

func (m *Menu) SetItemText(nID int, pText string) bool

菜单_置项文本 nID: 项ID. pText: 文本内容.

type ProgressBar

type ProgressBar struct {
	Element

	HEle int
}

func NewProgressBar

func NewProgressBar(x int, y int, cx int, cy int, hParent int) *ProgressBar

进度条_创建, 创建进度条元素, 返回元素句柄 x: 元素x坐标. y: 元素y坐标. cx: 宽度. cy: 高度. hParent: 父是窗口资源句柄或UI元素资源句柄.如果是窗口资源句柄将被添加到窗口

func (*ProgressBar) GetPos

func (p *ProgressBar) GetPos() int

进度条_取进度, 获取当前位置点

func (*ProgressBar) GetRange

func (p *ProgressBar) GetRange() int

进度条_取范围

func (*ProgressBar) SetHorizon

func (p *ProgressBar) SetHorizon(bHorizon bool) int

进度条_置水平, 设置水平或垂直 bHorizon: 水平或垂直.

func (*ProgressBar) SetImageLoad

func (p *ProgressBar) SetImageLoad(hImage int) int

进度条_置进度图片 hImage: 图片句柄.

func (*ProgressBar) SetPos

func (p *ProgressBar) SetPos(pos int) int

进度条_置进度, 设置位置点 pos: 位置点.

func (*ProgressBar) SetRange

func (p *ProgressBar) SetRange(range_ int) int

进度条_置范围, 设置范围 range_: 范围.

func (*ProgressBar) SetSpaceTwo

func (p *ProgressBar) SetSpaceTwo(leftSize int, rightSize int) int

进度条_置两端大小, 设置两端间隔大小 leftSize: 左边间隔大小. rightSize: 右边间隔大小.

type TextLink struct {
	Element

	HEle int
}
func NewTextLink(x int, y int, cx int, cy int, pName string, hParent int) *TextLink

文本链接_创建, 创建静态文本连接元素, 返回元素句柄 x: 元素x坐标. y: 元素y坐标. cx: 宽度. cy: 高度. pName: 文本内容. hParent: 父是窗口资源句柄或UI元素资源句柄.如果是窗口资源句柄将被添加到窗口, 如果是元素资源句柄将被添加到元素

func (*TextLink) EnableUnderlineLeave

func (t *TextLink) EnableUnderlineLeave(bEnable bool) int

文本链接_启用离开状态下划线, 启用下划线, 鼠标离开状态 bEnable: 是否启用.

func (*TextLink) EnableUnderlineStay

func (t *TextLink) EnableUnderlineStay(bEnable bool) int

文本链接_停留状态下划线, 启用下划线, 鼠标停留状态 bEnable: 是否启用.

func (*TextLink) SetTextColorStay

func (t *TextLink) SetTextColorStay(color int, alpha uint8) int

文本链接_置停留状态文本颜色, 设置文本颜色, 鼠标停留状态 color: RGB颜色值. alpha: 透明度.

func (*TextLink) SetUnderlineColorLeave

func (t *TextLink) SetUnderlineColorLeave(color int, alpha uint8) int

文本链接_置离开状态下划线颜色, 设置下划线颜色, 鼠标离开状态 color: RGB颜色值. alpha: 透明度.

func (*TextLink) SetUnderlineColorStay

func (t *TextLink) SetUnderlineColorStay(color int, alpha uint8) int

文本链接_置停留状态下划线颜色, 置下划线颜色, 鼠标停留状态 color: RGB颜色值. alpha: 透明度.

type Widget

type Widget struct {
	HXCGUI int
}

func (*Widget) EnableLayoutControl

func (w *Widget) EnableLayoutControl(bEnable bool) int

窗口组件_启用布局控制 bEnable:

func (*Widget) GetHWINDOW

func (w *Widget) GetHWINDOW() int

窗口组件_取HWINDOW

func (*Widget) GetHWND

func (w *Widget) GetHWND() int

窗口组件_取HWND

func (*Widget) GetParent

func (w *Widget) GetParent() int

窗口组件_取父对象, 获取父对象, 父可能是元素或窗口, 通过此函数可以检查是否有父

func (*Widget) GetParentEle

func (w *Widget) GetParentEle() int

窗口组件_取父元素

func (*Widget) IsLayoutControl

func (w *Widget) IsLayoutControl() bool

窗口组件_是否布局控制

func (*Widget) IsShow

func (w *Widget) IsShow() bool

窗口组件_判断显示, 判断UI对象是否显示

func (*Widget) LayoutItem_EnableFloat

func (w *Widget) LayoutItem_EnableFloat(bFloat bool) int

窗口组件_布局项_启用浮动, 向反方向对齐 bFloat: 是否浮动

func (*Widget) LayoutItem_EnableSwap

func (w *Widget) LayoutItem_EnableSwap(bEnable bool) int

窗口组件_布局项_启用交换, 根据水平垂直布局变换, 交换属性(宽度,高度,最小宽度,最小高度) bEnable: 是否启用

func (*Widget) LayoutItem_EnableWrap

func (w *Widget) LayoutItem_EnableWrap(bWrap bool) int

窗口组件_布局项_启用换行, 强制换行 bWrap: 是否换行

func (*Widget) LayoutItem_GetHeight

func (w *Widget) LayoutItem_GetHeight(pType, pHeight *int) int

窗口组件_布局项_取高度 pType: 返回类型 pHeight: 返回高度

func (*Widget) LayoutItem_GetMargin

func (w *Widget) LayoutItem_GetMargin(pMargin *xc.RECT) int

窗口组件_布局项_置对齐 pMargin: 接收返回

func (*Widget) LayoutItem_GetWidth

func (w *Widget) LayoutItem_GetWidth(pType, pWidth *int) int

窗口组件_布局项_取宽度 pType: 返回类型 pWidth: 返回宽度

func (*Widget) LayoutItem_SetAlign

func (w *Widget) LayoutItem_SetAlign(nAlign int) int

窗口组件_布局项_置对齐, 根据水平垂直轴变化对齐 nAlign: 对齐方式, Layout_Align_Axis_

func (*Widget) LayoutItem_SetHeight

func (w *Widget) LayoutItem_SetHeight(nType, nHeight int) int

窗口组件_布局项_置高度 nType: 类型, Layout_Size_ nHeight: 高度

func (*Widget) LayoutItem_SetMargin

func (w *Widget) LayoutItem_SetMargin(left, top, right, bottom int) int

窗口组件_布局项_置外间距

func (*Widget) LayoutItem_SetMinSize

func (w *Widget) LayoutItem_SetMinSize(width, height int) int

窗口组件_布局项_置最小大小, 限制大小仅针对缩放有效(自动, 填充父, 比例, 百分比) width: 最小宽度 height: 最小高度

func (*Widget) LayoutItem_SetPosition

func (w *Widget) LayoutItem_SetPosition(left, top, right, bottom int) int

窗口组件_布局项_置位置, 相对位置, 值大于等于0有效 left: 左边距离 top: 上边距离 right: 右边距离 bottom: 下边距离

func (*Widget) LayoutItem_SetWidth

func (w *Widget) LayoutItem_SetWidth(nType, nWidth int) int

窗口组件_布局项_置宽度 nType: 类型, Layout_Size_ nWidth: 宽度

func (*Widget) Show

func (w *Widget) Show(bShow bool) int

窗口组件_显示 bShow: 是否显示

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL