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
This commit is contained in:
parent
6871a6512a
commit
3110a13aa2
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user