summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2003-06-15 04:29:40 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2003-06-15 04:29:40 +0000
commit29019ade40831dab5549a21fd0b1fd35ce9d51aa (patch)
tree1c5976c3b5ecc7ad6a1b561cf388116e75e0a937
parent7f15f8d97f53ae64ba6ec9e8ecdbe2a01554aa72 (diff)
Hide cancel/revert buttons until a true undo can be implemented.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3031 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--fluid/widget_panel.cxx6
-rw-r--r--fluid/widget_panel.fl12
2 files changed, 10 insertions, 8 deletions
diff --git a/fluid/widget_panel.cxx b/fluid/widget_panel.cxx
index a864378d1..4657a25f5 100644
--- a/fluid/widget_panel.cxx
+++ b/fluid/widget_panel.cxx
@@ -507,19 +507,21 @@ Fl_Double_Window* make_widget_panel() {
{ Fl_Box* o = new Fl_Box(12, 335, 12, 25);
Fl_Group::current()->resizable(o);
}
- { Fl_Button* o = new Fl_Button(50, 335, 100, 25, "No &Overlay");
+ { Fl_Button* o = new Fl_Button(215, 335, 100, 25, "No &Overlay");
o->tooltip("Hide the widget overlay box.");
o->labelcolor(1);
o->callback((Fl_Callback*)overlay_cb);
}
{ Fl_Button* o = new Fl_Button(155, 335, 80, 25, "Revert");
o->callback((Fl_Callback*)revert_cb);
+ o->hide();
}
- { Fl_Return_Button* o = new Fl_Return_Button(240, 335, 80, 25, "OK");
+ { Fl_Return_Button* o = new Fl_Return_Button(325, 335, 80, 25, "OK");
o->callback((Fl_Callback*)ok_cb);
}
{ Fl_Button* o = new Fl_Button(325, 335, 80, 25, "Cancel");
o->callback((Fl_Callback*)cancel_cb);
+ o->hide();
}
o->end();
}
diff --git a/fluid/widget_panel.fl b/fluid/widget_panel.fl
index e2f4a76b0..b935b4fc0 100644
--- a/fluid/widget_panel.fl
+++ b/fluid/widget_panel.fl
@@ -413,7 +413,7 @@ image}
} {
Fl_Text_Editor {} {
label {Callback:}
- callback callback_cb selected
+ callback callback_cb
tooltip {The callback function or code for the widget.} xywh {102 177 291 86} box NO_BOX align 4 textfont 4 resizable
code0 {o->buffer(new Fl_Text_Buffer());}
code1 {o->textfont(FL_COURIER);}
@@ -470,23 +470,23 @@ image}
}
Fl_Button {} {
label {No &Overlay}
- callback overlay_cb
- tooltip {Hide the widget overlay box.} xywh {50 335 100 25} labelcolor 1
+ callback overlay_cb selected
+ tooltip {Hide the widget overlay box.} xywh {215 335 100 25} labelcolor 1
}
Fl_Button {} {
label Revert
callback revert_cb
- xywh {155 335 80 25}
+ xywh {155 335 80 25} hide
}
Fl_Return_Button {} {
label OK
callback ok_cb
- xywh {240 335 80 25}
+ xywh {325 335 80 25}
}
Fl_Button {} {
label Cancel
callback cancel_cb
- xywh {325 335 80 25}
+ xywh {325 335 80 25} hide
}
}
}