My users… This feature is really messing with their heads, and because
it’s touch screen it happens a lot. Hell it’s tough enough when all the
tabs and panels are always in the same spot
Here’s what somebody did for us to disable the floating tabs. I don’t claim to know what it all does, but I’m sure you can figure it out.
System.Windows.Forms.Control.ControlCollection control = null;
DisableTabFloating(ref control);
private void DisableTabFloating(ref System.Windows.Forms.Control.ControlCollection ctls)
{
if (ctls == null)
ctls = oTrans.EpiBaseForm.Controls;
foreach (Control ctl in ctls) {
if (ctl.HasChildren)
{
System.Windows.Forms.Control.ControlCollection ctlsChildren = ctl.Controls;
DisableTabFloating(ref ctlsChildren);
}
if ((ctl) is Infragistics.Win.UltraWinDock.WindowDockingArea) {
object objDockManager = ctl.GetType().InvokeMember("DockManager", BindingFlags.GetProperty | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.IgnoreCase, null, ctl, null);
// Once found get a handle to the Infragistics dock manager using relection
Infragistics.Win.UltraWinDock.UltraDockManager udm = (Infragistics.Win.UltraWinDock.UltraDockManager)objDockManager;
// Loop through all the panels disabling the undocking behaviour
foreach (Infragistics.Win.UltraWinDock.DockableControlPane p in udm.ControlPanes) {
p.Settings.AllowDragging = Infragistics.Win.DefaultableBoolean.False;
p.Settings.AllowFloating = Infragistics.Win.DefaultableBoolean.False;
p.Settings.DoubleClickAction = Infragistics.Win.UltraWinDock.PaneDoubleClickAction.None;
}
}
}
}
Ahhh I think the pane double click action might be the ticket, thanks. Ya
Jose, giving them another step, click this menu item, is asking for ALOT
lol. Besides most times the panel floats over the menu which would make
their heads explode. Our users are the kind that aren’t aware what CAPS
lock does
FYI Brandon Anderson’s graciously shared code nails it. Thanks!
I wish Epicor had a global code store where I could put functions to be accessed globally. I find myself rewriting the same code over and over for multiple customizations.
I still can’t believe they have just created a lock layout check box in the options. I know how to get things back, but am always accidentally moving tabs around and it’s a PITA!
I hate to be “that guy” to revive an old post, but I have to say that I absolutely LOVE this piece of code. I also added another line to disable the “pinning” action (auto-hide pin in the top right corners of the panels). That is accomplished with:
Now, for a question that will aid in my general sanity: I have a few users who are constantly undocking the menu from Epicor’s main window in Classic mode. How can I apply this code customization to that Main Menu screen in the Classic view? I have seen how to customize the MES Menu screen, but not the Classic Menu. Any help that can be offered on this would be much appreciated.
Jay
While that is ideal for most of our users, I don’t think the particular “problem users” would be able to learn the updated menu structure…too much like a social media page to maintain focus. But I’m with you, anything that I can do to show our users any type of “improvement” from our current E9 implementation is a bonus.