[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing.Xsharp DrawingTopLeve
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing.Xsharp DrawingTopLevelWindow.cs,1.3,1.4 DrawingWindow.cs,1.3,1.4 |
Date: |
Thu, 12 Jun 2003 01:50:31 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp
In directory subversions:/tmp/cvs-serv32507/System.Drawing.Xsharp
Modified Files:
DrawingTopLevelWindow.cs DrawingWindow.cs
Log Message:
Implement more of the "Form" class.
Index: DrawingTopLevelWindow.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp/DrawingTopLevelWindow.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** DrawingTopLevelWindow.cs 11 Jun 2003 10:37:27 -0000 1.3
--- DrawingTopLevelWindow.cs 12 Jun 2003 05:50:29 -0000 1.4
***************
*** 167,175 ****
}
! // Change the set of supported decorations and functions.
! void IToolkitWindow.SetFunctions(ToolkitDecorations decorations,
!
ToolkitFunctions functions)
{
! // TODO
}
--- 167,224 ----
}
! // Change the set of supported window decorations and functions.
! void IToolkitWindow.SetWindowFlags(ToolkitWindowFlags flags)
{
! // Set the default Motif decoration flags.
! MotifDecorations decorations =
MotifDecorations.All;
! MotifFunctions functions = MotifFunctions.All;
! MotifInputType inputType =
MotifInputType.Normal;
!
! // Alter decorations according to the window
flags.
! if((flags & ToolkitWindowFlags.Close) == 0)
! {
! functions |= MotifFunctions.Close;
! }
! if((flags & ToolkitWindowFlags.Minimize) == 0)
! {
! decorations |=
MotifDecorations.Minimize;
! functions |= MotifFunctions.Minimize;
! }
! if((flags & ToolkitWindowFlags.Caption) == 0)
! {
! decorations |= MotifDecorations.Title;
! }
! if((flags & ToolkitWindowFlags.Border) == 0)
! {
! decorations |= MotifDecorations.Border;
! }
! if((flags & ToolkitWindowFlags.ResizeHandles)
== 0)
! {
! decorations |=
MotifDecorations.ResizeHandles;
! }
! if((flags & ToolkitWindowFlags.Menu) == 0)
! {
! decorations |= MotifDecorations.Menu;
! }
! if((flags & ToolkitWindowFlags.Resize) == 0)
! {
! decorations |=
MotifDecorations.Maximize |
!
MotifDecorations.ResizeHandles;
! functions |= MotifFunctions.Maximize |
!
MotifFunctions.Resize;
! }
! if((flags & ToolkitWindowFlags.Move) == 0)
! {
! functions |= MotifFunctions.Move;
! }
! if((flags & ToolkitWindowFlags.Modal) == 0)
! {
! inputType =
MotifInputType.ApplicationModal;
! }
!
! // Send the Motif flags to the window manager.
! Decorations = decorations;
! Functions = functions;
! InputType = inputType;
}
Index: DrawingWindow.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp/DrawingWindow.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** DrawingWindow.cs 11 Jun 2003 10:37:27 -0000 1.3
--- DrawingWindow.cs 12 Jun 2003 05:50:29 -0000 1.4
***************
*** 163,169 ****
}
! // Change the set of supported decorations and functions.
! void IToolkitWindow.SetFunctions(ToolkitDecorations decorations,
!
ToolkitFunctions functions)
{
// Not used for ordinary windows.
--- 163,168 ----
}
! // Change the set of supported window decorations and functions.
! void IToolkitWindow.SetWindowFlags(ToolkitWindowFlags flags)
{
// Not used for ordinary windows.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing.Xsharp DrawingTopLevelWindow.cs,1.3,1.4 DrawingWindow.cs,1.3,1.4,
Rhys Weatherley <address@hidden> <=