Code Monkey home page Code Monkey logo

ribbonwinforms's Issues

Blue window border when containing Form inherits from Ribbon instead of inheriting from Form and Black Tab names background when changing orb style at runtime

Hi Hoping someone can help me with where to resolve these issues in the source code.
Using VS2017, assembly version 5.0.0.0 of System.Windows.Forms.Ribbon, .Net Framework 4.7.1, Form class set to inherit from RibbonForm instead of Form.

  1. When running standard demos or my own forms I get a blue border on the window frame.
  2. When designer has set orb style to 2007 then changing orb style to 2010 or 2013 at run time the tab title background goes black, this does not occur when designer has set orb style to 2010 or 2013.
    When Form class does not inherit from RibbonForm, but inherits from Form, the blue border does not appear and the black tab title background does not occur.

Have tried building with .Net 2.0 but this makes no difference.

Thanks for any suggestions.
Jeff

Bug / issue: Sensor not detecting dropdown items when button is located on a RibbonPanelPopup

Steps to reproduce:

  1. startup the RibbonDemo application
  2. select Mainform
  3. the far right tab on this form contains a dropdown button called Select
  4. notice that you can select an item from the dropdown menu
  5. now change the width of the MainForm window until the Edit Overflow button appears
  6. click to dropdown the RibbonPanelPopup
  7. click on the Select button
  8. the dropdown including the button items appears
  9. notice that the sensor does not sence any of the button items

Does someone know how to solve this issue? (Have I missed something?)

Thanks in advance,
-Piet

when dropdown Orb, it fires a RibbonButton event

Hi, first, sorry, my English isn't that good, i don't speak them.

I found the problem when i click the Orb, then, the Ribbon Control fires a Click Event of the first RibbonButton added into the first panel of the first Tab.

Eg:

        private System.Windows.Forms.RibbonPanel rpEmisionComprobantes;
        this.rpEmisionComprobantes = new System.Windows.Forms.RibbonPanel();

        private System.Windows.Forms.RibbonButton rbFacturacion;
        this.rbFacturacion = new System.Windows.Forms.RibbonButton();

        this.rbFacturacion.Image = ((System.Drawing.Image)(resources.GetObject("rbFacturacion.Image")));
        this.rbFacturacion.LargeImage = ((System.Drawing.Image)(resources.GetObject("rbFacturacion.LargeImage")));
        this.rbFacturacion.MaxSizeMode = System.Windows.Forms.RibbonElementSizeMode.Medium;
        this.rbFacturacion.Name = "rbFacturacion";
        this.rbFacturacion.SmallImage = ((System.Drawing.Image) resources.GetObject("rbFacturacion.SmallImage")));
        this.rbFacturacion.Text = "Facturas";
        this.rbFacturacion.Click += new System.EventHandler(this.rbFacturacion_Click);

        this.rpEmisionComprobantes.Items.Add(this.rbFacturacion);

When i click the Orb, the ribbon fires rbFacturacion_Click event, and then DropDown the orb

Can u help me to solve this?

Thanks

Juan

RTL Mode

Hi
Ribbon in RightToLoeft=True is not displaying and working correct!

Opening RibbonButton drop down using alt key doesn't work

I can't get the drop down list of a RibbonButton to open using alt key. I double checked that all AltKey properties on the form are unique, but nothing happens when is use the keyboard shortcut assigned to the drop down button.

Can you Pre-Select a tab?

I have tabs 1 through 4, when the form opens however, I want to have tab 3 selected (tab 1 is selected by default).

Can I do this programatically?

Thanks

When inheriting from RibbonForm, the designer crashes.

Currently using VS2017, and whenever the form inherits from RibbonForm, it breaks in the designer.

The project can still be built and run perfectly fine, it's just the designer that is broken.
No listed error apart from the classic "The designer failed to provide a root component".

How to add items to drop down list

Hi all, (using winforms VB.NET)
I have a list of List of strings which I use to populate my menus DropDownList's, as per below (which works)

I've added the Ribbon Control to form1. But I can't add a drop down items using this code ...

Dim TempListofTablesNames As New List(Of String)()
TempListofTablesNames.AddRange(Mod_DBStructure.ListofTablesNames)

    If TempListofTablesNames.Count > 0 Then
        For i = TempListofTablesNames.Count - 1 To 0 Step -1
            Form1.ToolStrip2_SelectTableComboBox.Items.Add(TempListofTablesNames(i).ToString()) 'works'

