[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] pnetlib/System.Drawing.Xsharp DrawingTopLevelWindo
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] pnetlib/System.Drawing.Xsharp DrawingTopLevelWindow.cs, 1.18, 1.19 |
Date: |
Tue, 02 Dec 2003 13:07:00 +0000 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp
In directory subversions:/tmp/cvs-serv13775/System.Drawing.Xsharp
Modified Files:
DrawingTopLevelWindow.cs
Log Message:
Add the window icon hint to Xsharp; set an icon on FormsTest's main window.
Index: DrawingTopLevelWindow.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp/DrawingTopLevelWindow.cs,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** DrawingTopLevelWindow.cs 2 Dec 2003 11:04:17 -0000 1.18
--- DrawingTopLevelWindow.cs 2 Dec 2003 13:06:57 -0000 1.19
***************
*** 26,29 ****
--- 26,30 ----
using System.Drawing.Drawing2D;
using System.Drawing.Toolkit;
+ using DotGNU.Images;
using Xsharp;
***************
*** 241,245 ****
void IToolkitTopLevelWindow.SetIcon(Icon icon)
{
! // TODO
}
--- 242,259 ----
void IToolkitTopLevelWindow.SetIcon(Icon icon)
{
! DotGNU.Images.Frame frame =
ToolkitManager.GetImageFrame(icon);
! Xsharp.Image origIcon = Icon;
! if(frame != null)
! {
! Icon = new Xsharp.Image(Screen, frame);
! }
! else
! {
! Icon = null;
! }
! if(origIcon != null)
! {
! origIcon.Dispose();
! }
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] pnetlib/System.Drawing.Xsharp DrawingTopLevelWindow.cs, 1.18, 1.19,
Rhys Weatherley <address@hidden> <=