mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-14 22:03:30 -06:00
Controls4U_Demo: Added ConsoleOutput
git-svn-id: svn://ultimatepp.org/upp/trunk@13320 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
84be7fb686
commit
65b9f87564
1 changed files with 5 additions and 0 deletions
|
|
@ -63,6 +63,10 @@ void Controls4U_Demo::Timer() {
|
|||
}
|
||||
|
||||
GUI_APP_MAIN {
|
||||
ConsoleOutput console(true);
|
||||
|
||||
printf("Controls4U_Demo\n");
|
||||
|
||||
Controls4U_Demo().Run();
|
||||
}
|
||||
|
||||
|
|
@ -288,6 +292,7 @@ SplitterButton_Demo::SplitterButton_Demo() {
|
|||
|
||||
void Controls4U_Demo::OnGridSel() {
|
||||
int row = grid.GetCursor();
|
||||
Cout() << "Selected: " << row << "\n";
|
||||
for (int i = 0; i < controls.GetCount(); ++i) {
|
||||
if (i == row)
|
||||
controls[i]->Show();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue