mirror of https://github.com/fltk/fltk
Only set the callback when the text is changed; otherwise when you set
the properties of multiple widgets, the callbacks will be changed for all of the widgets... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2854 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
f0b0e4c00a
commit
81147753d1
|
@ -449,7 +449,6 @@ Fl_Double_Window* make_widget_panel() {
|
|||
o->textfont(4);
|
||||
o->callback((Fl_Callback*)callback_cb);
|
||||
o->align(FL_ALIGN_LEFT);
|
||||
o->when(FL_WHEN_RELEASE_ALWAYS);
|
||||
Fl_Group::current()->resizable(o);
|
||||
o->buffer(new Fl_Text_Buffer());
|
||||
o->textfont(FL_COURIER);
|
||||
|
|
|
@ -414,7 +414,7 @@ image}
|
|||
Fl_Text_Editor {} {
|
||||
label {Callback:}
|
||||
callback callback_cb selected
|
||||
tooltip {The callback function or code for the widget.} xywh {102 177 291 86} box NO_BOX align 4 when 6 textfont 4 resizable
|
||||
tooltip {The callback function or code for the widget.} xywh {102 177 291 86} box NO_BOX align 4 textfont 4 resizable
|
||||
code0 {o->buffer(new Fl_Text_Buffer());}
|
||||
code1 {o->textfont(FL_COURIER);}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue