ScrollableControl.cs 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. //
  2. // System.Windows.Forms.Form
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. // stubbed out by Daniel Carrera ([email protected])
  7. // ScrollableControl.DockPaddingEdges stub added by Jaak Simm ([email protected])
  8. // Dennis Hayes ([email protected])
  9. // WINELib implementation started by John Sohn ([email protected])
  10. //
  11. // (C) 2002 Ximian, Inc
  12. //
  13. using System;
  14. using System.Drawing;
  15. using System.ComponentModel;
  16. namespace System.Windows.Forms {
  17. public class ScrollableControl : Control {
  18. //
  19. // --- Constructor
  20. //
  21. public ScrollableControl () : base ()
  22. {
  23. }
  24. //
  25. // --- Public Properties
  26. //
  27. [MonoTODO]
  28. public virtual bool AutoScroll {
  29. get {
  30. throw new NotImplementedException ();
  31. }
  32. set {
  33. throw new NotImplementedException ();
  34. }
  35. }
  36. [MonoTODO]
  37. public Size AutoScrollMargin {
  38. get {
  39. throw new NotImplementedException ();
  40. }
  41. set {
  42. throw new NotImplementedException ();
  43. }
  44. }
  45. [MonoTODO]
  46. public Size AutoScrollMinSize {
  47. get {
  48. throw new NotImplementedException ();
  49. }
  50. set {
  51. throw new NotImplementedException ();
  52. }
  53. }
  54. [MonoTODO]
  55. public Point AutoScrollPosition {
  56. get {
  57. throw new NotImplementedException ();
  58. }
  59. set {
  60. throw new NotImplementedException ();
  61. }
  62. }
  63. public override Rectangle DisplayRectangle {
  64. get {
  65. return base.DisplayRectangle;
  66. }
  67. }
  68. [MonoTODO]
  69. public ScrollableControl.DockPaddingEdges DockPadding {
  70. get {
  71. throw new NotImplementedException ();
  72. }
  73. }
  74. [MonoTODO]
  75. public override ISite Site {
  76. get {
  77. throw new NotImplementedException ();
  78. }
  79. set {
  80. throw new NotImplementedException ();
  81. }
  82. }
  83. //
  84. // --- Public Methods
  85. //
  86. //public IAsyncResult BeginInvoke(Delegate del)
  87. //{
  88. // throw new NotImplementedException ();
  89. //}
  90. //public IAsyncResult BeginInvoke(Delegate del, object[] objs)
  91. //{
  92. // throw new NotImplementedException ();
  93. //}
  94. //public void Dispose()
  95. //{
  96. // throw new NotImplementedException ();
  97. //}
  98. [MonoTODO]
  99. public override bool Equals (object o)
  100. {
  101. throw new NotImplementedException ();
  102. }
  103. //public static bool Equals(object o1, object o2)
  104. //{
  105. // throw new NotImplementedException ();
  106. //}
  107. [MonoTODO]
  108. public override int GetHashCode () {
  109. //FIXME add our proprities
  110. return base.GetHashCode ();
  111. }
  112. //public void Invalidate()
  113. //{
  114. // throw new NotImplementedException ();
  115. //}
  116. //public void Invalidate(bool val)
  117. //{
  118. // throw new NotImplementedException ();
  119. //}
  120. //public void Invalidate(Rectangle rect)
  121. //{
  122. // throw new NotImplementedException ();
  123. //}
  124. //public void Invalidate(Region reg)
  125. //{
  126. // throw new NotImplementedException ();
  127. //}
  128. //public void Invalidate(Rectangle rect, bool val)
  129. //{
  130. // throw new NotImplementedException ();
  131. //}
  132. //public void Invalidate(Region reg, bool val)
  133. //{
  134. // throw new NotImplementedException ();
  135. //}
  136. //public object Invoke(Delegate del)
  137. //{
  138. // throw new NotImplementedException ();
  139. //}
  140. //public object Invoke(Delegate del, object[] objs)
  141. //{
  142. // throw new NotImplementedException ();
  143. //}
  144. //public void PerformLayout()
  145. //{
  146. // throw new NotImplementedException ();
  147. //}
  148. //public void PerformLayout(Control ctl, string str)
  149. //{
  150. // throw new NotImplementedException ();
  151. //}
  152. //public void ResumeLayout()
  153. //{
  154. // throw new NotImplementedException ();
  155. //}
  156. //public void ResumeLayout(bool val)
  157. //{
  158. // throw new NotImplementedException ();
  159. //}
  160. //public void Scale(float val)
  161. //{
  162. // throw new NotImplementedException ();
  163. //}
  164. //public void Scale(float val1, float val2)
  165. //{
  166. // throw new NotImplementedException ();
  167. //}
  168. //public void Select()
  169. //{
  170. // throw new NotImplementedException ();
  171. //}
  172. //public void Select(bool val1, bool val2)
  173. //{
  174. // throw new NotImplementedException ();
  175. //}
  176. //public void SetBounds(int val1, int val2, int val3, int val4)
  177. //{
  178. // throw new NotImplementedException ();
  179. //}
  180. //public void SetBounds(int val1, int val2, int val3, int val4, BoundsSpecified bounds)
  181. //{
  182. // throw new NotImplementedException ();
  183. //}
  184. //
  185. // --- Protected Properties
  186. //
  187. protected override CreateParams CreateParams {
  188. get {
  189. return base.CreateParams;
  190. }
  191. }
  192. [MonoTODO]
  193. protected bool HScroll {
  194. get {
  195. throw new NotImplementedException ();
  196. }
  197. set {
  198. throw new NotImplementedException ();
  199. }
  200. }
  201. [MonoTODO]
  202. protected bool VScroll {
  203. get {
  204. throw new NotImplementedException ();
  205. }
  206. set {
  207. throw new NotImplementedException ();
  208. }
  209. }
  210. //
  211. // --- Protected Methods
  212. //
  213. [MonoTODO]
  214. protected virtual void AdjustFormScrollbars (
  215. bool displayScrollbars)
  216. {
  217. throw new NotImplementedException ();
  218. }
  219. //protected override void Dispose(bool disposing)
  220. //{
  221. // throw new NotImplementedException ();
  222. //}
  223. protected override void OnLayout (LayoutEventArgs e)
  224. {
  225. base.OnLayout (e);
  226. }
  227. protected override void OnMouseWheel (MouseEventArgs e)
  228. {
  229. base.OnMouseWheel (e);
  230. }
  231. protected override void OnVisibleChanged (EventArgs e)
  232. {
  233. base.OnVisibleChanged (e);
  234. }
  235. //ContentAlignment RtlTranslateAlignment(ContentAlignment calign)
  236. //{
  237. // throw new NotImplementedException ();
  238. //}
  239. //HorizontalAlignment RtlTranslateAlignment(HorizontalAlignment halign)
  240. //{
  241. // throw new NotImplementedException ();
  242. //}
  243. //LeftRightAlignment RtlTranslateAlignment(LeftRightAlignment lralign)
  244. //{
  245. // throw new NotImplementedException ();
  246. //}
  247. protected override void ScaleCore (float dx, float dy)
  248. {
  249. base.ScaleCore (dx, dy);
  250. }
  251. //protected void UpdateBounds()
  252. //{
  253. // throw new NotImplementedException ();
  254. //}
  255. //protected void UpdateBounds(int val1, int val2, int val3, int val4)
  256. //{
  257. // throw new NotImplementedException ();
  258. //}
  259. //protected void UpdateBounds(int val1, int val2, int val3, int val4, int val5, int val6)
  260. //{
  261. // throw new NotImplementedException ();
  262. //}
  263. protected override void WndProc (ref Message m)
  264. {
  265. base.WndProc (ref m);
  266. }
  267. /// ScrollableControl.DockPaddingEdges
  268. /// Determines the border padding for docked controls.
  269. public class DockPaddingEdges : ICloneable {
  270. // --- Fields ---
  271. int all;
  272. int bottom;
  273. int left;
  274. int right;
  275. int top;
  276. // --- public Properties ---
  277. public int All {
  278. get { return all; }
  279. set { all=value; }
  280. }
  281. public int Bottom {
  282. get { return bottom; }
  283. set { bottom=value; }
  284. }
  285. public int Left {
  286. get { return left; }
  287. set { left=value; }
  288. }
  289. public int Right {
  290. get { return right; }
  291. set { right=value; }
  292. }
  293. public int Top {
  294. get { return top; }
  295. set { top=value; }
  296. }
  297. /// --- public Methods ---
  298. [MonoTODO]
  299. public override bool Equals (object other)
  300. {
  301. throw new NotImplementedException ();
  302. }
  303. [MonoTODO]
  304. public override int GetHashCode ()
  305. {
  306. throw new NotImplementedException ();
  307. }
  308. /// This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
  309. [MonoTODO]
  310. object ICloneable.Clone ()
  311. {
  312. throw new NotImplementedException ();
  313. }
  314. [MonoTODO]
  315. public override string ToString ()
  316. {
  317. throw new NotImplementedException ();
  318. }
  319. }
  320. }
  321. }