To disable all you would need to customize each form, unless you had the SDK and then you could change the base classes that these inherit from.
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of phoenix
Sent: 30 June 2008 18:56
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Re: Epicor Stop ripping me off ;)
Just to make 100% sure. As far as I understood this is not a global
resolution. If I want to disable this feature I need to do it for each
application separately. Is it right?
Grzegorz Szczepański
Dnia Fri, 27 Jun 2008 11:01:44 -0400
Aaron Hoyt <aaron.hoyt@... <mailto:aaron.hoyt%40vantageplastics.com> > napisał(a):
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of phoenix
Sent: 30 June 2008 18:56
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Re: Epicor Stop ripping me off ;)
Just to make 100% sure. As far as I understood this is not a global
resolution. If I want to disable this feature I need to do it for each
application separately. Is it right?
Grzegorz Szczepański
Dnia Fri, 27 Jun 2008 11:01:44 -0400
Aaron Hoyt <aaron.hoyt@... <mailto:aaron.hoyt%40vantageplastics.com> > napisał(a):
> Thank you so much! This works for anyone who is wondering.[Non-text portions of this message have been removed]
> Aaron Hoyt
> Vantage Plastics
>
> bw2868bond wrote:
> >
> > A very kind soul heard my plea and has sent me code (that I have
> > been asked to share) that enumerates the controls on a form, checks
> > if the control is a docking pane, and then disables the undocking
> > ability. I learned much figuring out what I did on my own - and I
> > learn more looking at elegant code examples :o)
> >
> > THANK YOU very kind soul!!
> >
> > (watch out for wrapping that the forum introduces into long lines of
> > text)
> >
> > Sub InitializeCustomCode()
> >
> > '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard
> > Added Variable Intialization' lines **
> > '// Begin Wizard Added Variable Intialization
> >
> > '// End Wizard Added Variable Intialization
> > '// Begin Custom Method Calls
> >
> > DisableTabFloating()
> >
> > '// End Custom Method Calls
> > End Sub
> >
> > ' Disable the undocking behaviour of a forms tab controls
> > ' Requires: Imports System.Reflection
> > Private Sub DisableTabFloating(Optional ByRef ctls As
> > System.Windows.Forms.Control.ControlCollection = Nothing)
> >
> > ' Enumerate the forms controls looking for the Epicor dock
> > manager
> > If ctls Is Nothing Then ctls = oTrans.EpiBaseForm.Controls
> > For Each ctl As Control In ctls
> >
> > If ctl.HasChildren Then DisableTabFloating(ctl.Controls)
> >
> > If TypeOf(ctl) Is
> > Infragistics.Win.UltraWinDock.WindowDockingArea Then
> >
> > Dim objDockManager As Object = ctl.GetType
> > ().InvokeMember("DockManager", BindingFlags.GetProperty Or
> > BindingFlags.NonPublic Or BindingFlags.Instance Or
> > BindingFlags.IgnoreCase, Nothing, ctl, Nothing)
> > ' Once found get a handle to the Infragistics dock
> > manager using relection
> > Dim udm As
> > Infragistics.Win.UltraWinDock.UltraDockManager = CType
> > (objDockManager, Infragistics.Win.UltraWinDock.UltraDockManager)
> >
> > ' Loop through all the panels disabling the undocking
> > behaviour
> > For Each p As
> > Infragistics.Win.UltraWinDock.DockableControlPane 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
> > Next
> >
> > End If
> > Next
> >
> > End Sub
> >
> > > > --- In vantage@yahoogroups .com, Aaron Hoyt <aaron.hoyt@ ...>
> > wrote:
> > > >
> > > > >
> > > >
> > > > > Good morning Vantage users,
> > > >
> > > > >
> > > >
> > > > > Ok the creative subject was calculated to get maximum response
> > to
> > > a
> > > >
> > > > > problem that I can't be the only one that is having.
> > > >
> > > > >
> > > >
> > > > > How can we PREVENT tabs from being ripped off and set in a new
> > > >
> > > > location?
> > > >
> > > > >
> > > >
> > > > > I have removed personalization, so the users (MES is my
> > > > > biggest
> > > >
> > > > > frustration) so they will get back their original screen when
> > > they
> > > >
> > > > open
> > > >
> > > > > the form next, but I want to prevent the rather frustrating
> > > > > and
> > > >
> > > > time
> > > >
> > > > > expensive task of dealing with users that have a heavy first
> > > finger
> > > >
> > > > and
> > > >
> > > > > tend to drag the tabs off. I have learned that a tab that is
> > not
> > > >
> > > > > relocated but just removed from a sheet can be reattached
> > > > > where
> > > it
> > > >
> > > > > should be by double clicking on the title bar of the floating
> > > tab,
> > > >
> > > > but
> > > >
> > > > > there has to be some way to prevent this altogether doesn't
> > there?
> > > >
> > > > >
> > > >
> > > > > Can anyone offer some assistance? My call into support has not
> > > >
> > > > received
> > > >
> > > > > an answer as of yet.
> > > >
> > > > >
> > > >
> > > > > Thanks,
> > > >
> > > > > Aaron Hoyt
> > > >
> > > > > Vantage Plastics
> > > >
> > > > >
> > > >
> > >
> >
> >
>
>
> [Non-text portions of this message have been removed]