summaryrefslogtreecommitdiff
path: root/src/fl_file_chooser.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1998-10-19 21:00:26 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1998-10-19 21:00:26 +0000
commit90e8eb7a4501562728d016eddc31225e7a4bd7fc (patch)
treec63dc0778f8c6385cf230aa66978a116426e0d9d /src/fl_file_chooser.cxx
parent1a86a0ede02de76c617165fb3555c192f0b74347 (diff)
More changes from Bill Spitzak.
git-svn-id: file:///fltk/svn/fltk/trunk@20 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_file_chooser.cxx')
-rw-r--r--src/fl_file_chooser.cxx16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/fl_file_chooser.cxx b/src/fl_file_chooser.cxx
index 70760e07a..005160c32 100644
--- a/src/fl_file_chooser.cxx
+++ b/src/fl_file_chooser.cxx
@@ -336,18 +336,16 @@ void FCB::set(const char* buf) {
}
void FCB::draw() {
- if (message) {
+ if (!message) {
+ Fl_Browser_::draw();
+ if (full_height() > 0) return;
+ message = "No matching files";
+ }
Fl_Boxtype b = box(); if (!b) b = Fl_Input_::default_box();
draw_box(b,color());
fl_color(FL_INACTIVE_COLOR);
+ fl_font(textfont(), textsize(), default_font(), default_size());
fl_draw(message, x()+7, y()+3, w(), h()-3, FL_ALIGN_TOP_LEFT);
- } else {
- Fl_Browser_::draw();
- if (full_height()<=0) {
- message = "No matching files";
- draw();
- }
- }
}
void FCB::clear_prev() {
@@ -613,5 +611,5 @@ char* fl_file_chooser(const char* message, const char* pat, const char* fname)
}
//
-// End of "$Id: fl_file_chooser.cxx,v 1.2 1998/10/19 20:46:37 mike Exp $".
+// End of "$Id: fl_file_chooser.cxx,v 1.3 1998/10/19 21:00:24 mike Exp $".
//