diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2002-11-03 00:01:21 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2002-11-03 00:01:21 +0000 |
| commit | c3de2a22c058b26700cce7ebeb26ca20072dc50f (patch) | |
| tree | bcbd8e2be5c70d29fbd1d65028a3abac64c77310 /fluid/function_panel.cxx | |
| parent | f3078e51e015215432c375ccd24a2d3c93342c52 (diff) | |
Replaced 'callback' and 'code' input in FLUID with Fl_Text_Editor.
Made widget pannel resize only text fields (which I see as the
logical way to do it. Opinions welcome).
Matthias
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2822 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/function_panel.cxx')
| -rw-r--r-- | fluid/function_panel.cxx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/fluid/function_panel.cxx b/fluid/function_panel.cxx index deed876aa..560580eb5 100644 --- a/fluid/function_panel.cxx +++ b/fluid/function_panel.cxx @@ -65,7 +65,7 @@ Fl_Window* make_function_panel() { Fl_Window *code_panel=(Fl_Window *)0; -Fl_Input *code_input=(Fl_Input *)0; +Fl_Text_Editor *code_input=(Fl_Text_Editor *)0; Fl_Return_Button *code_panel_ok=(Fl_Return_Button *)0; @@ -75,13 +75,14 @@ Fl_Window* make_code_panel() { Fl_Window* w; { Fl_Window* o = code_panel = new Fl_Window(548, 175, "code"); w = o; - { Fl_Input* o = code_input = new Fl_Input(10, 10, 525, 120); - o->tooltip("C/C++ code."); - o->type(4); - o->labelsize(12); - o->textfont(4); - o->align(FL_ALIGN_CENTER); - o->when(FL_WHEN_NEVER); + { Fl_Group* o = new Fl_Group(10, 10, 525, 120); + o->box(FL_DOWN_FRAME); + { Fl_Text_Editor* o = code_input = new Fl_Text_Editor(12, 12, 521, 116); + o->box(FL_NO_BOX); + Fl_Group::current()->resizable(o); + o->buffer(new Fl_Text_Buffer); + } + o->end(); Fl_Group::current()->resizable(o); } { Fl_Return_Button* o = code_panel_ok = new Fl_Return_Button(370, 140, 80, 25, "OK"); |
