dotgnu-libs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-libs-commits] CVS: xsharp/samples Scribble.cs,1.1,1.2 XHello.cs,


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-libs-commits] CVS: xsharp/samples Scribble.cs,1.1,1.2 XHello.cs,1.3,1.4
Date: Sat, 28 Sep 2002 00:47:51 -0400

Update of /cvsroot/dotgnu-libs/xsharp/samples
In directory subversions:/tmp/cvs-serv22388/samples

Modified Files:
        Scribble.cs XHello.cs 
Log Message:


Implement the support code for application objects; Enter/Leave events.


Index: Scribble.cs
===================================================================
RCS file: /cvsroot/dotgnu-libs/xsharp/samples/Scribble.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Scribble.cs 28 Sep 2002 03:01:00 -0000      1.1
--- Scribble.cs 28 Sep 2002 04:47:49 -0000      1.2
***************
*** 30,37 ****
  
        // Main entry point.
!       public static void Main()
        {
!               Display dpy = Display.Open(null);
!               Widget root = dpy.DefaultRootWindow;
                TopLevelWindow topLevel = new TopLevelWindow("Scribble", 300, 
250);
                topLevel.SelectPress += new ButtonPressEventHandler(Press);
--- 30,36 ----
  
        // Main entry point.
!       public static void Main(String[] args)
        {
!               Application app = new Application("Scribble", args);
                TopLevelWindow topLevel = new TopLevelWindow("Scribble", 300, 
250);
                topLevel.SelectPress += new ButtonPressEventHandler(Press);
***************
*** 41,47 ****
                topLevel.Background = new Color(0xFF, 0xFF, 0xFF);
                topLevel.Map();
!               dpy.Flush();
!               dpy.Run();
!               dpy.Close();
        }
  
--- 40,45 ----
                topLevel.Background = new Color(0xFF, 0xFF, 0xFF);
                topLevel.Map();
!               app.Run();
!               app.Close();
        }
  

Index: XHello.cs
===================================================================
RCS file: /cvsroot/dotgnu-libs/xsharp/samples/XHello.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** XHello.cs   28 Sep 2002 03:01:00 -0000      1.3
--- XHello.cs   28 Sep 2002 04:47:49 -0000      1.4
***************
*** 26,39 ****
  {
        // Main entry point.
!       public static void Main()
        {
!               Display dpy = Display.Open(null);
!               Widget root = dpy.DefaultRootWindow;
                TopLevelWindow topLevel = new TopLevelWindow("Hello World!", 
200, 100);
                topLevel.Paint += new PaintEventHandler(PaintHello);
                topLevel.Map();
!               dpy.Flush();
!               dpy.Run();
!               dpy.Close();
        }
  
--- 26,37 ----
  {
        // Main entry point.
!       public static void Main(String[] args)
        {
!               Application app = new Application("XHello", args);
                TopLevelWindow topLevel = new TopLevelWindow("Hello World!", 
200, 100);
                topLevel.Paint += new PaintEventHandler(PaintHello);
                topLevel.Map();
!               app.Run();
!               app.Close();
        }
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]