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
62 lines
1.5 KiB
C#
62 lines
1.5 KiB
C#
//
|
|
// System.Windows.Forms.Panel
|
|
//
|
|
// Author:
|
|
// Alberto Fernandez ([email protected])
|
|
//
|
|
|
|
using System.Drawing;
|
|
|
|
|
|
namespace System.Windows.Forms{
|
|
|
|
public class Panel : ScrollableControl {
|
|
|
|
private Gtk.RadioButton firstRadioButton;
|
|
private int radioButtonsCount = 0;
|
|
|
|
[MonoTODO]
|
|
public Panel(){
|
|
}
|
|
[MonoTODO]
|
|
public BorderStyle BorderStyle {
|
|
get {return BorderStyle.None; }
|
|
set {}
|
|
}
|
|
protected override Size DefaultSize {
|
|
get { return new Size (200,100); }
|
|
}
|
|
//public new bool TabStop {get; set;}
|
|
//public override string Text {get; set;}
|
|
|
|
protected override void OnControlAdded (ControlEventArgs e){
|
|
base.OnControlAdded(e);
|
|
if (e.Control is RadioButton){
|
|
if (radioButtonsCount == 0)
|
|
firstRadioButton = e.Control.Widget as Gtk.RadioButton;
|
|
else
|
|
(e.Control.Widget as Gtk.RadioButton).Group =
|
|
firstRadioButton.Group;
|
|
radioButtonsCount++;
|
|
}
|
|
}
|
|
[MonoTODO]
|
|
protected override void OnControlRemoved (ControlEventArgs e){
|
|
base.OnControlRemoved (e);
|
|
}
|
|
//protected override void OnResize(EventArgs eventargs);
|
|
public override string ToString(){
|
|
return String.Format ("{0}, BorderStyle: {1}",
|
|
"System.Windows.Forms.Panel",
|
|
this.BorderStyle);
|
|
}
|
|
|
|
public new event KeyEventHandler KeyDown;
|
|
public new event KeyPressEventHandler KeyPress;
|
|
public new event KeyEventHandler KeyUp;
|
|
public new event EventHandler TextChanged;
|
|
|
|
}
|
|
|
|
}
|