summaryrefslogtreecommitdiff
path: root/test/output.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2008-12-21 15:38:52 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2008-12-21 15:38:52 +0000
commit1b788c8c14c1f3df8d51bc5af2f33585a861566d (patch)
tree5f572e57f9422fb59fd87e5a6d73cc5ed0e6caf2 /test/output.cxx
parent4495388e8deffa5df3ba6d6d267dbce24325dbfd (diff)
Coordinate transformations in test programs to avoid using the old
Fl_Group::forms_end() method, because this _may_ be removed later. Replaced forms_end() with end(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6598 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/output.cxx')
-rw-r--r--test/output.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/output.cxx b/test/output.cxx
index 7928a69fe..ac0996d01 100644
--- a/test/output.cxx
+++ b/test/output.cxx
@@ -65,19 +65,19 @@ void input_cb(Fl_Widget *,void *) {
int main(int argc, char **argv) {
window = new Fl_Window(400,400);
- input = new Fl_Input(50,0,350,25);
+ input = new Fl_Input(50,375,350,25);
input->static_value("The quick brown fox\njumped over\nthe lazy dog.");
input->when(FL_WHEN_CHANGED);
input->callback(input_cb);
- sizes = new Fl_Hor_Value_Slider(50,25,350,25,"Size");
+ sizes = new Fl_Hor_Value_Slider(50,350,350,25,"Size");
sizes->align(FL_ALIGN_LEFT);
sizes->bounds(1,64);
sizes->step(1);
sizes->value(14);
sizes->callback(size_cb);
- fonts = new Fl_Hor_Value_Slider(50,50,350,25,"Font");
+ fonts = new Fl_Hor_Value_Slider(50,325,350,25,"Font");
fonts->align(FL_ALIGN_LEFT);
fonts->bounds(0,15);
fonts->step(1);
@@ -90,12 +90,12 @@ int main(int argc, char **argv) {
text2->tooltip("This is an Fl_Multiline_Output widget.");
window->resizable(text2);
- text = new Fl_Output(100,280,200,30,"Fl_Output");
+ text = new Fl_Output(100,90,200,30,"Fl_Output");
text->value(input->value());
text->align(FL_ALIGN_BOTTOM);
text->tooltip("This is an Fl_Output widget.");
- window->forms_end();
+ window->end();
window->show(argc,argv);
return Fl::run();
}