新增tavleView控件,初步可用

This commit is contained in:
睿 安
2026-01-28 15:00:12 +08:00
parent bcbf890ebd
commit abcfc78596
494 changed files with 3202 additions and 484 deletions

View File

@@ -54,6 +54,15 @@ void mainForm::OnNotify(Control* sender, EventArgs& args)
textAdmin->Insert(L"\n测试成功!",true);
textAdmin->GetScrollBar()->ScrollTo(1.0);
}
TableView* tableView = (TableView*)FindControl("tableViewAdmin"); //获取表格控件
if (tableView) {
tableView->SetColumnType(4, ezui::CellType::CheckBox);
tableView->SetColumnType(5, ezui::CellType::ComboBox);
tableView->SetColumnComboItems(5, {L"选择1", L"选择2" , L"选择3" });
tableView->InsertRow(1);
tableView->SetRowData(tableView->GetRowCount() - 1, {L"uid1", L"192.168.200.131"});
}
}
}
break;