From 47276e733d9d422ca6ac49cd4f87c2b8b712ef7c Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 4 Jul 2004 06:49:34 +0000 Subject: 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 --- src/Fl_Help_Dialog.cxx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/Fl_Help_Dialog.cxx') 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(); } -- cgit v1.2.3