Archive for May, 2007

The built in palettes have been updated so that the label text shows an underline after the ampersand. Here you can see the mnemonic character underlined for a couple of label instances.

The KryptonLabel also has a new property called Target of type Control. Use this property to designate the control that should become focused when the mnemonic is used for the label. This allows you to place a label next to another control, such as a TextBox, and then specify the mnemonic that will cause the TextBox to become selected.

When you click the label control it will also invoke the mnemonic target, so the user can use either the mnemonic character or the mouse to click and get the same action.

Tool tips now have a shaped region rather than always being square. This does not matter so much when you only have 1 pixel of rounding on the corners but anything more looks real ugly without the correct region drawing. I have also updated the shadow so that it follows the same curve as the main tool tip.

Here is a tool tip for the form close button that has been defined with an exaggerated rounding.

And the Navigator with a popup page.

Due to feedback on the previous blog post about adding tool tip support to the KryptonNavigator I have extended the tool tips to the button specifications. This includes user defined button specs as well as internally defined instances.

Here we have a KryptonHeader with a tool tip defined.

This also works for the KryptonHeaderGroup.

The min/max/close buttons on a KryptonForm are just internally defined button specs. Note that the tooltip text for these standard button types is defined in the palette. So if you need to change the displayed text for them you just need to drop a KryptonPalette on your form, alter the tool tip text and then use that new palette instance instead of the built in palette.

And now to the KryptonNavigator control.

Although I do not have an example image the KryptonRibbon will also show tool tips for the user defined button specs that appear on the tabs line of the ribbon control. Later on I will be adding further tool tip support specific to the ribbon and so will post about that in the future.

I have been meaning to add tooltips to the page headers in the KryptonNavigator for some time. Finally I have had the chance to actually add them.

Here you can see the mouse hovering over a page header and the resulting tooltip popup.

There are a set of properties that allow you to define the mapping of values from the page to the tooltip. This time I have specified that the KryptonPage.ImageLarge, KryptonPage.Text and KryptonPage.TextTooltip properties be used.

There are other properties for turning the use of tooltips on and off as well as defining the delay before the tooltip is shown.

At the moment the actual close/context/next and previous buttons do not themselves have any tooltip. Do you think I should add that as well? Also the headers do not show tooltips. So if you are using the HeaderGroup mode and hover the mouse over the primary header there is no tooltip. Do you think that ability would be useful?

I have added two new options called Exactline and Expandline to the Navigator.BarMultiline setting. Here is a list of all the available options, including the new ones, with a picture so you can visualize the differences…

BarMultiline = Singleline
All items are placed on a single line that extends beyond the edge of the display area. So some of the items might not be visible until you scroll them into view.

BarMultiline = Multiline
Multiple lines of items are created in order to ensure that all the items are visible. When using tab style headers the line with the selected item is always moved to join onto the group area.

BarMultiline = Exactline
Items are placed on a single line, but all items are resized to ensure the entire line area is used up. So items are expanded if they do not naturally fill up the line and items are shrunk if they naturally would overflow the line.

BarMultiline = Shrinkline
Items are only resized if they naturally overflow the single line, in which case they are shrunk down so they no longer overflow the display area.

BarMultiline = Expandline
If the items do not fill up the entire line then they are expanded to ensure the line is fully used. If the items naturally extend over the line then they are unchanged.