Closed Randalphwa closed 1 year ago
Fixed. Be aware wxDefaultDateTime is Wx::DEFAULT_DATE_TIME in wxRuby. Also this constant has value 'nil' in wxRuby so you could also simply use that.
I made Wx::DefaultDateTime available as well (I don't think that is the correct consistent naming but the docs refer to it in several places).
The documentation for Wx::CalendarCtrl states in the create function that I can use
Wx::DefaultDateTime
for the date (several other methods on this page also indicate this as the default). However, when I create the code:I get an error from Ruby:
It does work if instead I use
DateTime.now
instead of Wx::DefaultDateTime, but that's not specifically documented. So, I'm not sure if it's a documentation glitch and Wx::DefaultDateTime really isn't supported, or the wxRuby3 implementation is missing the constant.