STR #1868: fixed horizontal scrolbar in help view thanks to wavexx

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2008-02-20 18:23:56 +00:00
parent 3e9fc08353
commit 272b19ff34

View File

@ -1,48 +1,22 @@
// #include "FL/Fl.H"
// "$Id$" #include "FL/Fl_Double_Window.H"
// #include "FL/Fl_Output.H"
// Hello, World! program for the Fast Light Tool Kit (FLTK). #include "FL/fl_ask.H"
//
// Copyright 1998-2005 by Bill Spitzak and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Library General Public License for more details.
//
// You should have received a copy of the GNU Library General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
// USA.
//
// Please report all bugs and problems on the following page:
//
// http://www.fltk.org/str.php
//
#include <FL/Fl.H> void cb(Fl_Widget*, void*)
#include <FL/Fl_Window.H> {
#include <FL/Fl_Box.H> fl_alert("Called back");
#include <FL/filename.H> }
int main()
int main(int argc, char **argv) { {
char b[1024]; Fl_Double_Window win(350, 300);
fl_filename_relative(b, 1024, "/Users/matt/proj/source"); Fl_Output op(200, 100, 150, 20, "Should Not be Called Back");
Fl_Window *window = new Fl_Window(300,180); op.value("Click Me");
Fl_Box *box = new Fl_Box(FL_UP_BOX,20,40,260,100,"Hello, World!"); op.callback(cb);
box->labelfont(FL_BOLD+FL_ITALIC); op.when(FL_WHEN_NEVER);
box->labelsize(36); win.end();
box->labeltype(FL_SHADOW_LABEL); win.show();
window->end(); return Fl::run();
window->show(argc, argv);
return Fl::run();
} }
//
// End of "$Id$".
//