Archive for December, 2007

A developer asked on the forums why there wasn’t a Krypton version of the MaskedTextBox control when there was a Kryptonized TextBox and RichTextBox available in the CTP. Quite rightly they pointed out that it looked like hardly any extra work as I already had the other two in place. Well the answer is simple. I clean forgot there was a masked control in Win32. This omission has now been corrected. Here is the KryptonMaskedTextBox

If we switch the InputControlStyle to be Ribbon and set the AlwaysActive property to False then we get the following appearance instead…

As with the other input controls you can add ButtonSpec definitions so that extra buttons are added inside the border…

 

The button specs could be really handy for setting common values. You could have a button that is used to set the date to something appropriate such as ‘today’.  Another might be used clear the current value and a last one that brings up some help page information.

I have added support for adding the KryptonMaskedTextBox inside the KryptonRibbon as well…

I have never been entirely happy with the look of the application button in the KryptonRibbon. The border edges look a little too jagged and the colors are not quite right. Luckily for us a Krypton Toolkit developer created a better version and swapped the code for a free copy of the Krypton Suite.

Here you can see the current button…

And now the new version…

I’m sure you will agree it looks much better. It might seen a trivial issue but given how prominent the application button is in a ribbon based app I think it improves the whole feel of the application.