> Cool example; can I steal that for the cheat page ;) > Perhaps can be integrated into the docs as well.
Of course; though might be worth adding some cautions... - On OSX and X11 I can (fairly reliably) get it to report up to 15 clicks, if I *really try*, but on WinXX (winXP specifically, in case it makes a difference) I can never get it to report more than 2, so I *assume* there's something specific about how WinXX counts clicks internally coming into play here. - The code as written wouldn't be thread safe, though that should not matter since all the fltk context ought to be in the same thread anyway. - I've hard-coded a delay time of 250ms, which seems to work OK for me, but I have no idea how "portable" that is. In particular, if the click-detection-delay being used by the host system is substantially longer than that, then this may mean that the count does not "reset" properly between bursts of clicking. > > 03/07/12 (that's 2012-03-07 for people who don't grok American date > formats > > <thread-jack> > Yes, lol, "it's how we was raised." > > Seems like every possible combo of MM, DD, and YYYY > is claimed by some country or other: > > Y/M/D -- ISO 8601 "International Date" (China, Korea, Japan..) > D/M/Y -- India, Spain, much of the EU, AU, > M/D/Y -- US > > I'd agree Y/M/D makes the most sense, esp. for sorting, > as it flows nicely into Y/M/D,H:M, largest-to-smallest unit. > > Apparently though, D/M/Y (cyan on the following map) is most popular: > http://en.wikipedia.org/wiki/Date_format_by_country Yeah, in the UK we'd probably go D/M/Y by default, but I opted for ISO on the basis that it's a "standard"! Both formats are well understood here, and the USA-style M/D/Y always causes consternation because, for a large range of valid dates, there is no obvious way to disambiguate D/M from M/D, leading to (and I quote the Fat Controller[1] here...) "confusion and delay!" > </thread-jack> [1] - Watching Thomas the Tank Engine videos with my toddler son, it has become apparent that US nationals may not know that the Fat Controller is in fact called the "Fat Controller", they may be under the impression that he is called "Sir Bertram Topham Hat". I *assume*, on the basis of no evidence whatsoever, that this is some sort of nod to political correctness? Weird though... (The videos are redubbed for different markets, but most English-language variants are readily available in the UK...) SELEX Galileo Ltd Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

