Stan wrote:
>> Stan wrote:
>>> Sort of. If the calendar is a (normal) subwindow, the automatic
>>> navigation leads off the end of the calendar back onto the main
>>> window. At least I think it does.
>> It shouldn't.
>>
>> If you can verify that, tell us the window manager/platform
>> and fltk version.
>
> Here's what I mean.
> I'm running X on Solaris 8 through Exceed. I can get
> the version numbers if it's important.
In your example, the window is inside another, so it's
not really a separate window.. all the buttons are in the
same window manager window, so nav cycles between all of them.
Made some small mods to your program so that the windows are
separate, so now when you hit 'tab' you cycle through only "one" and
"two".
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Group.H>
class TwoButtons : public Fl_Double_Window {
public:
TwoButtons(int x, int y) : Fl_Double_Window(x, y, 100, 20)
{
Fl_Button* b1 = new Fl_Button(0, 0, 50, 20, "one");
Fl_Button* b2 = new Fl_Button(50, 0, 50, 20, "two");
end();
b1->take_focus();
}
};
int main()
{
Fl_Double_Window win(300, 300, 300, 300); // CHANGED
Fl_Button* b = new Fl_Button(50, 50, 100, 20, "main");
win.end();
// Fl_Group::current(&win); // REMOVED
TwoButtons *tb = new TwoButtons(300, 300); // CHANGED
win.show();
tb->show(); // ADDED
return Fl::run();
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk