summaryrefslogtreecommitdiff
path: root/src/Fl_Help_Dialog.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2004-07-04 06:49:34 +0000
committerMatthias Melcher <fltk@matthiasm.com>2004-07-04 06:49:34 +0000
commit47276e733d9d422ca6ac49cd4f87c2b8b712ef7c (patch)
tree584b253305e00ec1bc9ba9da57291717e3655951 /src/Fl_Help_Dialog.cxx
parent0384c8695762d4a71b2565855cb15b28facc540c (diff)
In order to make the whitte text field at the bottom left of the
Help Dialog clearer, I added a magnifying glass in front of the field sybolising "search". I made the scaleable magnifying glass available as a symbol via "@search" I added yet another symbol that draw a vectorized version of the FLTK logo. Available via "@FLTK". Lastly, I changed the 'symbol' test program to show the additional symbols, and added a slider to changae the relative symbol size. I hope the new symbols look good enough on other platforms, too. I tested only OS X. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3479 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Help_Dialog.cxx')
-rw-r--r--src/Fl_Help_Dialog.cxx16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/Fl_Help_Dialog.cxx b/src/Fl_Help_Dialog.cxx
index aadee5495..5d03cc7fc 100644
--- a/src/Fl_Help_Dialog.cxx
+++ b/src/Fl_Help_Dialog.cxx
@@ -114,7 +114,7 @@ inline void Fl_Help_Dialog::cb_find__i(Fl_Input*, void*) {
find_pos_ = view_->find(find_->value(), find_pos_);
}
void Fl_Help_Dialog::cb_find_(Fl_Input* o, void* v) {
- ((Fl_Help_Dialog*)(o->parent()->user_data()))->cb_find__i(o,v);
+ ((Fl_Help_Dialog*)(o->parent()->parent()->user_data()))->cb_find__i(o,v);
}
Fl_Help_Dialog::Fl_Help_Dialog() {
@@ -164,9 +164,17 @@ Fl_Help_Dialog::Fl_Help_Dialog() {
o->labelsize(16);
o->callback((Fl_Callback*)cb_larger_);
}
- { Fl_Input* o = find_ = new Fl_Input(10, 350, 265, 25);
- o->callback((Fl_Callback*)cb_find_);
- o->when(FL_WHEN_ENTER_KEY_ALWAYS);
+ { Fl_Group* o = new Fl_Group(10, 350, 265, 25);
+ o->box(FL_DOWN_BOX);
+ o->color(FL_BACKGROUND2_COLOR);
+ { Fl_Input* o = find_ = new Fl_Input(35, 352, 238, 21, "@search");
+ o->tooltip("find text in document");
+ o->box(FL_FLAT_BOX);
+ o->labelsize(13);
+ o->callback((Fl_Callback*)cb_find_);
+ o->when(FL_WHEN_ENTER_KEY_ALWAYS);
+ }
+ o->end();
}
o->end();
}