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

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

[Dotgnu-pnet-commits] CVS: pnetlib/samples FormsHello.cs,1.9,1.10


From: Richard Baumann <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/samples FormsHello.cs,1.9,1.10
Date: Fri, 04 Jul 2003 01:50:02 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/samples
In directory subversions:/tmp/cvs-serv14510/samples

Modified Files:
        FormsHello.cs 
Log Message:
Implement winforms ToolBar, add RecreateHandle event to ImageList.


Index: FormsHello.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/samples/FormsHello.cs,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** FormsHello.cs       21 Jun 2003 00:42:42 -0000      1.9
--- FormsHello.cs       4 Jul 2003 05:50:00 -0000       1.10
***************
*** 29,32 ****
--- 29,33 ----
        private ProgressBar progress;
        private int msgNum;
+       private ToolBar toolbar;
        
        private FormsHello()
***************
*** 64,67 ****
--- 65,80 ----
                Paint += new PaintEventHandler(HandlePaint);
                button.Click += new EventHandler(HandleClick);
+ 
+               // Create a toolbar control and some toolbar buttons.
+               toolbar = new ToolBar();
+               toolbar.Buttons.Add("Hello");
+               ToolBarButton tbb = new ToolBarButton();
+               tbb.Style = ToolBarButtonStyle.Separator;
+               toolbar.Buttons.Add(tbb);
+               tbb = new ToolBarButton("World!");
+               toolbar.Buttons.Add(tbb);
+               toolbar.Appearance = ToolBarAppearance.Flat;
+               toolbar.BorderStyle = BorderStyle.FixedSingle;
+               Controls.Add(toolbar);
        }
  





reply via email to

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