Archive for January, 2007

It has only taken a year for to get around to fixing this website bug.

In all the time this website has been running there has been a minor bug. On the left side of the page header there is a light blue area containing the current date. This date has been incorrect for at least the last year and only now have I gotten around to fixing the java script that produces it.

Given it only took 15 minutes to research, fix and upload the modified code it should have been sorted out long ago. Still, not a single person emailed or commented on the bug and so maybe this date should be replaced with some more useful.

The date was placed there only because I could not think of anything to put in that limited amount of space. If you have any better ideas I am happy to consider implementing them.

The ribbon is now integrated into the custom chrome of the caption area when the caption area is tall enough to show the needed information

If your window style is something like a tool window then the caption area will not be tall enough to show the application button and context titles, in that case it shows these details in a separate ribbon line. But most applications will use the ribbon with a dialog/sizable window that has enough room in the caption area.

Here is a ribbon showing a green context title and the application button integrated.

Notice the window text is drawn in the space to the left of the context title. It will actually use either the gap to the left or right of the context titles, whichever is the larger.

I have also added the ability to specify multiple contexts. You just set the ribbon SelectedContext property to a comma separated list of names. Here is one with a value of Red,Green.

Of course, it works with all the different Office color schemes.

The title says it all really. You can now add CheckButton items to the KryptonContextMenu component. Despite the name the KyptonContextMenuCheckButton actually defaults to acting like a simple click button but you can set the AutoCheck property to True in order for it to toggle automatically between Checked and not Checked states.

I added the LinkLabel, RadioButton, CheckBox and CheckButton items because they are quick and easy to add. I already had all the painting classes from the standalone control versions and so adding them was a snap. They are not the kind of controls you normally see inside a context menu but I am sure there are occasional times when they will prove handy.

In order to get the context tabs looking more complete I have now added the title that appears above the tabs.

At the moment they only show on the special caption bar that appears when the ribbon is not integrated into the custom chrome of the owning form. Once I have the context functionality working I will then move onto the custom chrome extensions.

Here you can see a green and then red context title. (Colors reduced to 256 for the blog mean it looks a bit grainy compared to the real McCoy)

In response to customer feedback you can now alter the spacing before the first bar item.

The default value of BarFirstItemInset is zero to maintain backward compatibility. Here are two pictures with the left picture using the default value and the right picture a value of 10 pixels.