2 // System.Windows.Forms.ContainerControl.cs
5 // Miguel de Icaza (miguel@ximian.com)
6 // stubbed out by Jaak Simm (jaaksimm@firm.ee)
7 // Dennis Hayes (dennish@Raytek.com)
8 // WINELib implementation started by John Sohn (jsohn@columbus.rr.com)
10 // (C) Ximian, Inc., 2002/3
13 using System
.ComponentModel
;
16 namespace System
.Windows
.Forms
{
19 /// Provides focus management functionality for controls that can function as a container for other controls.
22 public class ContainerControl
: ScrollableControl
, IContainerControl
{
24 public ContainerControl () : base ()
26 //controlStyles_ |= ControlStyles.ContainerControl;
30 public Control ActiveControl
{
32 throw new NotImplementedException ();
41 // not ready for BindingContext
42 public override BindingContext BindingContext
{
44 throw new NotImplementedException ();
51 protected override CreateParams CreateParams
{
52 get { return base.CreateParams; }
56 public Form ParentForm
{
57 get { throw new NotImplementedException (); }
61 /// internal .NET framework supporting methods, not stubbed out:
62 /// - protected virtual void UpdateDefaultButton()
64 protected override void AdjustFormScrollbars (
65 bool displayScrollbars
)
68 base.AdjustFormScrollbars (displayScrollbars
);
71 protected override void Dispose (bool disposing
)
74 base.Dispose(disposing
);
79 bool IContainerControl
.ActivateControl(Control control
)
81 throw new NotImplementedException ();
85 protected override void OnControlRemoved (ControlEventArgs e
)
88 base.OnControlRemoved (e
);
91 protected override void OnCreateControl ()
94 base.OnCreateControl ();
96 // end of [event methods]
99 protected override bool ProcessDialogChar (char charCode
)
102 return base.ProcessDialogChar(charCode
);
106 protected override bool ProcessDialogKey (Keys keyData
)
108 if ( keyData
== Keys
.Tab
) {
109 return ProcessTabKey ( Control
.ModifierKeys
!= Keys
.Shift
);
111 return base.ProcessDialogKey(keyData
);
115 protected override bool ProcessMnemonic (char charCode
)
118 return base.ProcessMnemonic(charCode
);
122 protected virtual bool ProcessTabKey ( bool forward
)
124 /*Control newFocus = getNextFocusedControl ( this, forward );
125 if ( newFocus != null )
126 return newFocus.Focus ( );*/
130 // Not an overridden function?
131 protected override void Select(bool directed
,bool forward
)
133 base.Select(directed
, forward
);
136 protected virtual void UpdateDefaultButton() {
141 public bool Validate ()
143 throw new NotImplementedException ();
146 protected override void WndProc(ref Message m
)