diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-08-27 22:45:57 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-08-27 22:45:57 +0200 |
commit | 6d30161267322a0bae3be248a9b44160fd91b486 (patch) | |
tree | 243a1c9d2121e0ef1fa140d33f421065a701da86 /src/Fl_Search_Chooser.cxx | |
parent | 8d7e0aaa20dff413fdc9747b842015664dae6cac (diff) | |
parent | f716b3111ee6ea482449c54829acf82fbf6495fc (diff) |
Merge branches
Diffstat (limited to 'src/Fl_Search_Chooser.cxx')
-rw-r--r-- | src/Fl_Search_Chooser.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Fl_Search_Chooser.cxx b/src/Fl_Search_Chooser.cxx index bfcf7fb..bc77309 100644 --- a/src/Fl_Search_Chooser.cxx +++ b/src/Fl_Search_Chooser.cxx @@ -22,6 +22,7 @@ #include <stdio.h> #include <string.h> +#include <FL/Fl.H> #include <FL/Fl_Window.H> #include <FL/Fl_Button.H> #include "Fl_Search_Chooser.H" @@ -86,13 +87,14 @@ Fl_Search_Chooser::Fl_Search_Chooser(const char *title) { Fl_Group *g = new Fl_Group(10, 10, w->w() - 10, w->h() - 10); sb = new Fl_Search_Browser(g->x(), g->y(), g->w() , g->h() - 100, NULL); sb->type(FL_HOLD_BROWSER); - Fl_Input *in = new Fl_Input(g->x(), g->h() - 80, g->w()-10, 20); + Fl_Input *in = new Fl_Input(g->x()+50, g->h()-80, g->w()-80, 20, "Search"); in->callback((Fl_Callback*) input_cb, this); in->when(FL_WHEN_CHANGED); Fl_Button *cancel_b = new Fl_Button(g->w()-200, g->h()-30, 80, 20, "Cancel"); cancel_b->callback((Fl_Callback*) cancel_cb, this); Fl_Button *ok_b = new Fl_Button(g->w()-100, g->h()-30, 80, 20, "Ok"); ok_b->callback((Fl_Callback*) ok_cb, this); + Fl::focus(in); g->end(); w->end(); } |