DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L1870
Version: 1.1-current


Fl_Input::handle(FL_RELEASE) does this:
  // For output widgets, do the callback so the app knows the user
  // did something with the mouse...
  if (readonly()) do_callback();
   

/// Test case
#include "FL/Fl.H"
#include "FL/Fl_Double_Window.H"
#include "FL/Fl_Output.H"
#include "FL/fl_ask.H"

void cb(Fl_Widget*, void*)
{
        fl_alert("Called back");
}
int main()
{
        Fl_Double_Window win(350, 300);
        Fl_Output op(200, 100, 150, 20, "Should Not be Called Back");
        op.value("Click Me");
        op.callback(cb);
        op.when(FL_WHEN_NEVER);
        win.end();
        win.show();
        return Fl::run();
}


Link: http://www.fltk.org/str.php?L1870
Version: 1.1-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to