fix window titles for table examples

This commit is contained in:
Greg Ercolano 2023-12-14 14:43:46 -08:00
parent 14f4dec0b9
commit bbafcafbe1
7 changed files with 7 additions and 7 deletions

View File

@ -147,7 +147,7 @@ void button_cb(Fl_Widget *w, void*) {
}
int main() {
Fl_Double_Window win(940, 500, "table as container");
Fl_Double_Window win(940, 500, "Table As Container");
WidgetTable table(20, 20, win.w()-40, win.h()-40, "FLTK widget table");
table.SetSize(50, 50);
win.end();

View File

@ -106,7 +106,7 @@ public:
};
int main(int argc, char **argv) {
Fl_Double_Window win(900, 400, "Simple Table");
Fl_Double_Window win(900, 400, "Table Simple");
MyTable table(10,10,880,380);
win.end();
win.resizable(table);

View File

@ -286,7 +286,7 @@ void MyTable::event_callback2() {
}
int main() {
Fl_Double_Window win(900,500,"Table Sorting");
Fl_Double_Window win(900,500,"Table Sort");
MyTable table(MARGIN, MARGIN, win.w()-MARGIN*2, win.h()-MARGIN*2);
table.selection_color(FL_YELLOW);
table.col_header(1);

View File

@ -291,7 +291,7 @@ void setrows_cb(Fl_Widget* w, void* v) {
int main() {
Fl::option(Fl::OPTION_ARROW_FOCUS, 1); // we want arrow keys to navigate table's widgets
Fl_Double_Window *win = new Fl_Double_Window(922, 382, "Fl_Table Spreadsheet with Keyboard Navigation");
Fl_Double_Window *win = new Fl_Double_Window(922, 382, "Table Spreadsheet with Keyboard Navigation");
Spreadsheet* table = new Spreadsheet(20, 20, win->w()-80, win->h()-80);
// Table rows
table->row_header(1);

View File

@ -248,7 +248,7 @@ void Spreadsheet::event_callback2() {
}
int main() {
Fl_Double_Window *win = new Fl_Double_Window(862, 322, "Fl_Table Spreadsheet");
Fl_Double_Window *win = new Fl_Double_Window(862, 322, "Table Spreadsheet");
Spreadsheet *table = new Spreadsheet(10, 10, win->w()-20, win->h()-20);
table->tab_cell_nav(1); // enable tab navigation of table cells (instead of fltk widgets)
table->tooltip("Use keyboard to navigate cells:\n"

View File

@ -149,7 +149,7 @@ void RowSelect_CB(Fl_Widget *w, void*) {
}
int main() {
Fl::option(Fl::OPTION_ARROW_FOCUS, 0); // disable arrow focus nav (we want arrows to control cells)
Fl_Double_Window win(862, 312, "table-with-keynav");
Fl_Double_Window win(862, 312, "Table With Keynav");
win.begin();
// Create table
G_table = new MyTable(10, 30, win.w()-20, win.h()-70, "Times Table");

View File

@ -136,7 +136,7 @@ void Less_CB(Fl_Widget *w, void *d) {
}
int main(int argc, char **argv) {
Fl_Double_Window *win = new Fl_Double_Window(500, 400, "Simple Table");
Fl_Double_Window *win = new Fl_Double_Window(500, 400, "Table With Right Column Stretch Fit");
MyTable *table = new MyTable(10,10,win->w()-20,340);
Fl_Button more(10, 360,100,25,"+ Row"); more.callback(More_CB, (void*)table);
Fl_Button less(220,360,100,25,"- Row"); less.callback(Less_CB, (void*)table);