'new ribbon code' Form1.EditTable_RibbonButton.DropDownItems.Add(TempListofTablesNames(i).ToString(), My.Resources.table_edit.ToBitmap) 'errors'

        Next

How do I build a ribbon item? Thanks for looking.

Office 2016/2019 UI

Hi!
Thanks for this great work.

Is there a way to change the style by a more modern Office UI (2016 or 2019)? If not, how can I contribute to this project?

Thanks in advance.

Looking for development assistance

First this is an amazing control and I have only just start using it over the past 2 days. I've brought it into my solution and have everything working great except for one thing. I'm not sure if it is a bug or a setting somewhere that needs to be turned off.

I am using it in an MDI form. For the first added RibbonTab/RibbonButton, the Orb click event instant shows the Orb then retracts it. Click on a different RibbonButton then the RibbonOrb displays correctly. I can repeat it every time. It is like the RibbonButton's [Click] event is fired just by clicking the button to display the RibbonOrb?????? For all other tabs/panels the Orb stays up and is visible however, with this one it instantly retracts/hides itself again.

Any Idea why?

If the original developer wants to contact me directly then I can be reached at [email protected]

visible issue in ribbon panel

Hi,
I found an issue:
When I place in code:
Panel.Visible = false;
Panel.Visible = true;
then Panel will be still invisible.
If I hide Panel in properties and unhide from code, then it works, but only once.
If I hide Panel from code, then it will be invisible for ever ;)

Best Regards

Assign shortcuts to ribbon button

What is the best way to assign a shortcut to the buttons?

  • Using keyPress/keyDown events on main Ribbon control?
  • Using the key preview property of the parent form?
  • Any suggestion?

datagridview

hi
ribbon can support winform datagridview ?thanks!

RibbonButton DropDownShowing not raised

if I want to fill out the "DropDownItems" collection at run time

ok no problem ... but

the DropDownShowing is not raised, if it does not contain at least one element added a time design

Amitiés
Lionel

Windows 10 April 2018 Update with high-dpi displays: RibbonButton dropdown items click events not firing.

This issue happens only on Windows 10 updated to April 2018 (version 1803). If you set the display scaling above 100% (i tried 150% and 200%), the click event does not fire when clicking items on dropdown RibbonButtons.
Note that scaling over 100% is the default in most high-dpi displays.

Debugging the issue I have discovered that the problem is related to FeedHookClick function on RibbonPopupManager class. This function checks if the mouse position is contained into the dropdown bounds.
While before April 2018 Update the mouse location passed as parameter is scaled accordingly with display scaling setting, on April 2018 the mouse location is the real one, related to the physical display resolution, not scaled.
If you set the display scaling at 100% the virtual ant the physical mouse coords are the same, so the issue does not happens.
On April 2018 Update when scaling over 100% the FeedHookClick function mouse position check fails because the (physical) mouse position is outside the (virtual) dropdown bounds, so the function returns false and no mousedown/click/ect. events are fired.

The mouse location passed to FeedHookClick function come from the windows message queue hooked with SetWindowsHookEx API (see GlobalHook class, InstallHook function). This means that Microsoft has changed some policies on passing these coords with April 2018 Update.
Can this be considered a bug from Microsoft? Maybe, i don't know. The problem is: how to fix the bug on the Ribbon? You could change the FeedHookClick function scaling correctly the mouse position before checking, but it will work only on April 2018 Update, not with prior versions.
Should you check the version of Windows and scaling before checking only if >= April 2018 Update?

Anyway, in the meantime i have modified the FeedHookClick function returning ALWAYS true, so the mouse events are always fired. I have made some tests and, for my situation, i have not found any negative side effects.

Somebody can say something more about this issue?

NOTE that maybe the problem could be the same of the issue #1 opened on 26 Nov 2017 by PietF

RibbonOrbMenuItem firing when Orb is clicked and Ribbon is minimzed

I'm using the Office_2013 Orb with the latest release. It seems that my first RibbonOrbMenuItem is firing a click event when I have the Ribbon minimzed and want to click on the Orb.

