[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms UserControl.cs,
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms UserControl.cs,NONE,1.1 EventId.cs,1.2,1.3 |
Date: |
Fri, 13 Jun 2003 06:56:32 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms
In directory subversions:/tmp/cvs-serv1540/System.Windows.Forms
Modified Files:
EventId.cs
Added Files:
UserControl.cs
Log Message:
Implement the UserControl widget.
--- NEW FILE ---
/*
* UserControl.cs - Implementation of the
* "System.Windows.Forms.UserControl" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Windows.Forms
{
using System.Drawing;
public class UserControl : ContainerControl
{
// Constructor.
public UserControl() {}
// Event that is emitted before the control becomes
// visible for the first time.
public event EventHandler Load
{
add
{
AddHandler(EventId.Load, value);
}
remove
{
RemoveHandler(EventId.Load, value);
}
}
// Get the default size of the user control
public override Size DefaultSize
{
get
{
return new Size(150, 150);
}
}
// Override the control create event.
protected override void OnCreateControl()
{
base.OnCreateControl();
OnLoad(EventArgs.Empty);
}
// Raise the "Load" event.
protected virtual void OnLoad(EventArgs e)
{
EventHandler handler;
handler =
(EventHandler)(GetHandler(EventId.Load));
if(handler != null)
{
handler(this, e);
}
}
// Override the mouse down event.
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
}
#if !CONFIG_COMPACT_FORMS
// Process a message.
public override void WndProc(ref Message m)
{
base.WndProc(ref m);
}
#endif // !CONFIG_COMPACT_FORMS
}; // class UserControl
}; // namespace System.Windows.Forms
Index: EventId.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/EventId.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** EventId.cs 13 Jun 2003 01:30:23 -0000 1.2
--- EventId.cs 13 Jun 2003 10:56:29 -0000 1.3
***************
*** 95,98 ****
--- 95,101 ----
TextAlignChanged,
+ // "UserControl" events.
+ Load,
+
}; // enum EventId
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms UserControl.cs,NONE,1.1 EventId.cs,1.2,1.3,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms AccessibleNavigation.cs,NONE,1.1 AccessibleSelection.cs,NONE,1.1 AccessibleStates.cs,NONE,1.1 Appearance.cs,NONE,1.1 ArrangeDirection.cs,NONE,1.1 ArrangeStartingPosition.cs,NONE,1.1 BindingMemberInfo.cs,NONE,1.1 BootMode.cs,NONE,1.1 CharacterCasing.cs,NONE,1.1 ColorDepth.cs,NONE,1.1 DataGridCell.cs,NONE,1.1 DataGridColumnStyle.cs,NONE,1.1 DataGridLineStyle.cs,NONE,1.1 DataGridParentRowsLabelStyle.cs,NONE,1.1 DateTimePickerFormat.cs,NONE,1.1 Day.cs,NONE,1.1 DrawItemState.cs,NONE,1.1 DrawMode.cs,NONE,1.1 ErrorBlinkStyle.cs,NONE,1.1 ErrorIconAlignment.cs,NONE,1.1 GridItemType.cs,NONE,1.1 HelpNavigator.cs,NONE,1.1 ICommandExecutor.cs,NONE,1.1 IComponentEditorPageSite.cs,NONE,1.1 IDataGridColumnStyleEditingNotificationService.cs,NONE,1.1 IDataGridEditingService.cs,NONE,1.1 IFeatureSupport.cs,NONE,1.1 IFileReaderService.cs,NONE,1.1 IWindowTarget.cs,NONE,1.1 ItemBoundsPortion.cs,NONE,1.1 LinkArea.cs,NONE,1.1 LinkBehavior.cs,NONE,1.1 LinkState.cs,NONE,1.1 ListViewAlignment.cs,NONE,1.1 MdiLayout.cs,NONE,1.1 MenuMerge.cs,NONE,1.1 MessageBoxOptions.cs,NONE,1.1 PropertySort.cs,NONE,1.1 RichTextBoxFinds.cs,NONE,1.1 RichTextBoxScrollBars.cs,NONE,1.1RichTextBoxSelectionAttribute.cs,NONE,1.1 RichTextBoxSelectionTypes.cs,NONE,1.1RichTextBoxStreamType.cs,NONE,1.1 RichTextBoxWordPunctuations.cs,NONE,1.1 ScrollEventType.cs,NONE,1.1 SecurityIDType.cs,NONE,1.1 SelectionMode.cs,NONE,1.1 Shortcut.cs,NONE,1.1 SortOrder.cs,NONE,1.1 StatusBarPanelAutoSize.cs,NONE,1.1StatusBarPanelBorderStyle.cs,NONE,1.1 StatusBarPanelStyle.cs,NONE,1.1 StructFormat.cs,NONE,1.1 TabAlignment.cs,NONE,1.1 TabAppearance.cs,NONE,1.1 TabDrawMode.cs,NONE,1.1 TabSizeMode.cs,NONE,1.1 TickStyle.cs,NONE,1.1 ToolBarAppearance.cs,NONE,1.1 ToolBarTextAlign.cs,NONE,1.1 TriangleDirection.cs,NONE,1.1 IDataObject.cs,1.1,1.2
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.1032,1.1033
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms AccessibleNavigation.cs,NONE,1.1 AccessibleSelection.cs,NONE,1.1 AccessibleStates.cs,NONE,1.1 Appearance.cs,NONE,1.1 ArrangeDirection.cs,NONE,1.1 ArrangeStartingPosition.cs,NONE,1.1 BindingMemberInfo.cs,NONE,1.1 BootMode.cs,NONE,1.1 CharacterCasing.cs,NONE,1.1 ColorDepth.cs,NONE,1.1 DataGridCell.cs,NONE,1.1 DataGridColumnStyle.cs,NONE,1.1 DataGridLineStyle.cs,NONE,1.1 DataGridParentRowsLabelStyle.cs,NONE,1.1 DateTimePickerFormat.cs,NONE,1.1 Day.cs,NONE,1.1 DrawItemState.cs,NONE,1.1 DrawMode.cs,NONE,1.1 ErrorBlinkStyle.cs,NONE,1.1 ErrorIconAlignment.cs,NONE,1.1 GridItemType.cs,NONE,1.1 HelpNavigator.cs,NONE,1.1 ICommandExecutor.cs,NONE,1.1 IComponentEditorPageSite.cs,NONE,1.1 IDataGridColumnStyleEditingNotificationService.cs,NONE,1.1 IDataGridEditingService.cs,NONE,1.1 IFeatureSupport.cs,NONE,1.1 IFileReaderService.cs,NONE,1.1 IWindowTarget.cs,NONE,1.1 ItemBoundsPortion.cs,NONE,1.1 LinkArea.cs,NONE,1.1 LinkBehavior.cs,NONE,1.1 LinkState.cs,NONE,1.1 ListViewAlignment.cs,NONE,1.1 MdiLayout.cs,NONE,1.1 MenuMerge.cs,NONE,1.1 MessageBoxOptions.cs,NONE,1.1 PropertySort.cs,NONE,1.1 RichTextBoxFinds.cs,NONE,1.1 RichTextBoxScrollBars.cs,NONE,1.1RichTextBoxSelectionAttribute.cs,NONE,1.1 RichTextBoxSelectionTypes.cs,NONE,1.1RichTextBoxStreamType.cs,NONE,1.1 RichTextBoxWordPunctuations.cs,NONE,1.1 ScrollEventType.cs,NONE,1.1 SecurityIDType.cs,NONE,1.1 SelectionMode.cs,NONE,1.1 Shortcut.cs,NONE,1.1 SortOrder.cs,NONE,1.1 StatusBarPanelAutoSize.cs,NONE,1.1StatusBarPanelBorderStyle.cs,NONE,1.1 StatusBarPanelStyle.cs,NONE,1.1 StructFormat.cs,NONE,1.1 TabAlignment.cs,NONE,1.1 TabAppearance.cs,NONE,1.1 TabDrawMode.cs,NONE,1.1 TabSizeMode.cs,NONE,1.1 TickStyle.cs,NONE,1.1 ToolBarAppearance.cs,NONE,1.1 ToolBarTextAlign.cs,NONE,1.1 TriangleDirection.cs,NONE,1.1 IDataObject.cs,1.1,1.2
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.1032,1.1033
- Index(es):