Here we have a brand spanking new control for the KryptonToolkit called KryptonSeparator.  It is however a very simple control that draws as an area separator and provides splitter functionality. Here you can see the control at various sizes and orientations in the Office 2008 Black scheme…

As the user moves the mouse over the control it changes the mouse cursor to indicate that it provides splitter functionality. If you press the mouse and start dragging then you see feedback drawn over the application that shows what change will occur if you release the mouse. Here you can see the visual feedback as a drag occurs…

The KryptonSeparator does not actually do anything when you release the mouse at the end of the drag as there is no way for the control to know what other controls should be resized and positioned. Instead it generates events that you can monitor and once the drag ends you use that event to decide what action to take.

7 Responses to “KryptonSeparator”

  1. Zup Says:

    Hmm nice but you should rather take a look at the Wishlist Thread for more anticipated enhancements of the Toolkit ;-)

  2. Phil Wright Says:

    It was added because I needed it for putting between controls in the new docking windows feature. Thought I might as well make it reusable as it takes the same time to make it reusable as a private instance just for docking.

  3. Ira Says:

    Is that Office 2008 or 2007?

  4. Phil Wright Says:

    There is no such thing as Office 2008.

  5. Ira Says:

    Please read the first paragraph in the post, I should have been more specific, apologies!

  6. Waescher Says:

    I’m sure Phil was refering to his Office 2007 Black-palette. There is a Office 2008 version indeed – but it’s Mac-only.

  7. Michael Says:

    I can think of a couple additional uses for this. Does it have the ability to override the cursor and the drag functionality?

Leave a Reply