If I hold down the mouse and slide just a few pixels away from the Orb, nothing get's fired. It's just in minimized state, when maximized/normal, everything works fine.

Edit: I tried a little bit, it seems that not my first OrbMenuItem is fired, it's the leftest Ribbon Button of the current open Ribbon Tab. So the Ribbon seems to be still open, as I can see the tooltips, and overlaying over my RibbonOrb...

If you need any additional info in replicating this issue, just send me a little message

Ribbon click events stop working when screen set to 125%

As we want the top ribbon hidden after selecting something we add "Ribbon1.Minimized = true". This way we maximize the amount of space on the screen. What we have found is that when the screen resolution is set to 125% the click events for the ribbon no longer works to open any other screen????

Anyone know how to fix this?

Thanks
brendan

private void ribbonButton2_Click(object sender, EventArgs e)
{
foreach (Form f in MdiChildren)
{
if (f.GetType() == typeof(MDIChild1))
{
f.Activate();
return;
}
}
Form form = new MDIChild1
{
MdiParent = this
};
form.Show();
ribbon1.Minimized = true;
}

So, Windows 10

Currently there appears to be some issues with this library on windows 10 (weird border, blurry text, cut off elements, flickering).

windows10

I'd be willing to work on a new "Office 2016" style (because I need it anyway) and to fix some of these bugs.

office2016

If I can ask some questions, get feed back here, and make issues here I would be willing to contribute these changes back to the community. I'm just putting this out here to see if anyone is already doing it, or has any thoughts, or would like to help in anyway (so we can divvy up the work).

Some graphic bugs

Hey guys,

I've found some litte graphic bugs. I'm using windows 10 v1803 and VS2017 Pro.

When you inherit the mainform with the RibbonForm some small black lines appear under the tabs:
1

All elements are not vertically centered. This causes checkboxes to truncate the text (or have I overlooked a setting?)
2

-nessor

Release or download available?

There doesn't seem to be any public releases or Nuget packages available.
Is there a plan to provide some consumable binaries so we don't have to build the code ourselves?

Fixed Showing "Visible=false" controls on popup panel

file RibbonPanelPopup.cs
inserted one if keyword

    protected override void OnPaint(PaintEventArgs e)
    {
        base.OnPaint(e);

        Panel.Owner.Renderer.OnRenderPanelPopupBackground(
            new RibbonCanvasEventArgs(Panel.Owner, e.Graphics, new Rectangle(Point.Empty, ClientSize), this, Panel));

        foreach (RibbonItem item in Panel.Items)
        {
            if (item.Visible) //here
            {
                item.OnPaint(this, new RibbonElementPaintEventArgs(e.ClipRectangle, e.Graphics, RibbonElementSizeMode.Large));
            }
        }

        Panel.Owner.Renderer.OnRenderRibbonPanelBackground(new RibbonPanelRenderEventArgs(Panel.Owner, e.Graphics, e.ClipRectangle, Panel, this));
        Panel.Owner.Renderer.OnRenderRibbonPanelText(new RibbonPanelRenderEventArgs(Panel.Owner, e.Graphics, e.ClipRectangle, Panel, this));

    }

How can active other tab

I have 2 or more tab, now is active the first.

How can i open (only activate, the tab is alredy created)the second in RibbonWinForms?

Thanks

RibbonPanel new property

I would find it useful to be able to hide the text of a RibbonPanel, to have a new property like .HideText or .ShowText, reducing the height of the panel. Or even that the text-area disappears when text is set to empty.

Thanks.

Nuget package

Is there a Nuget package for this ribbon? If so, which? If not, are there plans to make one? I have never done one myself but would be willing to volunteer if you guys prefer.

Thanks for rebooting this project, btw.

RibbonMouseSensor

Hello,
I do not have any knowledge in English, excuse me for that.
I want to congratulate you on the excellent project and who is contributing to the improvements.
When trying out this project I intend to use it, I realized that when I dynamically create dropdown items and when too full popup panel appears and with that I can not move them with the mouse at all. Could anyone check this out on this project? Thank you all.
testribbon

Tabbing between items in the panel

Hi I'm trying to tab between items inside my ribbonPanel, Say I have three textbox in the panel I need to move between them using tab. I couldn't find tabindex property of the items inside the panel
image
In this sample ribbonpanel when I press tab it should switch between the individual buttons not to go to the next panel

