Development mailing list

Syndicate content
Archive of posts for haiku-development at FreeLists
Updated: 1 hour 32 min ago

[haiku-development] Re: RFC: B_INVALID flag for BControlLook (pulkomandy)

Thu, 2014-10-09 13:45
On Thu, Oct 02, 2014 at 01:23:59PM -0400, John Scipione wrote: On Thu, Oct 2, 2014 at 12:25 PM, looncraz looncraz@xxxxxxxxxxx wrote: Why doesn't BSpinner implement BControl rather than BView and BInvoker? I'm sure there must be a reason. Good question, BControl returns an int32 for Value() and takes one for SetValue(), I wanted to use a double instead. I originally did casting to make this work but later decided the hack wasn't worth it and made the control inherit from BView and BInvoker instead. This way I can have SetValue() that take a double (or whatever I want thank you very ...
Categories: Development

[haiku-development] Re: RFC: B_INVALID flag for BControlLook (John Scipione)

Thu, 2014-10-09 07:45
On Thu, Oct 2, 2014 at 12:25 PM, looncraz looncraz@xxxxxxxxxxx wrote: Why doesn't BSpinner implement BControl rather than BView and BInvoker? I'm sure there must be a reason. Good question, BControl returns an int32 for Value() and takes one for SetValue(), I wanted to use a double instead. I originally did casting to make this work but later decided the hack wasn't worth it and made the control inherit from BView and BInvoker instead. This way I can have SetValue() that take a double (or whatever I want thank you very much) and I don't have to worry about overloading a method in the base ...
Categories: Development

[haiku-development] Re: RFC: B_INVALID flag for BControlLook (looncraz)

Thu, 2014-10-09 07:45
On 10/2/2014 10:29, John Scipione wrote: Why doesn't BSpinner implement BControl rather than BView and BInvoker? I'm sure there must be a reason. ...
Categories: Development