#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Tree.H>
int main(int argc, char *argv[]) {
Fl_Double_Window*win = new Fl_Double_Window(100,100);
Fl_Tree *tree = new Fl_Tree(0,0,100, 70);
tree->add("abcdefghijklmnopqrstuvwxyz");
tree->add("abcdefghijklmnopqrstuvwxyz/abcdefghijklmnopqrstuvwxyz");
tree->add("abcdefghijklmnopqrstuvwxyz/abcdefghijklmnopqrstuvwx/abcdefghijklmnopqrstuvwxyz");
win->show();
return Fl::run();
}
Hmm, I can't replicate on Linux with 1.3.3 or 1.3.4; both
horizontal and vertical
scrollbars show up:
..which is what I'd expect to see, given you've set the
window's
width,height to only 100,100.
I don't have windows handy at the moment so I can't check
that, but if you
focus on Linux I can try to help you with that.
Can you send a screenshot of what you're seeing, along with
more details
about the distro/window manager and how you installed FLTK,
giving any
special details about build options (configure/cmake), or if
you installed
from internet binaries, include yum/apt-get installer details.
Thank you for replaying Sir,
Below the screenshot and configure from my distro Tinycore 8 32 bit with FLWM window manager
tc@box:/tmp$ fltk-config --version
1.3.4
tc@box:/tmp$ fltk-config --api-version
1.3
tc@box:/tmp$ g++ tree2.cpp -o tree `fltk-config --cxxflags --ldflags`
tc@box:/tmp$ ./tree
http://distro.ibiblio.org/tinycorelinux/8.x/x86/tcz/src/fltk/
cd fltk-1.3.4-1
patch -Np1 -i ../fltk-no-printing.patch [fluid will not compile]
CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --enable-shared --disable-gl --disable-xinerama --disable-xft --disable-xfixes --disable-xcursor --disable-xrender
Configuration Summary
Directories: prefix=/usr/local
bindir=${exec_prefix}/bin
datadir=${datarootdir}
datarootdir=${prefix}/share
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib
mandir=${datarootdir}/man
Graphics: X11+Xdbe
Image Libraries: JPEG=System
PNG=System
ZLIB=System
Large Files: YES
OpenGL: NO
Threads: YES