FreeBSD Bugzilla – Attachment 175518 Details for
Bug 213294
x11-toolkits/fltk: FL_CURSOR_NONE not functional
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Test program demonstrating issue with FL_CURSOR_NONE
cursor-enter-exit-test.cxx (text/plain), 1.08 KB, created by
Will B
on 2016-10-07 21:45:46 UTC
(
hide
)
Description:
Test program demonstrating issue with FL_CURSOR_NONE
Filename:
MIME Type:
Creator:
Will B
Created:
2016-10-07 21:45:46 UTC
Size:
1.08 KB
patch
obsolete
>#include <FL/Fl.H> >#include <FL/Fl_Window.H> >#include <FL/Fl_Box.H> >#include <iostream> > >Fl_Window* winMain = NULL; >Fl_Box* boxLabel = NULL; > >class DemoWidget : public Fl_Box >{ >public: > DemoWidget (int x = 0, int y = 0, int w = 0, int h = 0, const char* label = 0) > : Fl_Box(150, 10, 100, 100, "Greetings!") {}; > int handle(int); >}; > >int DemoWidget::handle(int nEvent) >{ > switch (nEvent) { > > case FL_ENTER: { > winMain->cursor(FL_CURSOR_NONE); > boxLabel->label("Cursor should be NOT be visible"); > return 1; > } > > case FL_LEAVE: { > winMain->cursor(FL_CURSOR_DEFAULT); > boxLabel->label("Cursor should be be visible"); > return 1; > } > > default: { > return nEvent; > } > } >} > > >/* main program */ >int main(int argc, char **argv) >{ > winMain = new Fl_Window(400, 400); > DemoWidget *box = new DemoWidget(); > box->box(FL_UP_BOX); > boxLabel = new Fl_Box(10, 300, 380, 32, "Cursor should be visible"); > winMain->end(); > winMain->show(argc, argv); > return Fl::run(); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 213294
: 175518