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.fl | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/Fl_Help_Dialog.fl') diff --git a/src/Fl_Help_Dialog.fl b/src/Fl_Help_Dialog.fl index 7647aaab6..4524cbda3 100644 --- a/src/Fl_Help_Dialog.fl +++ b/src/Fl_Help_Dialog.fl @@ -17,7 +17,7 @@ class FL_EXPORT Fl_Help_Dialog {open } { Fl_Window window_ { label {Help Dialog} open - private xywh {398 65 530 385} type Double hide resizable + private xywh {398 65 530 385} type Double resizable visible } { Fl_Group view_ { callback {if (view_->changed()) @@ -48,7 +48,7 @@ else if (view_->filename()) { strlcpy(file_[index_], view_->filename(), sizeof(file_[0])); line_[index_] = view_->topline(); -}} open selected +}} open private xywh {10 10 510 330} box DOWN_BOX selection_color 15 resizable code0 {\#include } class Fl_Help_View @@ -115,9 +115,14 @@ if (view_->textsize() >= 18) smaller_->activate();} private tooltip {Make the help text larger.} xywh {320 350 25 25} labelfont 1 labelsize 16 } - Fl_Input find_ { - callback {find_pos_ = view_->find(find_->value(), find_pos_);} - private xywh {10 350 265 25} when 10 + Fl_Group {} {open + xywh {10 350 265 25} box DOWN_BOX color 7 + } { + Fl_Input find_ { + label {@search} + callback {find_pos_ = view_->find(find_->value(), find_pos_);} selected + private tooltip {find text in document} xywh {35 352 238 21} box FLAT_BOX labelsize 13 when 10 + } } } code {back_->deactivate(); -- cgit v1.2.3