表格新增右键单击回调函数

This commit is contained in:
睿 安
2026-01-28 17:15:41 +08:00
parent 2ff880c267
commit 4fe4749826
17 changed files with 53 additions and 21 deletions

View File

@@ -253,6 +253,10 @@ namespace ezui {
// 参数: row, col, oldValue, newValue
std::function<void(int, int, const UIString&, const UIString&)> CellEditFinished = nullptr;
// 鼠标右键单击回调
// 参数: row, col (row=-1 表示点击在表头col=-1 表示点击在第一列)
std::function<void(int, int)> RightClick = nullptr;
public:
TableView(Object* parentObject = nullptr);
virtual ~TableView();