U: TBufferPanel

This commit is contained in:
杨红岩 2023-06-18 12:17:22 +08:00
parent 0cc3ed3fda
commit e55b8bce84
3 changed files with 29 additions and 3 deletions

View File

@ -601,7 +601,7 @@ func (m *TBufferPanel) SetCanvas(value *lcl.TCanvas) {
// SetOnPaint
//
// 设置绘画事件。
func (m *TBufferPanel) SetOnPaint(fn TNotifyEvent) {
func (m *TBufferPanel) SetOnPaint(fn lcl.TNotifyEvent) {
imports.SysCallN(def.BufferPanel_SetOnPaint, m.Instance(), api.MakeEventDataPtr(fn))
}
@ -1097,7 +1097,7 @@ func (m *TBufferPanel) SetOnAlignPosition(fn lcl.TAlignPositionEvent) {
// 设置控件单击事件。
//
// Set control click event.
func (m *TBufferPanel) SetOnClick(fn TNotifyEvent) {
func (m *TBufferPanel) SetOnClick(fn lcl.TNotifyEvent) {
imports.SysCallN(def.BufferPanel_SetOnClick, m.Instance(), api.MakeEventDataPtr(fn))
}
@ -1117,7 +1117,7 @@ func (m *TBufferPanel) SetOnDockDrop(fn lcl.TDockDropEvent) {
// SetOnDblClick
//
// 设置双击事件。
func (m *TBufferPanel) SetOnDblClick(fn TNotifyEvent) {
func (m *TBufferPanel) SetOnDblClick(fn lcl.TNotifyEvent) {
imports.SysCallN(def.BufferPanel_SetOnDblClick, m.Instance(), api.MakeEventDataPtr(fn))
}

13
cef/buffer-panel_other.go Normal file
View File

@ -0,0 +1,13 @@
//----------------------------------------
//
// Copyright © yanghy. All Rights Reserved.
//
// Licensed under Apache License Version 2.0, January 2004
//
// https://www.apache.org/licenses/LICENSE-2.0
//
//----------------------------------------
// CEF TBufferPanel
package cef

View File

@ -0,0 +1,13 @@
//----------------------------------------
//
// Copyright © yanghy. All Rights Reserved.
//
// Licensed under Apache License Version 2.0, January 2004
//
// https://www.apache.org/licenses/LICENSE-2.0
//
//----------------------------------------
// CEF TBufferPanel
package cef