[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/samples FormsHello.cs,1.1,1.2
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/samples FormsHello.cs,1.1,1.2 |
Date: |
Wed, 11 Jun 2003 06:37:30 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/samples
In directory subversions:/tmp/cvs-serv21569/samples
Modified Files:
FormsHello.cs
Log Message:
Process user-initiated move and resize events from the window manager;
implement "SetBoundsCore" and window invalidation.
Index: FormsHello.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/samples/FormsHello.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** FormsHello.cs 11 Jun 2003 07:07:19 -0000 1.1
--- FormsHello.cs 11 Jun 2003 10:37:28 -0000 1.2
***************
*** 24,30 ****
using System.Windows.Forms;
! public class FormsHello
{
! private static void Paint(Object sender, PaintEventArgs e)
{
Graphics graphics = e.Graphics;
--- 24,36 ----
using System.Windows.Forms;
! public class FormsHello : Form
{
!
! private FormsHello()
! {
! SetStyle(ControlStyles.ResizeRedraw, true);
! }
!
! private static void HandlePaint(Object sender, PaintEventArgs e)
{
Graphics graphics = e.Graphics;
***************
*** 57,65 ****
public static void Main(String[] args)
{
! Form form = new Form();
form.Width = 400;
form.Height = 250;
form.Text = "Forms Hello";
! form.Paint += new PaintEventHandler(Paint);
Application.Run(form);
}
--- 63,71 ----
public static void Main(String[] args)
{
! Form form = new FormsHello();
form.Width = 400;
form.Height = 250;
form.Text = "Forms Hello";
! form.Paint += new PaintEventHandler(HandlePaint);
Application.Run(form);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/samples FormsHello.cs,1.1,1.2,
Rhys Weatherley <address@hidden> <=