[Roam-commit] SF.net SVN: roam: [88] Trunk/Source
Status: Alpha
Brought to you by:
jonfroehlich
|
From: <jon...@us...> - 2007-07-30 00:09:13
|
Revision: 88
http://roam.svn.sourceforge.net/roam/?rev=88&view=rev
Author: jonfroehlich
Date: 2007-07-29 17:09:11 -0700 (Sun, 29 Jul 2007)
Log Message:
-----------
1. added some comments to FillRoundedRectangle (it's been so long since i used the class, i even forgot what all the constructor params meant)
2. updated some utils classes with a few new functions (IsLetterOrNumber in KeyUtils and DestroyWindow in WindowUtils)
Modified Paths:
--------------
Trunk/Source/Roam.Common/Utils/KeyUtils.cs
Trunk/Source/Roam.Common/Utils/WindowUtils.cs
Trunk/Source/Roam.Test/Roam.Test.csproj
Trunk/Source/Roam.UI/Drawing/FillRoundedRectangle.cs
Trunk/Source/Roam.suo
Modified: Trunk/Source/Roam.Common/Utils/KeyUtils.cs
===================================================================
--- Trunk/Source/Roam.Common/Utils/KeyUtils.cs 2007-07-25 06:31:17 UTC (rev 87)
+++ Trunk/Source/Roam.Common/Utils/KeyUtils.cs 2007-07-30 00:09:11 UTC (rev 88)
@@ -56,6 +56,17 @@
}
}
+ public static bool IsLetter(Keys keycode)
+ {
+ if ((keycode >= Keys.A && keycode <= Keys.Z)) { return true; }
+ else { return false; }
+ }
+
+ public static bool IsLetterOrNumber(Keys keycode)
+ {
+ return IsLetter(keycode) && IsNumber(keycode);
+ }
+
/// <summary>
/// Returns the number that maps to the keycode or -1
/// if the keycode is not a number
Modified: Trunk/Source/Roam.Common/Utils/WindowUtils.cs
===================================================================
--- Trunk/Source/Roam.Common/Utils/WindowUtils.cs 2007-07-25 06:31:17 UTC (rev 87)
+++ Trunk/Source/Roam.Common/Utils/WindowUtils.cs 2007-07-30 00:09:11 UTC (rev 88)
@@ -172,6 +172,22 @@
}
/// <summary>
+ /// This function destroys the specified window. The function sends a WM_DESTROY message to the window to
+ /// deactivate it and removes the keyboard focus from it. The function also destroys the window's menu,
+ /// destroys timers, removes clipboard ownership, and breaks the clipboard viewer chain (if the window
+ /// is at the top of the viewer chain).
+ ///
+ /// If the specified window is a parent or owner window, DestroyWindow automatically destroys the associated
+ /// child or owned windows when it destroys the parent or owner window. The function first destroys child or
+ /// owned windows, and then it destroys the parent or owner window.
+ ///
+ /// DestroyWindow also destroys modeless dialog boxes created by the CreateDialog function.
+ /// </summary>
+ /// <param name="hWnd">[in] Handle to the window to be destroyed. </param>
+ /// <returns>true if the window is destroyed, false otherwise</returns>
+ public static extern bool DestroyWindow(IntPtr hWnd);
+
+ /// <summary>
/// This function returns a handle to the desktop window. The desktop window covers the entire screen. The desktop window is
/// the area on top of which all icons and other windows are painted.
/// </summary>
Modified: Trunk/Source/Roam.Test/Roam.Test.csproj
===================================================================
--- Trunk/Source/Roam.Test/Roam.Test.csproj 2007-07-25 06:31:17 UTC (rev 87)
+++ Trunk/Source/Roam.Test/Roam.Test.csproj 2007-07-30 00:09:11 UTC (rev 88)
@@ -533,7 +533,7 @@
<DependentUpon>TextBoxFilteredListTest.cs</DependentUpon>
</Compile>
<Compile Include="UI\Controls\FontTest.cs">
- <SubType>Component</SubType>
+ <SubType>Form</SubType>
</Compile>
<Compile Include="UI\Controls\FontTest.Designer.cs">
<DependentUpon>FontTest.cs</DependentUpon>
Modified: Trunk/Source/Roam.UI/Drawing/FillRoundedRectangle.cs
===================================================================
--- Trunk/Source/Roam.UI/Drawing/FillRoundedRectangle.cs 2007-07-25 06:31:17 UTC (rev 87)
+++ Trunk/Source/Roam.UI/Drawing/FillRoundedRectangle.cs 2007-07-30 00:09:11 UTC (rev 88)
@@ -39,16 +39,63 @@
#endregion Fields
#region Constructors
+
+ /// <summary>
+ /// Creates a FillRoundedRectangle object with the given back color. The forecolor defaults
+ /// to black and the pen width to 1
+ /// </summary>
+ /// <param name="backColor">the rounded rectangle backcolor</param>
public FillRoundedRectangle(Color backColor) : this(backColor, Color.Black, 1) { }
+
+ /// <summary>
+ /// Creates a FillRoundedRectangle object with the given back and fore colors. The
+ /// pen width defaults to 1.
+ /// </summary>
+ /// <param name="backColor">the rounded rectangle backcolor</param>
+ /// <param name="foreColor">the rounded rectangle outline color</param>
public FillRoundedRectangle(Color backColor, Color foreColor) : this(backColor, foreColor, 1) { }
+
+ /// <summary>
+ /// Creates a FillRoundedRectangle object with the given back and fore colors.
+ /// </summary>
+ /// <param name="backColor">the rounded rectangle backcolor</param>
+ /// <param name="foreColor">the rounded rectangle outline color</param>
+ /// <param name="alphaBlend">the amount of opacity given to the fill color</param>
public FillRoundedRectangle(Color backColor, Color foreColor, float alphaBlend)
: this(backColor, foreColor, 5, 5, alphaBlend) { }
+
+ /// <summary>
+ ///
+ /// </summary>
+ /// <param name="backColor"></param>
+ /// <param name="foreColor"></param>
+ /// <param name="roundedCornerWidth"></param>
+ /// <param name="roundedCornerHeight"></param>
public FillRoundedRectangle(Color backColor, Color foreColor, int roundedCornerWidth, int roundedCornerHeight)
: this(backColor, foreColor, roundedCornerWidth, roundedCornerHeight, 1) { }
+
+ /// <summary>
+ ///
+ /// </summary>
+ /// <param name="backColor"></param>
+ /// <param name="foreColor"></param>
+ /// <param name="roundedCornerWidth"></param>
+ /// <param name="roundedCornerHeight"></param>
+ /// <param name="penWidth"></param>
public FillRoundedRectangle(Color backColor, Color foreColor, int roundedCornerWidth, int roundedCornerHeight, float penWidth)
: this(backColor, foreColor, roundedCornerWidth, roundedCornerHeight, 1, 0)
{
}
+
+ /// <summary>
+ ///
+ /// </summary>
+ /// <param name="backColor"></param>
+ /// <param name="foreColor"></param>
+ /// <param name="roundedCornerWidth"></param>
+ /// <param name="roundedCornerHeight"></param>
+ /// <param name="penWidth"></param>
+ /// <param name="alphaBlend"></param>
public FillRoundedRectangle(Color backColor, Color foreColor, int roundedCornerWidth, int roundedCornerHeight, float penWidth, float alphaBlend)
: base(alphaBlend, backColor)
{
Modified: Trunk/Source/Roam.suo
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|