summaryrefslogtreecommitdiff
path: root/examples/howto-text-over-image-button.cxx
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2010-12-10 07:49:22 +0000
committerGreg Ercolano <erco@seriss.com>2010-12-10 07:49:22 +0000
commit7457f0dcafa3d9f82acb9d1e802daa45ec917415 (patch)
treec80008a88164a5d7f39441b515587e4c6ca0d45a /examples/howto-text-over-image-button.cxx
parent4525d46ed947b64cbdd30ad5af6d886c3b12cf1f (diff)
Added table-spreadsheet example.
Various example mods. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7994 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'examples/howto-text-over-image-button.cxx')
-rw-r--r--examples/howto-text-over-image-button.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/examples/howto-text-over-image-button.cxx b/examples/howto-text-over-image-button.cxx
index a34782961..f4fad549f 100644
--- a/examples/howto-text-over-image-button.cxx
+++ b/examples/howto-text-over-image-button.cxx
@@ -1,9 +1,18 @@
//
// "$Id$"
//
-// Simple example of a button with text over an image
-// Originally from erco's cheat sheet 10/25/2010, permission by author.
+// Simple example of a button with text over an image
+// Originally from erco's cheat sheet 10/25/2010, permission by author.
//
+// This shows how to include an 'inline' image (.xpm)
+// and have it appear on an Fl_Button. Demonstrates the use of the
+// FL_ALIGN_IMAGE_BACKDROP align() flag (new in FLTK 1.3.0).
+//
+// Note that the XPM can just as easily be in an #include file,
+// but to keep the example self contained, the image (a gray scale
+// gradient) is included here.
+//
+// Copyright 2010 Greg Ercolano.
// Copyright 1998-2010 by Bill Spitzak and others.
//
// This library is free software; you can redistribute it and/or