[Mono-winforms-list] patch for Windows.System.Forms (win32Enums.cs)

Aleksey Ryabchuk ryabchuk@yahoo.com
Mon, 3 Mar 2003 07:09:05 -0800 (PST)


--0-2086398336-1046704145=:23698
Content-Type: text/plain; charset=us-ascii
Content-Id: 
Content-Disposition: inline

Hello there !

Is anyone working on TrackBar control ? If not I'm
going to implement it.

The attached patch adds declarations of messages and
styles required for trackbar control to win32Enums.cs.
 

Regards
Aleksey


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
--0-2086398336-1046704145=:23698
Content-Type: text/plain; name=patch
Content-Description: patch
Content-Disposition: inline; filename=patch

Index: win32Enums.cs
===================================================================
RCS file: /mono/mcs/class/System.Windows.Forms/System.Windows.Forms/win32Enums.cs,v
retrieving revision 1.7
diff -u -r1.7 win32Enums.cs
--- win32Enums.cs	1 Mar 2003 21:20:31 -0000	1.7
+++ win32Enums.cs	3 Mar 2003 14:57:33 -0000
@@ -2315,6 +2315,55 @@
 		LBN_KILLFOCUS       =5
 	}
 
+	#region Trackbar Control Messages
+	internal enum TrackbarMessages {
+		TBM_SETPOS          =  ( Msg.WM_USER + 5 ),
+		TBM_SETRANGE        =  ( Msg.WM_USER + 6 ),
+		TBM_SETRANGEMIN     =  ( Msg.WM_USER + 7 ),
+		TBM_SETRANGEMAX     =  ( Msg.WM_USER + 8 ),
+		TBM_CLEARTICS       =  ( Msg.WM_USER + 9 ),
+		TBM_SETSEL          =  ( Msg.WM_USER + 10 ),
+		TBM_SETSELSTART     =  ( Msg.WM_USER + 11 ),
+		TBM_SETSELEND       =  ( Msg.WM_USER + 12 ),
+		TBM_GETPTICS        =  ( Msg.WM_USER + 14 ),
+		TBM_GETTICPOS       =  ( Msg.WM_USER + 15 ),
+		TBM_GETNUMTICS      =  ( Msg.WM_USER + 16 ),
+		TBM_GETSELSTART     =  ( Msg.WM_USER + 17 ),
+		TBM_GETSELEND       =  ( Msg.WM_USER + 18 ),
+		TBM_CLEARSEL        =  ( Msg.WM_USER + 19 ),
+		TBM_SETTICFREQ      =  ( Msg.WM_USER + 20 ),
+		TBM_SETPAGESIZE     =  ( Msg.WM_USER + 21 ),
+		TBM_GETPAGESIZE     =  ( Msg.WM_USER + 22 ),
+		TBM_SETLINESIZE     =  ( Msg.WM_USER + 23 ),
+		TBM_GETLINESIZE     =  ( Msg.WM_USER + 24 ),
+		TBM_GETTHUMBRECT    =  ( Msg.WM_USER + 25 ),
+		TBM_GETCHANNELRECT  =  ( Msg.WM_USER + 26 ),
+		TBM_SETTHUMBLENGTH  =  ( Msg.WM_USER + 27 ),
+		TBM_GETTHUMBLENGTH  =  ( Msg.WM_USER + 28 ),
+		TBM_SETTOOLTIPS     =  ( Msg.WM_USER + 29 ),
+		TBM_GETTOOLTIPS     =  ( Msg.WM_USER + 30 ),
+		TBM_SETTIPSIDE      =  ( Msg.WM_USER + 31 )
+	}
+	#endregion
+		
+	#region Trackbar Control Styles
+	public enum TrackbarControlStyles {
+		TBS_AUTOTICKS       =    0x0001,
+		TBS_VERT            =    0x0002,
+		TBS_HORZ            =    0x0000,
+		TBS_TOP             =    0x0004,
+		TBS_BOTTOM          =    0x0000,
+		TBS_LEFT            =    0x0004,
+		TBS_RIGHT           =    0x0000,
+		TBS_BOTH            =    0x0008,
+		TBS_NOTICKS         =    0x0010,
+		TBS_ENABLESELRANGE  =    0x0020,
+		TBS_FIXEDLENGTH     =    0x0040,
+		TBS_NOTHUMB         =    0x0080,
+		TBS_TOOLTIPS        =    0x0100
+	}
+	#endregion
+
 	internal enum OwnerDrawTypes : int {
 		ODT_COMBOBOX = 3,
 		ODT_LISTBOX = 2,

--0-2086398336-1046704145=:23698--