mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* Applied patch from Alberto Fernandez with the following changes... Finished ProgressBar (Events?) Finished HScrollBar VScrollBar and ScrollBar Finished FolderBrowserDialog Base ComboBox Added DrawMode.cs Added ComboBoxStyle.cs Added Appearance.cs Added CheckState.cs Added TabAlignment Added TabAppearance.cs Added TabDrawMode.cs Added TabSizeMode.cs Added Panel.cs Added TabPage.cs Added TabControl.cs Added Cursors.cs Added MessageBoxDefaultButton.cs Added MessageBoxIcon.cs Added MessageBoxOptions.cs Changes in MessageBoxButtons.cs (Added values) Changes in MessageBox (Completed all functions, added return values). "Finished" CheckBox.cs "Finished" ComboBox.cs "Finished" RadioButton "Finished" GroupBox "Finished" Panel Changes in Form to work with new RadioButton. Fix double Click reported on MenuItems. "Finished" Application svn path=/trunk/mcs/; revision=22123
53 lines
1008 B
C#
53 lines
1008 B
C#
//
|
|
// System.Windows.Forms.VScrollBar.cs
|
|
//
|
|
// Author:
|
|
// Philip Van Hoof ([email protected])
|
|
// (C) 2002 Ximian, Inc. http://www.ximian.com
|
|
//
|
|
|
|
using System.Drawing;
|
|
|
|
namespace System.Windows.Forms {
|
|
|
|
public class VScrollBar : ScrollBar {
|
|
|
|
private RightToLeft rightToLeft;
|
|
// --- Properties ---
|
|
|
|
|
|
public override RightToLeft RightToLeft {
|
|
|
|
get {
|
|
return rightToLeft;
|
|
}
|
|
set {
|
|
rightToLeft = value;
|
|
//FixMe: invalidate to force redraw.
|
|
//Invalidate();
|
|
}
|
|
}
|
|
|
|
internal override Gtk.Widget CreateWidget () {
|
|
return new Gtk.VScrollbar ( adj );
|
|
}
|
|
|
|
// --- Constructor ---
|
|
public VScrollBar() : base (){
|
|
rightToLeft = RightToLeft.Inherit;
|
|
}
|
|
protected override Size DefaultSize{
|
|
get{ return new System.Drawing.Size (17,80); }
|
|
}
|
|
public override string ToString(){
|
|
String ret = String.Format (
|
|
"System.Windows.Forms.VScrollBar, " +
|
|
"Minimum: {0}, Maximum: {1}, Value: {2}",
|
|
this.Minimum,
|
|
this.Maximum,
|
|
this.Value);
|
|
return ret;
|
|
}
|
|
}
|
|
}
|