Is there a way to set the backcolor of Einhugur’s datecontrol on OSX, via declares or MBS?
I just found out recently through another post here, that I could set the backgroundcolor for ComboBoxes on OSX and I wonder if there would not be a similar way to do this for Einhugur’s datecontrol? AFAIK, it makes use of the native control on OSX.
In the case of the combobox, I added a computed property ‘backcolor’ where the setter now looks like this:
[code]Set
mBackColor = value
#If TargetCocoa
Try
Dim c As NSColorMBS = NSColorMBS.colorWithDeviceRGB(value.Red/255,value.Green/255,value.Blue/255)
Dim n As NSComboBoxMBS = Me.NSComboBoxMBS
If n <> Nil Then
n.drawsBackground = True
n.backgroundColor = c
End If
End Try
#EndIf
End Set
[/code]