summaryrefslogtreecommitdiff
path: root/examples/howto-text-over-image-button.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-01 18:03:10 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-06 20:28:20 +0200
commitf09e17c3c564e8310125a10c03397cbf473ff643 (patch)
tree8d0fd4a28e3686c33aaa140d07ddba26ab28bdc2 /examples/howto-text-over-image-button.cxx
parentb0e0c355edaa2e23148cb0260ada907aec930f05 (diff)
Remove $Id$ tags, update URL's, and more
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
Diffstat (limited to 'examples/howto-text-over-image-button.cxx')
-rw-r--r--examples/howto-text-over-image-button.cxx40
1 files changed, 17 insertions, 23 deletions
diff --git a/examples/howto-text-over-image-button.cxx b/examples/howto-text-over-image-button.cxx
index f102dc70b..f0861a9c1 100644
--- a/examples/howto-text-over-image-button.cxx
+++ b/examples/howto-text-over-image-button.cxx
@@ -1,16 +1,14 @@
//
-// "$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).
//
-// 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.
+// 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.
@@ -19,11 +17,11 @@
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the license at:
//
-// http://www.fltk.org/COPYING.php
+// https://www.fltk.org/COPYING.php
//
-// Please report all bugs and problems on the following page:
+// Please see the following page on how to report bugs and issues:
//
-// http://www.fltk.org/str.php
+// https://www.fltk.org/bugs.php
//
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
@@ -33,12 +31,12 @@
/* XPM */
static const char * gradient_xpm[] = {
"135 20 26 1",
-"a c #e0e0e0", "b c #dcdcdc", "c c #d8d8d8", "d c #d4d4d4", "e c #d2d2d2",
-"f c #d0d0d0", "g c #cccccc", "h c #c8c8c8", "i c #c4c4c4", "j c #c2c2c2",
-"k c #c0c0c0", "l c #bcbcbc", "m c #b8b8b8", "n c #b4b4b4", "o c #b2b2b2",
-"p c #b0b0b0", "q c #acacac", "r c #a8a8a8", "s c #a4a4a4", "t c #a2a2a2",
-"u c #a0a0a0", "v c #9c9c9c", "w c #989898", "x c #949494", "y c #929292",
-"z c #909090",
+"a c #e0e0e0", "b c #dcdcdc", "c c #d8d8d8", "d c #d4d4d4", "e c #d2d2d2",
+"f c #d0d0d0", "g c #cccccc", "h c #c8c8c8", "i c #c4c4c4", "j c #c2c2c2",
+"k c #c0c0c0", "l c #bcbcbc", "m c #b8b8b8", "n c #b4b4b4", "o c #b2b2b2",
+"p c #b0b0b0", "q c #acacac", "r c #a8a8a8", "s c #a4a4a4", "t c #a2a2a2",
+"u c #a0a0a0", "v c #9c9c9c", "w c #989898", "x c #949494", "y c #929292",
+"z c #909090",
"aaaaaaaaabbbbbbbbcccccccddddddeeeeeefffffffgggggggghhhhhhhiiiiiiijjjjjjjkkkkkkkklllllllmmmmmmmnnnnnnnnnoooooooppppppppqqqqqqrrrrrrrssss",
"aaaaaabbbbbbbbcccccccddddddeeeeeefffffffgggggggghhhhhhhiiiiiiijjjjjjjkkkkkkkklllllllmmmmmmmnnnnnnnnnoooooooppppppppqqqqqqrrrrrrrsssssst",
"aaabbbbbbbbcccccccddddddeeeeeefffffffgggggggghhhhhhhiiiiiiijjjjjjjkkkkkkkklllllllmmmmmmmnnnnnnnnnoooooooppppppppqqqqqqrrrrrrrsssssssstt",
@@ -76,7 +74,3 @@ int main(int argc, char **argv) {
win->show(argc,argv);
return(Fl::run());
}
-
-//
-// End of "$Id$".
-//