.NET Core 3 Builds

Great ribbon control! :-)

Any plans to provide .NET Core 3 builds as well?

configure right to left in the ribbon

Hi All,
i have used this ribbon in my application , but i need to configure it for right to left
appreciate any help since am not an expert in this , i have used the latest version 5.0.0.0 System.Windows.Forms.Ribbon.dll

ribbonrighttoleft

Regards
Qutaybah

RibbonButton sticky dropdown items

I use the ribbon in WinForms application. I have several buttons having dynamically populated hierarchy of DropDownItems. When users expand one top level item and then expands another one, the first item hierarchy remains expanded whereas I would expect it to autohide.

Is there anything I can do to fix that by means of control settings?

Thanks

Menu1
Menu2

How to implement RibbonWinForms in PB Classical

Hi

This is not bug. I appreciate your efforts in building the Ribbon Win Form to the community. I was desperately searching for Ribbon Menu and using PB 12.5 Classical with no dot net features. It will be very much helpful if you guide us for implementing it in PB Classical.

Bug : When the owner form is minimized, the while loop does not exit.

In my case,
when owner form is minimized, all RibbonPanels going to Overflow mode in while loop.
And does not exit the while loop.
I did fix a line of code.
Component Classes\RibbonTab.cs #946 line.
if (!Owner.IsDesignMode())
to
if (!Owner.IsDesignMode() && (Owner.TopLevelControl as Form)?.WindowState != FormWindowState.Minimized)

[v6] Add ImageList-Support

Hi, everyone,

as some might have detected, currently there is no support for ImageLists in RibbonWinForms.

For now, that's one of my top-priorities for version 6. If you have any ideas and comments, just drop a line.

Thanks!

Inherit from RibbonLabel and set background and font?

I need to inherit from RibbonLabel and override methods so that I can draw text in bold and the background in a different color.

However, I couldn't find any Font property to use.

Where and how can I access the Font and BackColor properties for the inherited control?

Crash(es) when running under Mono (Linux)

This component works surprisingly well under Mono in Linux, but it has a few places where it crashes. Has someone checked out these issues so far? If not, I'd like to contribute a few patches to make it work as well as possible.

MDI FORM doesn't move

I attemp to move an MDIForm while clicking on the top of the window and drag it.
The form doesn't move.
If you try with an simple form that doesn't inherit from Ribbonform, all is done normaly.
There also another problem with double click to restore fullcreen status of the form, it doesn't work too.
I try to search why, but some help will be appreciate.

Thx,

Astronäar

Ribbon is not showing in toolbox

Hi,
I installed RibbonWinForms 5.0.1.1 from NuGet. But there is no ribbon in toolbox, even inside Choose Toolbox Items. Adding only dll not worked too. Your example project works fine but when I add my own project it can't find the tools.

Manually (with code) adding a Ribbon to RibbonForm working fine but there is something wrong with designer.

Configuration:

  • Visual Studio 2019 Community
  • .NET Framework 4.8
  • RibbonWinForms 5.0.1.1
  • Windows 10 v1903

Orb style

Evaluating to use in an existing app. I have a beautiful looking 2013 style ribbon

image

But when I click the orb thing, it looks old style. How do I change to to look like 2013 style? (or at least get rid of the rounded border part)

image

ribbonComboBox DropDownItemClicked and TextBoxTextChanged events not firing anymore

hi,
it seems that after some kind of Windows update in the last few weeks, DropDownItemClicked and TextBoxTextChanged events of ribbonComboBox are not fired anymore (before they were working fine).
Unfortunately it doesn't happen on my develop machine but on few production machines (windows 7, 8 and 10)
Am I the only one with this issue?

Thanks

Using strings to manipulate Ribbon elements

Hi!

I would like to manipulate some properties of Ribbon elements (name, visible and enabled) dynamically with codes like these:

string Tb = "MyRibbonTab";
this.Controls [Tb] .Name = "Tab Save";

string Pnl = "MyRibbonPanel";
this.Controls [Pnl] .Name = "Pnl Save";

string Itm = "MyRibbonItem";
this.Controls [Itm] .Name = "Item Save As";

Anyone here can help me?

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.