ID

Uploaded

Status

Description

Work Items

Action

5511
by kevincarbis
Mar 12, 2010
1:20 AM

Being evaluated

I wanted to post what I have done so far in case you haven't seen my posts. You can visit my site at www.staffinder.net/carbisoft to get details on all these changes and keep up to date on my work.

I still have not fixed the RibbonForm inheritance problem. I am hoping someone will step up and take on this problem.

Here is briefly what I have done so far.

1. Added Visible property to Tabs, Panels, and Items.
2. Fixed Visible property on quick access toolbar. I actually removed the QuickAccessVisible property. Now you can use the QuickAccessToolbar.Visible property instead.
3. Created a new Checkbox/RadioButton Item. Includes an Orientation property so you can put the checkbox on the left or right side
4. Created a new Up/Down (spin) control. UpButtonPressed and DownButtonPressed events are fired so you can respond accordingly.
5. Added new property called LabelWidth to all controls with a label so you can right justify the labels and align controls vertically.
6. Added all the Ribbon Items to the Panel's collection designer.
7. Fixed various designer bugs in some of the controls. You still need to close the form and reopen it to see your changes. This only happens when adding a new control in the designer.
8. Added new Button Style called DropDownListItem so Button Items added to the DropDown can mimic a standard dropdown without an image and be left aligned.
9. Added new property called DrawIconsBar to Dropdown Item so you can hide the gray bar on the left and simulate an indented listitem.
10. Added AllowTextEdit property to the textbox and combobox controls so you can prevent users from editing the textbox at run time.
11. Ribbon now has adjustable height. I found some fonts would get cut off at its current fixed height.
12. Added support for RightToLeft ability. This was a big undertaking.
13. Removed the MouseWheel support for the tabs. Not only was this annoying but it had problems when trying to scroll on a modal form that covered the tabs.

Download

5138
by koglth
Jan 31, 2010
9:53 PM

Being evaluated

Hi all,

I have adapted the RibbonButton Class to get support for simple ToolTips -> No SuperToolTips
This ist the first version. Maybe I will try my luck with SuperToolTips but at the moment I do not need them.
Maybe someone else wants to play around with this!

It was easier than I thought at the first moment.

All additional line are marked with ///HACK: Simple Tooltip

Download

5121
by WillsonWillson
Jan 29, 2010
12:17 PM

Being evaluated

Item click is activated on the OnMouseDown event as opposed to the OnMouseClick event.

Change the following in the RibbonItem.cs file to fix this issue.

/// <summary>
/// Raises the MouseDown event
/// </summary>
/// <param name="e">Event data</param>
public virtual void OnMouseDown(MouseEventArgs e)
{
if (!Enabled) return;

if (MouseDown != null)
{
MouseDown(this, e);
}

//RibbonPopup pop = Canvas as RibbonPopup;

//if (pop != null)
//{
// if (ClosesDropDownAt(e.Location))
// {
// RibbonPopupManager.Dismiss(RibbonPopupManager.DismissReason.ItemClicked);
// }

// OnClick(EventArgs.Empty);
//}

//SetPressed(true);
}

/// <summary>
/// Raises the Click event
/// </summary>
/// <param name="e">Event data</param>
public virtual void OnClick(EventArgs e)
{
if (!Enabled) return;

if (Click != null)
{
Click(this, e);
}
RibbonPopup pop = Canvas as RibbonPopup;

if (pop != null)
{
if (ClosesDropDownAt(Cursor.Position))
{
RibbonPopupManager.Dismiss(RibbonPopupManager.DismissReason.ItemClicked);
}

}

SetPressed(true);

}

Thanks

Willson

Download

3613
by Stumpii
Aug 17, 2009
5:28 PM

Being evaluated

This patch allows the QuickAccessToolbar to be removed using the QuickAccessVisible property of the Ribbon. The RibbonCaptionBar is removed of both the QuickAccessVisible and OrbVisible are both false.

I wanted to use this great control, but only needed the functionality of the tabs, not the Orb or QuickAccessToolbar, so made these changes.

These files work with v0.4 of the Ribbon and may not work with other versions.

Files changed:

Ribbon.cs
RibbonProfessionalRenderer.cs
RibbonQuickAccessToolbar.cs
RibbonQuickAccessToolbarGlyph.cs

Download

2874
by stumpii
May 10, 2009
9:12 PM

Being evaluated

This patch allows the QuickAccessToolbar to be removed using the QuickAccessVisible property of the Ribbon. The RibbonCaptionBar is removed of both the QuickAccessVisible and OrbVisible are both false.

I wanted to use this great control, but only needed the functionality of the tabs, not the Orb or QuickAccessToolbar, so made these changes.

Files changed:

Ribbon.cs
RibbonProfessionalRenderer.cs
RibbonQuickAccessToolbar.cs
RibbonQuickAccessToolbarGlyph.cs

Download

2444
by Logicalerror
Feb 5, 2009
2:10 PM

Being evaluated

I've made some minor improvements to the code, all related to code trying to set bounds of controls to negative values or something similar..
These changes, among other things, fix the ribbon not working in the vistual studio 2008 winforms editor for me.

ribbonbutton.cs:496
heightSum = largeHeight;
changed to:
heightSum = Math.Max(0, largeHeight);

ribbonbuttonlist.cs:489
int maxBottom = int.MinValue;
changed to:
int maxBottom = 0; // int.MinValue;

ribbonbuttonlist.cs:575
SetLastMeasuredSize(new Size(widthSum + ControlButtonsWidth, height));
changed to:
SetLastMeasuredSize(new Size(Math.Max(0, widthSum + ControlButtonsWidth), Math.Max(0, height)));

ribbondropdown.cs:300
int itemsWidth = ClientSize.Width - OwnerRibbon.DropDownMargin.Horizontal;
changed to:
int itemsWidth = Math.Max(0, ClientSize.Width - OwnerRibbon.DropDownMargin.Horizontal);

ribbondropdown.cs:323
scrollableItemHeight = (Height - nonScrollableItemsHeight - (ShowSizingGrip ? SizingGripHeight : 0)) / scrollableItems;
changed to:
scrollableItemHeight = Math.Max(0, (Height - nonScrollableItemsHeight - (ShowSizingGrip ? SizingGripHeight : 0)) / scrollableItems);

ribbonitem.cs:698 (added)
if (bounds.Width < 0)
throw new ArgumentOutOfRangeException("bounds", "Width cannot be less than zero.");
if (bounds.Height < 0)
throw new ArgumentOutOfRangeException("bounds", "Height cannot be less than zero.");
if (bounds.X < Int16.MinValue)
throw new OverflowException("X cannot be less than " + Int16.MinValue + ".");
if (bounds.Y < Int16.MinValue)
throw new OverflowException("Y cannot be less than " + Int16.MinValue + ".");
if (bounds.X > Int16.MaxValue)
throw new OverflowException("X cannot be more than " + Int16.MaxValue + ".");
if (bounds.Y > Int16.MaxValue)
throw new OverflowException("Y cannot be more than " + Int16.MaxValue + ".");

ribbonprofessionalrenderer.cs ... bounds checking everywhere on draw stuff..

Download

View All
  • 1-6 of 6 Patches
    • Previous
    • 1
    • Next
    • Showing
    • All
    • Patches