**** Merged from MCS ****
[mono-project.git] / mcs / class / System.Windows.Forms / Gtk / ContainerControl.cs
blob7aaf6095afb5831f4a1f6cce416ca1eda430a218
1 //
2 // System.Windows.Forms.ContainerControl.cs
3 //
4 // Author:
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)
9 //
10 // (C) Ximian, Inc., 2002/3
13 using System.ComponentModel;
14 using System.Drawing;
16 namespace System.Windows.Forms {
18 /// <summary>
19 /// Provides focus management functionality for controls that can function as a container for other controls.
20 /// </summary>
22 public class ContainerControl : ScrollableControl, IContainerControl {
24 public ContainerControl () : base ()
26 //controlStyles_ |= ControlStyles.ContainerControl;
30 public Control ActiveControl {
31 get {
32 throw new NotImplementedException ();
34 set {
35 //FIXME:
39 //Compact Framework
40 [MonoTODO]
41 // not ready for BindingContext
42 public override BindingContext BindingContext {
43 get {
44 throw new NotImplementedException ();
46 set {
47 //fixme:
51 protected override CreateParams CreateParams {
52 get { return base.CreateParams; }
55 [MonoTODO]
56 public Form ParentForm {
57 get { throw new NotImplementedException (); }
60 /// --- Methods ---
61 /// internal .NET framework supporting methods, not stubbed out:
62 /// - protected virtual void UpdateDefaultButton()
64 protected override void AdjustFormScrollbars (
65 bool displayScrollbars)
67 //FIXME:
68 base.AdjustFormScrollbars (displayScrollbars);
71 protected override void Dispose (bool disposing)
73 //FIXME
74 base.Dispose(disposing);
77 [MonoTODO]
78 // not memeber?
79 bool IContainerControl.ActivateControl(Control control)
81 throw new NotImplementedException ();
84 // [event methods]
85 protected override void OnControlRemoved (ControlEventArgs e)
87 //FIXME:
88 base.OnControlRemoved (e);
91 protected override void OnCreateControl ()
93 //FIXME:
94 base.OnCreateControl ();
96 // end of [event methods]
98 [MonoTODO]
99 protected override bool ProcessDialogChar (char charCode)
101 //FIXME:
102 return base.ProcessDialogChar(charCode);
105 [MonoTODO]
106 protected override bool ProcessDialogKey (Keys keyData)
108 if ( keyData == Keys.Tab ) {
109 return ProcessTabKey ( Control.ModifierKeys != Keys.Shift );
111 return base.ProcessDialogKey(keyData);
114 [MonoTODO]
115 protected override bool ProcessMnemonic (char charCode)
117 //FIXME:
118 return base.ProcessMnemonic(charCode);
121 [MonoTODO]
122 protected virtual bool ProcessTabKey ( bool forward )
124 /*Control newFocus = getNextFocusedControl ( this, forward );
125 if ( newFocus != null )
126 return newFocus.Focus ( );*/
127 return false;
130 // Not an overridden function?
131 protected override void Select(bool directed,bool forward)
133 base.Select(directed, forward);
136 protected virtual void UpdateDefaultButton() {
140 [MonoTODO]
141 public bool Validate ()
143 throw new NotImplementedException ();
146 protected override void WndProc(ref Message m)
148 //FIXME:
149 base.WndProc(ref m);