summaryrefslogtreecommitdiff
path: root/test/label.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/label.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/label.cxx')
-rw-r--r--test/label.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/test/label.cxx b/test/label.cxx
index b86900dc6..7e55211cc 100644
--- a/test/label.cxx
+++ b/test/label.cxx
@@ -109,50 +109,50 @@ Fl_Menu_Item choices[] = {
int main(int argc, char **argv) {
window = new Fl_Double_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 jumped over the 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);
fonts->value(0);
fonts->callback(font_cb);
- Fl_Group *g = new Fl_Group(0,0,0,0);
- leftb = new Fl_Toggle_Button(50,75,50,25,"left");
+ Fl_Group *g = new Fl_Group(50,300,350,25);
+ leftb = new Fl_Toggle_Button(50,300,50,25,"left");
leftb->callback(button_cb);
- rightb = new Fl_Toggle_Button(100,75,50,25,"right");
+ rightb = new Fl_Toggle_Button(100,300,50,25,"right");
rightb->callback(button_cb);
- topb = new Fl_Toggle_Button(150,75,50,25,"top");
+ topb = new Fl_Toggle_Button(150,300,50,25,"top");
topb->callback(button_cb);
- bottomb = new Fl_Toggle_Button(200,75,50,25,"bottom");
+ bottomb = new Fl_Toggle_Button(200,300,50,25,"bottom");
bottomb->callback(button_cb);
- insideb = new Fl_Toggle_Button(250,75,50,25,"inside");
+ insideb = new Fl_Toggle_Button(250,300,50,25,"inside");
insideb->callback(button_cb);
- wrapb = new Fl_Toggle_Button(300,75,50,25,"wrap");
+ wrapb = new Fl_Toggle_Button(300,300,50,25,"wrap");
wrapb->callback(button_cb);
- clipb = new Fl_Toggle_Button(350,75,50,25,"clip");
+ clipb = new Fl_Toggle_Button(350,300,50,25,"clip");
clipb->callback(button_cb);
g->resizable(insideb);
- g->forms_end();
+ g->end();
- Fl_Choice *c = new Fl_Choice(50,100,200,25);
+ Fl_Choice *c = new Fl_Choice(50,275,200,25);
c->menu(choices);
- text= new Fl_Box(FL_FRAME_BOX,100,225,200,100,input->value());
+ text= new Fl_Box(FL_FRAME_BOX,100,75,200,100,input->value());
text->align(FL_ALIGN_CENTER);
window->resizable(text);
- window->forms_end();
+ window->end();
window->show(argc,argv);
return Fl::run();
}