Commit Graph

36 Commits

Author SHA1 Message Date
Albrecht Schlosser
810b914717 Update examples: minor changes, rename, update .gitignore
.gitignore, Makefile: add missing files, sort example filenames.
Makefile.FLTK: update and extend FLTKCONFIG definition examples.

Rename README.examples to README.txt (easier for Windows users).

README.txt: minor edits, fix link, remove trailing whitespace.
2018-12-10 15:00:45 +01:00
Greg Ercolano
d1df5376f1 Added example of dynamically setting style buffer with text editor.
This example greatly simplifies the test/editor example to focus on
just the mechanics of dynamic style buffer manipulation via the
add_modify_callback().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-29 19:54:10 +00:00
Albrecht Schlosser
76d5ed4f4b Update Makefile + ignored files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12986 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-27 20:44:21 +00:00
Greg Ercolano
78c699caa0 Makefile for new example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12534 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-30 03:43:42 +00:00
Greg Ercolano
68f07db58a Added Fl_Simple_Terminal widget, and mods to test+example programs (STR #3411).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12506 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-17 00:28:56 +00:00
Greg Ercolano
88204a5524 Added example code to demonstrate Fl_Multi_Label for STR#3400.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12440 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-11 00:50:06 +00:00
Albrecht Schlosser
f643714879 Add draggable-group example program.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12372 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-05 16:44:49 +00:00
Greg Ercolano
0173358351 Added new example program 'nativefilechooser-simple.cxx'
(Simpler than the application example)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12321 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-17 01:13:28 +00:00
Albrecht Schlosser
333b5268c3 Add FLTK version test program examples/fltk-versions.cxx.
This program can be used to verify that the FLTK runtime system
(ABI version) is binary compatible with the compiled and linked program.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10712 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-21 12:44:46 +00:00
Ian MacArthur
9c583c5bbc Add Manolo's new shapedwindow demo to the Makefile
for the examples folder.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10258 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-28 09:13:27 +00:00
Manolo Gouy
07dd8ba328 Added copy/paste from/to FLTK applications of graphical data.
Added Fl_Image_Surface class to draw into an Fl_Image object.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10159 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-23 16:47:21 +00:00
Greg Ercolano
911ab3948a Added Fl_Tree sort example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10035 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-16 10:26:44 +00:00
Greg Ercolano
88cea3c82d o Added Fl_Tree::item_draw_callback(), letting one define a custom draw function for Fl_Tree_Item's.
o Added examples/tree-custom-draw-items.cxx to demonstrate its use.
o Fixed small doc error for recent Fl_Tree::get_selected_items()



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-11-10 04:33:44 +00:00
Greg Ercolano
5979afb5bf Adding an example to demonstrate how to create an Fl_Browser with icons on the items.
Based on an example I'd added to STR#1739 to demo someone's patch.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-23 18:40:53 +00:00
Greg Ercolano
16fb1bad6a Added a new example to demonstrate complex widgets as children
of a tree with custom resizing behavior, selectable contents, etc.

Also demonstrates the need for the new FL_TREE_ITEM_HEIGHT_FROM_WIDGET feature.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9405 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-27 02:11:37 +00:00
Greg Ercolano
c7044ca009 Optimizations for when Fl_Tree is a container of FLTK widgets.
o Don't draw FLTK widgets outside tree's viewport.
   o Added tree-as-container.cxx example program, demos tree 
     w/50k tree items each with 6 widgets (300k total)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-18 15:20:20 +00:00
Greg Ercolano
db2cca57f1 Added table-with-keynav.cxx to emphasize keyboard/mouse selection
(as per a question on the newsgroup about how to do this..)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9344 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-14 19:45:50 +00:00
Greg Ercolano
a9397d9ca8 Added progress bar widget demo.
Nabbed from Greg's cheat sheet, with his permission.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9255 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-02-29 05:37:30 +00:00
Greg Ercolano
35c7c2f14c Makefile modified to demonstrate use of fltk-config.
FLTK settings defined in a separate Makefile.FLTK
    which users can nab for their own use.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8324 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 16:11:45 +00:00
Greg Ercolano
94a3cdaa47 Added dnd example to Makefile.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8249 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-10 22:25:59 +00:00
Albrecht Schlosser
3eb5a172a3 Changed remaining _WIN32 to WIN32.
Added 'all' target to Makefile. Do we need the 'default' target?


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8194 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-05 22:28:39 +00:00
Greg Ercolano
acfc66b01b Add an simple example application to open/save files using the FNFC.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8096 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-21 23:04:16 +00:00
Greg Ercolano
675fff09cf Renamed table-with-keyboard-nav.cxx -> table-spreadsheet-with-keyboard-nav.cxx,
(since it is a spreadsheet as well as demonstrating keyboard nav in tables).



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8002 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 18:28:07 +00:00
Greg Ercolano
7457f0dcaf Added table-spreadsheet example.
Various example mods.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7994 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 07:49:22 +00:00
Greg Ercolano
4525d46ed9 Added color Fl_Text_Display example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-10 05:27:20 +00:00
Greg Ercolano
5ca2671de8 Added texteditor-simple example program.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7991 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-09 20:26:00 +00:00
Greg Ercolano
4b22612fc4 Menubar example added.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7984 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-09 00:05:24 +00:00
Greg Ercolano
ddf187af37 Added sortable table example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7926 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-30 17:02:11 +00:00
Greg Ercolano
7d73741655 Added table-simple example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7917 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-30 04:39:30 +00:00
Greg Ercolano
3f41385ebc Imported widgettable.cxx from original Fl_Table widget test suite
as an FLTK example 'table-as-container.cxx'.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7754 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-26 12:21:17 +00:00
Greg Ercolano
c9491500e5 Added new table-with-keyboard-nav.cxx to solve STR #2374.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7741 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-26 08:53:39 +00:00
Greg Ercolano
aea80f7bb6 Added example howto for making a button with text over an image.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7740 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-26 02:32:02 +00:00
engelsman
a69425441a added examples/howto-parse-args.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7727 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-23 13:19:37 +00:00
Greg Ercolano
4523405228 wizard example mods, Makefile.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7631 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-06 21:43:59 +00:00
Greg Ercolano
5162d3bc8d Added howto-add_fd_and-popen.cxx, added missing version Id EOF markers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7629 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-06 21:24:06 +00:00
Greg Ercolano
384929e7d2 Added examples directory
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7628 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-06-06 20:28:37 +00:00