> First of all, I want to thank the group for being so helpful, > and putting up with my dumb questions. > > What I'm trying to do now is put together a pop-up > calendar for date input. The idea is that the user > clicks a symbol to pop up a little calendar, then > clicks a box on the calendar, causing a date to be > transferred into a text box on the main window, > and the popup to be dismissed. > > You've seen it on a million websites, I'm sure. > > I want the popup to be anchored to the main window > at a spot of my choosing. I'd like to be able to > pop up more than one of these things at a time. I'd > like to have keyboard navigation enabled inside the > popup. > > I've got the guts of the little calendar worked out, > but I'm having trouble with the top level design. Would > you suggest a separate window? A sub window? An overlay? > > And, as the subject line suggests, what's the preferred > way of communicating a result back to the main window and > dismissing the child?
There is a FLTK based library called 'FLEK' which includes a widget called 'FL_Calendar' and an example demonstrating its functionality. FLEK is listed among the links on fltk.org here: http://www.fltk.org/links.php?V99+Q but the links lead to a dead end. I found a functional homepage for Flek here however http://www.tiger-marmalade.com/james/flek/. Flek wouldn't compile for me in the normal way, so I separated just the calendar related parts, and was able to compile the example. It seems to behave just as you describe, except it only pops up in one place, but thats probably easy to change. So in case it is of interest to you I have put the Fl_Calendar part of FLEK in a zip file here: http://members.optusnet.com.au/msephton/fltk/calendar.zip _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

