[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] pnetlib/System.Drawing.Xsharp DrawingGraphics.cs,
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] pnetlib/System.Drawing.Xsharp DrawingGraphics.cs, 1.17, 1.18 DrawingTopLevelWindow.cs, 1.15, 1.16 |
Date: |
Tue, 02 Dec 2003 06:55:53 +0000 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp
In directory subversions:/tmp/cvs-serv25066/System.Drawing.Xsharp
Modified Files:
DrawingGraphics.cs DrawingTopLevelWindow.cs
Log Message:
Implement the window hints for dialog owners, modality, minimum
size, and maximum size.
Index: DrawingGraphics.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp/DrawingGraphics.cs,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** DrawingGraphics.cs 30 Nov 2003 05:00:21 -0000 1.17
--- DrawingGraphics.cs 2 Dec 2003 06:55:50 -0000 1.18
***************
*** 294,298 ****
// position plus the window coordinates cant exceed this. So we make
// the |min|, |max| doesnt exceed short/2.
! private static int RestrictXY(int value)
{
if (value < short.MinValue/2)
--- 294,298 ----
// position plus the window coordinates cant exceed this. So we make
// the |min|, |max| doesnt exceed short/2.
! internal static int RestrictXY(int value)
{
if (value < short.MinValue/2)
Index: DrawingTopLevelWindow.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp/DrawingTopLevelWindow.cs,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** DrawingTopLevelWindow.cs 1 Dec 2003 00:23:28 -0000 1.15
--- DrawingTopLevelWindow.cs 2 Dec 2003 06:55:50 -0000 1.16
***************
*** 179,183 ****
void IToolkitWindow.MoveToAbove(IToolkitWindow sibling)
{
! // TODO
}
--- 179,183 ----
void IToolkitWindow.MoveToAbove(IToolkitWindow sibling)
{
! // Not used for top-level windows.
}
***************
*** 185,189 ****
void IToolkitWindow.MoveToBelow(IToolkitWindow sibling)
{
! // TODO
}
--- 185,189 ----
void IToolkitWindow.MoveToBelow(IToolkitWindow sibling)
{
! // Not used for top-level windows.
}
***************
*** 235,239 ****
void IToolkitTopLevelWindow.SetDialogOwner(IToolkitTopLevelWindow owner)
{
! // TODO
}
--- 235,239 ----
void IToolkitTopLevelWindow.SetDialogOwner(IToolkitTopLevelWindow owner)
{
! TransientFor = (owner as TopLevelWindow);
}
***************
*** 247,251 ****
void IToolkitTopLevelWindow.SetMaximumSize(Size size)
{
! // TODO
}
--- 247,252 ----
void IToolkitTopLevelWindow.SetMaximumSize(Size size)
{
!
SetMaximumSize(DrawingGraphics.RestrictXY(size.Width),
!
DrawingGraphics.RestrictXY(size.Height));
}
***************
*** 253,257 ****
void IToolkitTopLevelWindow.SetMinimumSize(Size size)
{
! // TODO
}
--- 254,259 ----
void IToolkitTopLevelWindow.SetMinimumSize(Size size)
{
!
SetMinimumSize(DrawingGraphics.RestrictXY(size.Width),
!
DrawingGraphics.RestrictXY(size.Height));
}
***************
*** 314,317 ****
--- 316,327 ----
{
inputType =
MotifInputType.ApplicationModal;
+ }
+
+ // Remove the "transient for" hint if we are
changing a
+ // modal form back into a regular form.
+ if(InputType == MotifInputType.ApplicationModal
&&
+ inputType == MotifInputType.Normal)
+ {
+ RemoveTransientFor();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] pnetlib/System.Drawing.Xsharp DrawingGraphics.cs, 1.17, 1.18 DrawingTopLevelWindow.cs, 1.15, 1.16,
Rhys Weatherley <address@hidden> <=