summaryrefslogtreecommitdiff
path: root/examples/table-spreadsheet.cxx
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2015-08-19 21:38:17 +0000
committerGreg Ercolano <erco@seriss.com>2015-08-19 21:38:17 +0000
commit5534ce4c57d9657982ba4e062c6e8793f78aa48b (patch)
tree30709bc1f5f750c34848f6c7d312f309d7ab52b6 /examples/table-spreadsheet.cxx
parentdaeed067c8b530a0042e649e83e72827c11d3c8b (diff)
Small mod to enable highlighting in total cells.
This way someone hitting 'End' can see where the "cursor" is. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10835 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'examples/table-spreadsheet.cxx')
-rw-r--r--examples/table-spreadsheet.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/table-spreadsheet.cxx b/examples/table-spreadsheet.cxx
index 408f1f3a0..72fb0e2f3 100644
--- a/examples/table-spreadsheet.cxx
+++ b/examples/table-spreadsheet.cxx
@@ -162,7 +162,7 @@ void Spreadsheet::draw_cell(TableContext context, int R,int C, int X,int Y,int W
if ( C < cols()-1 && R < rows()-1 ) {
fl_draw_box(FL_THIN_UP_BOX, X,Y,W,H, is_selected(R,C) ? FL_YELLOW : FL_WHITE);
} else {
- fl_draw_box(FL_THIN_UP_BOX, X,Y,W,H, 0xbbddbb00); // money green
+ fl_draw_box(FL_THIN_UP_BOX, X,Y,W,H, is_selected(R,C) ? 0xddffdd00 : 0xbbddbb00); // money green
}
// Text
fl_push_clip(X+3, Y+3, W-6, H-6);