fltk/test/hello.cxx
Matthias Melcher 272b19ff34 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
2008-02-20 18:23:56 +00:00

23 lines
448 B
C++

#include "FL/Fl.H"
#include "FL/Fl_Double_Window.H"
#include "FL/Fl_Output.H"
#include "FL/fl_ask.H"
void cb(Fl_Widget*, void*)
{
fl_alert("Called back");
}
int main()
{
Fl_Double_Window win(350, 300);
Fl_Output op(200, 100, 150, 20, "Should Not be Called Back");
op.value("Click Me");
op.callback(cb);
op.when(FL_WHEN_NEVER);
win.end();
win.show();
return Fl::run();
}