Referencia de la Clase sage.ew.reports.ButtonTittle.ActiveButton

An instance of a button which can be added to the ActiveButtons menu. Más...

Diagrama de herencias de sage.ew.reports.ButtonTittle.ActiveButton
sage.ew.reports.ButtonTittle.IActiveItem

Métodos públicos

 ActiveButton ()
 Initializes a new instance of the ActiveButton class. Más...
 

Campos de datos

ButtonState buttonState = ButtonState.Inactive
 Aquesta propietat ens serveix per decidir com pintar el botó. Más...
 

Métodos protegidos

void Initialize ()
 Initializes this instance. Más...
 
override void OnMouseEnter (EventArgs e)
 Provoca el evento MouseEnter Más...
 
override void OnMouseLeave (EventArgs e)
 Provoca el evento MouseLeave Más...
 
override void OnMouseDown (MouseEventArgs e)
 Provoca el evento MouseDown Más...
 
override void OnMouseUp (MouseEventArgs e)
 Provoca el evento MouseUp Más...
 
override void OnPaint (PaintEventArgs pevent)
 Pintamos el botón con el estilo actual de windows Más...
 

Propiedades

new string Text [get, set]
 Gets or sets the text property of the button control. Más...
 
new Color BackColor [get, set]
 Gets or sets the background color of the control. Más...
 
new int Top [get]
 Gets the distance, in pixels, between the top edge of the control and the top edge of its container's client area. Más...
 
new int Left [get]
 Gets the distance, in pixels, between the left edge of the control and the left edge of its container's client area. Más...
 
new int Width [get]
 Gets the width of the control. Más...
 
new int Height [get]
 Gets the height of the control. Más...
 
- Propiedades heredados desde sage.ew.reports.ButtonTittle.IActiveItem
int Top [get]
 Gets the height of the control. Más...
 
int Left [get]
 Gets the distance, in pixels, between the left edge of the control and the left edge of its container's client area. Más...
 
int Width [get]
 Gets the width of the control. Más...
 
int Height [get]
 Gets the height of the control. Más...
 

Descripción detallada

An instance of a button which can be added to the ActiveButtons menu.

The ActiveButton class can be used to create new button instances, which can be added to the current IActiveMenu. The Height and Width properties of the button class are auto-configured based on the current platform and theme.

// get an instance of the menu for the current form
IActiveMenu menu = ActiveMenu.GetInstance(this);
// create a new instance of ActiveButton
ActiveButton button = new ActiveButton();
// set the button properties
button.Text = "One";
button.BackColor = Color.Red;
// attach button event handlers
button.Click += new EventHandler(button_Click);
// add the button to the title bar menu
menu.Items.Add(button);

Definición en la línea 53 del archivo ActiveButton.cs.

Documentación del constructor y destructor

◆ ActiveButton()

sage.ew.reports.ButtonTittle.ActiveButton.ActiveButton ( )
inline

Initializes a new instance of the ActiveButton class.

Definición en la línea 107 del archivo ActiveButton.cs.

Documentación de las funciones miembro

◆ Initialize()

void sage.ew.reports.ButtonTittle.ActiveButton.Initialize ( )
inlineprotected

Initializes this instance.

Definición en la línea 188 del archivo ActiveButton.cs.

◆ OnMouseDown()

override void sage.ew.reports.ButtonTittle.ActiveButton.OnMouseDown ( MouseEventArgs  e)
inlineprotected

Provoca el evento MouseDown

Parámetros
eMouseEventArgs que contiene los datos del evento.

Definición en la línea 294 del archivo ActiveButton.cs.

◆ OnMouseEnter()

override void sage.ew.reports.ButtonTittle.ActiveButton.OnMouseEnter ( EventArgs  e)
inlineprotected

Provoca el evento MouseEnter

Parámetros
ePaintEventArgs que contiene los datos del evento

Definición en la línea 272 del archivo ActiveButton.cs.

◆ OnMouseLeave()

override void sage.ew.reports.ButtonTittle.ActiveButton.OnMouseLeave ( EventArgs  e)
inlineprotected

Provoca el evento MouseLeave

Parámetros
ePaintEventArgs que contiene los datos del evento

Definición en la línea 283 del archivo ActiveButton.cs.

◆ OnMouseUp()

override void sage.ew.reports.ButtonTittle.ActiveButton.OnMouseUp ( MouseEventArgs  e)
inlineprotected

Provoca el evento MouseUp

Parámetros
eMouseEventArgs que contiene los datos del evento.

Definición en la línea 306 del archivo ActiveButton.cs.

◆ OnPaint()

override void sage.ew.reports.ButtonTittle.ActiveButton.OnPaint ( PaintEventArgs  pevent)
inlineprotected

Pintamos el botón con el estilo actual de windows

Parámetros
peventPaintEventArgs

Definición en la línea 318 del archivo ActiveButton.cs.

Documentación de los campos

◆ buttonState

ButtonState sage.ew.reports.ButtonTittle.ActiveButton.buttonState = ButtonState.Inactive

Aquesta propietat ens serveix per decidir com pintar el botó.

Definición en la línea 266 del archivo ActiveButton.cs.

Documentación de propiedades

◆ BackColor

new Color sage.ew.reports.ButtonTittle.ActiveButton.BackColor
getset

Gets or sets the background color of the control.

Devuelve
A Color value representing the background color.

Definición en la línea 132 del archivo ActiveButton.cs.

◆ Height

new int sage.ew.reports.ButtonTittle.ActiveButton.Height
get

Gets the height of the control.

Devuelve
The height of the control in pixels.

Definición en la línea 179 del archivo ActiveButton.cs.

◆ Left

new int sage.ew.reports.ButtonTittle.ActiveButton.Left
get

Gets the distance, in pixels, between the left edge of the control and the left edge of its container's client area.

Devuelve
An Int32 representing the distance, in pixels, between the left edge of the control and the left edge of its container's client area.

Definición en la línea 157 del archivo ActiveButton.cs.

◆ Text

new string sage.ew.reports.ButtonTittle.ActiveButton.Text
getset

Gets or sets the text property of the button control.

The text.

Definición en la línea 117 del archivo ActiveButton.cs.

◆ Top

new int sage.ew.reports.ButtonTittle.ActiveButton.Top
get

Gets the distance, in pixels, between the top edge of the control and the top edge of its container's client area.

Devuelve
An Int32 representing the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area.

Definición en la línea 146 del archivo ActiveButton.cs.

◆ Width

new int sage.ew.reports.ButtonTittle.ActiveButton.Width
get

Gets the width of the control.

Devuelve
The width of the control in pixels.

Definición en la línea 168 del archivo ActiveButton.cs.


La documentación para esta clase fue generada a partir del siguiente fichero: