From 7457f0dcafa3d9f82acb9d1e802daa45ec917415 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Fri, 10 Dec 2010 07:49:22 +0000 Subject: Added table-spreadsheet example. Various example mods. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7994 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- examples/howto-text-over-image-button.cxx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'examples/howto-text-over-image-button.cxx') 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 -- cgit v1.2.3