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

[STR New]

Link: http://www.fltk.org/str.php?L2207
Version: 1.3-current





Link: http://www.fltk.org/str.php?L2207
Version: 1.3-current
#include <stdio.h>
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Menu_Bar.H>

static void Callback(Fl_Widget *w,void*) {
    Fl_Menu_ *item = (Fl_Menu_*)w;
    char s[80];
    if ( item->item_pathname(s,sizeof(s)-1) == 0 )
        fprintf(stderr, "CALLBACK FOR '%s'\n", s);
}
int main() {
    Fl_Window *win = new Fl_Window(400,400);
    Fl_Menu_Bar *menu = new Fl_Menu_Bar(0,0,400,25);
    menu->add("Testing/Ctrl-Shift-F", "+^f", Callback); // works when capslock 
is on, not when off
    menu->add("Testing/Ctrl-F",       "^f",  Callback); // works when capslock 
is off, not when on
    win->end();
    win->show();
    return(Fl::run());
}
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to