Files
mono/mcs/class/System.Windows.Forms/Gtk/ContainerControl.cs
T
Joel Basson d6a820caf1 Tue Dec 16 12:15:00 GMT+2 2003 Joel Basson <[email protected]>
* Applied patch from Alberto Fernandez with the following changes...
	* Added Shorcut to MenuItem.
	* Changed demo.cs to work with new FileDialog.
	* Created dialogs (Basic funcionality).
	* Added new:
		Timer.cs (?)
	* Removed function ControlLocationChanged
		(the code has been moved to Control.OnLocationChanged, and now works from
		child Control, instead from parent.)
	* MenuItem
	* Menu
	* ContextMenu
	* MainMenu
	* Fixed Control.Size bug
	* New Samples:
		ButtonEvents2.cs
		ChangeParentDemo.cs (works with Gtk-Warnings)
		LabelClickDemo.cs (doesn't work for now)
		Menu.cs
	* Added new:
		CommonDialog.cs
		OpenFileDialog.cs
		SaveFileDialog.cs
		FolderBrowserDialog.cs
		PageSetupDialog.cs
		PrintDialog.cs
	* Changed:
		FileDialog.cs (now Inherits from CommonDialog, and is an abstract class).
	* Control.Parent works now.
	* Added - copied from current System.Windows.Forms (wine based):

		ApplicationContext.cs
		BindingContext.cs
		BoundsSpecified.cs
		ComVisible.cs
		ControlBindingsCollection.cs
		ControlStyles.cs
		CreateParams.cs
		DragAction.cs
		DragDropEffects.cs
		DragEventArgs.cs
		DragEventHandler.cs
		DrawItemEventHandler.cs
		FlatStyle.cs
		FormBorderStyle.cs
		FormStartPosition.cs
		FormWindowState.cs
		GiveFeedbackEventArgs.cs
		GiveFeedbackEventHandler.cs
		HelpEventArgs.cs
		HelpEventHandler.cs
		IDataObject.cs
		ImageList.cs
		ImeMode.cs
		IMessageFilter.cs
		IWin32Window.cs
		InputLanguageChangedEventArgs.cs
		InputLanguageChangedEventHandler.cs
		InputLanguageChangingEventArgs.cs
		InputLanguageChangingEventHandler.cs
		InputLanguageCollection.cs
		InputLanguage.cs
		InvalidateEventArgs.cs
		InvalidateEventHandler.cs
		LayoutEventHandler.cs
		LeftRightAlignment.cs
		MdiLayout.cs
		MeasureItemEventArgs.cs
		MeasureItemEventHandler.cs
		MenuMerge.cs
		Message.cs
		MouseEventHandler.cs
		QueryAccessibilityHelpEventArgs.cs
		QueryAccessibilityHelpEventHandler.cs
		QueryContinueDragEventArgs.cs
		QueryContinueDragEventHandler.cs
		SizeGripStyle.cs
		UICues.cs
		UICuesEventArgs.cs
		UICuesEventHandler.cs

	* Added (new, incomplete):
		Cursor.cs
		Menu.cs
		ContextMenu.cs

	* Changed (to be compatible, now have empty methods):
		MainMenu.cs
		MenuItem.cs

	* Added (provides static conversion methods):
		SWFGtkConv.cs
	* Work on:
		Control.cs - Completed stub, connected some events.
		Forms.cs - Completed stub.
		Button.cs - Some methos overriden, some property changes have
		to be aplied to the contained Gtk.Label (instead to the Gtk.Button)

	* Others minor changes...

svn path=/trunk/mcs/; revision=21206
2003-12-15 23:20:41 +00:00

153 lines
3.1 KiB
C#

//
// System.Windows.Forms.ContainerControl.cs
//
// Author:
// Miguel de Icaza ([email protected])
// stubbed out by Jaak Simm ([email protected])
// Dennis Hayes ([email protected])
// WINELib implementation started by John Sohn ([email protected])
//
// (C) Ximian, Inc., 2002/3
//
using System.ComponentModel;
using System.Drawing;
namespace System.Windows.Forms {
/// <summary>
/// Provides focus management functionality for controls that can function as a container for other controls.
/// </summary>
public class ContainerControl : ScrollableControl, IContainerControl {
public ContainerControl () : base ()
{
//controlStyles_ |= ControlStyles.ContainerControl;
}
public Control ActiveControl {
get {
throw new NotImplementedException ();
}
set {
//FIXME:
}
}
//Compact Framework
[MonoTODO]
// not ready for BindingContext
public override BindingContext BindingContext {
get {
throw new NotImplementedException ();
}
set {
//fixme:
}
}
protected override CreateParams CreateParams {
get { return base.CreateParams; }
}
[MonoTODO]
public Form ParentForm {
get { throw new NotImplementedException (); }
}
/// --- Methods ---
/// internal .NET framework supporting methods, not stubbed out:
/// - protected virtual void UpdateDefaultButton()
protected override void AdjustFormScrollbars (
bool displayScrollbars)
{
//FIXME:
base.AdjustFormScrollbars (displayScrollbars);
}
protected override void Dispose (bool disposing)
{
//FIXME
base.Dispose(disposing);
}
[MonoTODO]
// not memeber?
bool IContainerControl.ActivateControl(Control control)
{
throw new NotImplementedException ();
}
// [event methods]
protected override void OnControlRemoved (ControlEventArgs e)
{
//FIXME:
base.OnControlRemoved (e);
}
protected override void OnCreateControl ()
{
//FIXME:
base.OnCreateControl ();
}
// end of [event methods]
[MonoTODO]
protected override bool ProcessDialogChar (char charCode)
{
//FIXME:
return base.ProcessDialogChar(charCode);
}
[MonoTODO]
protected override bool ProcessDialogKey (Keys keyData)
{
if ( keyData == Keys.Tab ) {
return ProcessTabKey ( Control.ModifierKeys != Keys.Shift );
}
return base.ProcessDialogKey(keyData);
}
[MonoTODO]
protected override bool ProcessMnemonic (char charCode)
{
//FIXME:
return base.ProcessMnemonic(charCode);
}
[MonoTODO]
protected virtual bool ProcessTabKey ( bool forward )
{
/*Control newFocus = getNextFocusedControl ( this, forward );
if ( newFocus != null )
return newFocus.Focus ( );*/
return false;
}
// Not an overridden function?
protected override void Select(bool directed,bool forward)
{
base.Select(directed, forward);
}
protected virtual void UpdateDefaultButton() {
}
[MonoTODO]
public bool Validate ()
{
throw new NotImplementedException ();
}
protected override void WndProc(ref Message m)
{
//FIXME:
base.WndProc(ref m);
}
}
}