?? axgroupbox.cs
字號:
// DINAMIC XML Editor
//
// Copyright (c) 2002-2003 Dusan Hlavaty
// mailto: duddo@atlas.cz
//
// This software is licensed under the terms of
// GNU General Public license
//
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
namespace XML_editor.MyComponents
{
/// <summary>
/// Reprezentuje Windowsovy group box.
/// </summary>
/// <remarks>
/// <para>AxGroupBox zobrazuje ram okolo skupiny controls-ov bez titulku.
/// Pouzivaj AxGroupBox na logicke zoskupovanie skupiny controls-ov na formulari.</para>
/// </remarks>
public class AxGroupBox : System.Windows.Forms.Panel
{
private int min_height = 100;
// -------------------------------------------------------------------------
/// <summary>
/// Inicializuje GroupBox komponentu
/// </summary>
public AxGroupBox(int min_height)
{
this.min_height = min_height;
this.AutoScroll = true;
this.SetStyle(ControlStyles.ResizeRedraw, true);
}
// -------------------------------------------------------------------------
/// <summary>
/// Tato metoda 'pretazuje virtualnu metodu' <see cref="System.Windows.Forms.Control.OnPaint"/>
/// </summary>
/// <param name="e"><see cref="PaintEventArgs"/> ktory obsahuje informacie o evente</param>
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.DrawRectangle(SystemPens.ControlDark,
new Rectangle(ClientRectangle.X,
ClientRectangle.Y,
ClientRectangle.Width - 1,
Math.Max(ClientRectangle.Height, this.min_height) - 1));
}
} // public class AxGroupBox : : System.Windows.Forms.GroupBox
} // namespace XML_editor.MyComponents
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -