Esempio n. 1
0
 protected virtual void Init()
 {
     this.InitializeComponent();
     this.ResizeRedraw   = true;
     this.fPadsForeColor = Color.White;
     this.fPads          = new PadList();
     this.AddPad(0.0, 0.0, 1.0, 1.0);
     this.fPadSplit               = false;
     this.fPadSplitIndex          = 0;
     this.fDoubleBufferingEnabled = true;
     this.fSmoothingEnabled       = false;
     this.fAntiAliasingEnabled    = false;
     this.fToolTip    = new ToolTip();
     this.fIsUpdating = false;
     this.SetStyle(ControlStyles.StandardClick, true);
     this.SetStyle(ControlStyles.StandardDoubleClick, true);
     this.SetStyle(ControlStyles.UserPaint, true);
     this.fPrintX           = 10;
     this.fPrintY           = 10;
     this.fPrintWidth       = 600;
     this.fPrintHeight      = 400;
     this.fPrintAlign       = EPrintAlign.None;
     this.fPrintLayout      = EPrintLayout.Portrait;
     this.fSessionGridColor = Color.Blue;
 }
Esempio n. 2
0
 protected virtual void Init()
 {
     InitializeComponent();
     #if GTK
     this.fToolTip = new ToolTip(this);
     #else
     this.ResizeRedraw = true;
     this.SetStyle(ControlStyles.StandardClick | ControlStyles.StandardDoubleClick | ControlStyles.UserPaint, true);
     this.fToolTip = new ToolTip();
     #endif
     this.fPadsForeColor = Color.White;
     this.fPads = new PadList();
     AddPad(0, 0, 1, 1);
     this.fPadSplit = false;
     this.fPadSplitIndex = 0;
     DoubleBufferingEnabled = true;
     this.fSmoothingEnabled = false;
     this.fAntiAliasingEnabled = false;       
     this.fIsUpdating = false;
     PrintX = 10;
     PrintY = 10;
     PrintWidth = 600;
     PrintHeight = 400;
     PrintAlign = EPrintAlign.None;
     this.fPrintLayout = EPrintLayout.Portrait;
     this.fSessionGridColor = Color.Blue;
 }