After adding the KryptonCheckBox and KryptonRadioButton controls to the Toolkit it makes sense to add the same functionality to the KryptonRibbon. Here you can see the three different states of a check box and some instances of radio buttons.

They can be displayed as full height elements as above or as medium sized elements when required.

Finally here we see them used inside a lines type container. So they can be used in all the same places that a button or label element can already be used.

Note that with the radio button element it will automatically uncheck all other radio buttons in the same group whenever one becomes checked. You can turn off this automatic ability by setting the AutoCheck to False if you prefer to manually check/uncheck the radio buttons.
Posted in Krypton Ribbon | No Comments »
It’s time to add ToolTips to the KryptonRibbon control.
The following image shows a tooltip for a quick access toolbar button. In this case I provided the tooltip text by setting the ToolTipBody property of the button instance.

The application button also shows a tooltip when the mouse hovers over it. Here I have provided strings for the ToolTipBody and the ToolTipTitle properties.

Buttons and labels inside the ribbon groups can have tooltips. Notice that the tooltip is displayed below the bottom of the ribbon client area in order to mimic the Office 2007 ribbon functionality.

For the buttons inside the Include group I have supplied an image by using the ToolTipImage property as well as text using the ToolTipBody and ToolTipTitle text properties.

Posted in Krypton Ribbon | 1 Comment »
In response to a bug report I have investigated and fixed the way the focus rectangle is drawn for the KryptonButton, KryptonCheckButton, KryptonCheckBox and KryptonRadioButton controls. Until now the focus rectangle was always drawn if the control had focus.
If you actually play around with a standard windows form that has some buttons placed on it this is not accurate. It does not show the focus rectangle when you press the button. Instead it will only show the focus rectangle when you have pressed the TAB key. So to ensure the Krypton controls are in sync I have copied this behavior.
Here you can see that the KryptonButton is the focused control but notice that is does not draw the focus rect.

Here I have clicked on the KryptonCheckBox and then the KryptonRadioButton and still the focus is not shown.

Once I have pressed TAB a few times then you do get the focus rect.

Posted in General | 2 Comments »
Wednesday, July 11th, 2007
Due to popular demand I have modified the way the grid style is specified so that you can mix and match the different column header, row header, data cell and background styles. Here is a picture of the design time properties for specifying the styles.

If you change the Style property then it alters all the other styles to a matching set of values. But you can alter the individual StyleColumn, StyleRow, StyleDataCell and StyleBackground as you need.
So it just goes to show, feedback on the blog or forums does alter the development!
Posted in Krypton Toolkit | 6 Comments »
Looking at the samples of code inside the Code Snippets portion of the Forums and comments left on the last two posts it seems there is a high demand for the selection to be shown in the orange style. In the same style as a checked button that has the glass look and feel. To support this I have added two built-in styles for the KryptonDataGridView control.
GridStyle = List
This is the default style and the one you have already seen in previous posts. It is appropriate for use where you are listing out data entries.

GridStyle = Sheet
An alternative style that shows the selection in the full glass style. This style would be appropriate for scenarios where the grid is being used as a large worksheet.

ToolTips
In order to ensure consistency I have overridden the way the tooltips were being shown to use the built-in tooltip drawing styles. This brings it into line with the KryptonNavigator and other Krypton Toolkit controls.

Posted in Krypton Toolkit | 2 Comments »