From 3110a13aa22c13d8675db6542ab6e9860ff5dc0c Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Fri, 6 May 2011 04:27:49 +0000 Subject: Modified tree-simple to demonstrate specifying front+back slashes in tree. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8635 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- examples/tree-simple.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'examples') diff --git a/examples/tree-simple.cxx b/examples/tree-simple.cxx index df6722b2d..8faad7ec9 100644 --- a/examples/tree-simple.cxx +++ b/examples/tree-simple.cxx @@ -75,15 +75,14 @@ int main(int argc, char *argv[]) { tree->add("Simpsons/Marge"); tree->add("Simpsons/Bart"); tree->add("Simpsons/Lisa"); - tree->add("Holidays/01\\/01 New Years"); - tree->add("Holidays/02\\/15 Valentine's Day"); - tree->add("Holidays/05\\/05 Cinco de Mayo"); - tree->add("Holidays/07\\/04 Independence Day"); - tree->add("Holidays/12\\/25 Christmas"); + tree->add("Pathnames/\\/bin"); // front slashes + tree->add("Pathnames/\\/usr\\/sbin"); + tree->add("Pathnames/C:\\\\Program Files"); // backslashes + tree->add("Pathnames/C:\\\\Documents and Settings"); // Start with some items closed tree->close("Simpsons"); - tree->close("Holidays"); + tree->close("Pathnames"); } win->end(); win->resizable(win); -- cgit v1.2.3