[wxlua-users] wxDatePickerCtrl

2012-05-17 Thread Milind Gupta
Hi, I have a wxDatePickerCtrl where I set Allow None in the property (wxDP_ALLOWNONE) and it shows me a checkbox. If the checkbox is unchecked the control is grayed out. But with it unchecked if I query the GetValue I do not get a invalid date. I am getting 12/31/1969 which is not invalid. Am I doi

Re: [wxlua-users] wxDatePickerCtrl

2012-05-17 Thread John Labenski
On Thu, May 17, 2012 at 3:00 PM, Milind Gupta wrote: > Hi, > I have a wxDatePickerCtrl where I set Allow None in the property > (wxDP_ALLOWNONE) and it shows me a checkbox. If the checkbox is unchecked > the control is grayed out. But with it unchecked if I query the GetValue I > do not get a inva

Re: [wxlua-users] wxDatePickerCtrl

2012-05-17 Thread Milind Gupta
Thanks, I think using a separate checkbox is the best way to go. I am using lua for windows, I don't know what version that has. Milind On Thu, May 17, 2012 at 12:51 PM, John Labenski wrote: > On Thu, May 17, 2012 at 3:00 PM, Milind Gupta > wrote: > > Hi, > > I have a wxDatePickerCt

Re: [wxlua-users] ParseDate

2012-05-17 Thread John Labenski
> wx.wxDateTime():ParseDate("25 may 2012", wx.wxString_const_iterator()) > > works and returns the same value as IsValid but is a bit overwhelming. Yes, I can simply override it and return two values, [bool success, integer position of error], but the position will only be valid for non-unicode s

Re: [wxlua-users] wxlua watch expression doesn't work

2012-05-17 Thread John Labenski
On Thu, Jan 5, 2012 at 6:36 PM, Milind Gupta wrote: > Hi, >      Posting the message again to find out if it is possible to watch value > of keys inside a table. When I tried that the watch just gives an error > message saying:    "string:Lua:Syntax error during pre-compilation" ? >      Just a qu

Re: [wxlua-users] wxlua watch expression doesn't work

2012-05-17 Thread Milind Gupta
Thanks for the update, Milind On Thu, May 17, 2012 at 1:55 PM, John Labenski wrote: > On Thu, Jan 5, 2012 at 6:36 PM, Milind Gupta > wrote: > > Hi, > > Posting the message again to find out if it is possible to watch > value > > of keys inside a table. When I tried that the watch just giv