Microsoft.Samples.DirectX.UtilityToolkit.Button Class Reference

Button control. More...

Inherits Microsoft::Samples::DirectX::UtilityToolkit::StaticText, Microsoft::Samples::DirectX::UtilityToolkit::StaticText, and Microsoft::Samples::DirectX::UtilityToolkit::StaticText.

Inherited by Microsoft.Samples.DirectX.UtilityToolkit.Checkbox, Microsoft.Samples.DirectX.UtilityToolkit.Checkbox, Microsoft.Samples.DirectX.UtilityToolkit.Checkbox, Microsoft.Samples.DirectX.UtilityToolkit.ComboBox, Microsoft.Samples.DirectX.UtilityToolkit.ComboBox, and Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.

Collaboration diagram for Microsoft.Samples.DirectX.UtilityToolkit.Button:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Button (Dialog parent)
 Create new button instance.
override void OnHotKey ()
 The hotkey for this button was pressed.
override bool HandleKeyboard (NativeMethods.WindowMessage msg, IntPtr wParam, IntPtr lParam)
 Will handle the keyboard strokes.
override bool HandleMouse (NativeMethods.WindowMessage msg, System.Drawing.Point pt, IntPtr wParam, IntPtr lParam)
 Handle mouse messages from the buttons.
override void Render (Device device, float elapsedTime)
 Render the button.
 Button (Dialog parent)
 Create new button instance.
override void OnHotKey ()
 The hotkey for this button was pressed.
override bool HandleKeyboard (NativeMethods.WindowMessage msg, IntPtr wParam, IntPtr lParam)
 Will handle the keyboard strokes.
override bool HandleMouse (NativeMethods.WindowMessage msg, System.Drawing.Point pt, IntPtr wParam, IntPtr lParam)
 Handle mouse messages from the buttons.
override void Render (Device device, float elapsedTime)
 Render the button.
 Button (Dialog parent)
 Create new button instance.
override void OnHotKey ()
 The hotkey for this button was pressed.
override bool HandleKeyboard (NativeMethods.WindowMessage msg, IntPtr wParam, IntPtr lParam)
 Will handle the keyboard strokes.
override bool HandleMouse (NativeMethods.WindowMessage msg, System.Drawing.Point pt, IntPtr wParam, IntPtr lParam)
 Handle mouse messages from the buttons.
override void Render (Device device, float elapsedTime)
 Render the button.

Public Attributes

const int ButtonLayer = 0
const int FillLayer = 1

Protected Member Functions

void RaiseClickEvent (Button sender, bool wasTriggeredByUser)
 Create new button instance.
void RaiseClickEvent (Button sender, bool wasTriggeredByUser)
 Create new button instance.
void RaiseClickEvent (Button sender, bool wasTriggeredByUser)
 Create new button instance.

Protected Attributes

bool isPressed

Properties

override bool CanHaveFocus [get]
 Can the button have focus.

Events

EventHandler Click


Detailed Description

Button control.

Definition at line 2019 of file dxmutgui.cs.


Constructor & Destructor Documentation

Microsoft.Samples.DirectX.UtilityToolkit.Button.Button ( Dialog  parent  ) 

Create new button instance.

Definition at line 2040 of file dxmutgui.cs.

Here is the caller graph for this function:

Microsoft.Samples.DirectX.UtilityToolkit.Button.Button ( Dialog  parent  ) 

Create new button instance.

Definition at line 2040 of file dxmutgui.cs.

Microsoft.Samples.DirectX.UtilityToolkit.Button.Button ( Dialog  parent  ) 

Create new button instance.

Definition at line 2041 of file wdxmutgui.cs.


Member Function Documentation

override bool Microsoft.Samples.DirectX.UtilityToolkit.Button.HandleKeyboard ( NativeMethods.WindowMessage  msg,
IntPtr  wParam,
IntPtr  lParam 
) [virtual]

override bool Microsoft.Samples.DirectX.UtilityToolkit.Button.HandleKeyboard ( NativeMethods.WindowMessage  msg,
IntPtr  wParam,
IntPtr  lParam 
) [virtual]

override bool Microsoft.Samples.DirectX.UtilityToolkit.Button.HandleKeyboard ( NativeMethods.WindowMessage  msg,
IntPtr  wParam,
IntPtr  lParam 
) [virtual]

override bool Microsoft.Samples.DirectX.UtilityToolkit.Button.HandleMouse ( NativeMethods.WindowMessage  msg,
System.Drawing.Point  pt,
IntPtr  wParam,
IntPtr  lParam 
) [virtual]

override bool Microsoft.Samples.DirectX.UtilityToolkit.Button.HandleMouse ( NativeMethods.WindowMessage  msg,
System.Drawing.Point  pt,
IntPtr  wParam,
IntPtr  lParam 
) [virtual]

override bool Microsoft.Samples.DirectX.UtilityToolkit.Button.HandleMouse ( NativeMethods.WindowMessage  msg,
System.Drawing.Point  pt,
IntPtr  wParam,
IntPtr  lParam 
) [virtual]

override void Microsoft.Samples.DirectX.UtilityToolkit.Button.OnHotKey (  )  [virtual]

override void Microsoft.Samples.DirectX.UtilityToolkit.Button.OnHotKey (  )  [virtual]

override void Microsoft.Samples.DirectX.UtilityToolkit.Button.OnHotKey (  )  [virtual]

void Microsoft.Samples.DirectX.UtilityToolkit.Button.RaiseClickEvent ( Button  sender,
bool  wasTriggeredByUser 
) [protected]

Create new button instance.

Definition at line 2028 of file wdxmutgui.cs.

void Microsoft.Samples.DirectX.UtilityToolkit.Button.RaiseClickEvent ( Button  sender,
bool  wasTriggeredByUser 
) [protected]

Create new button instance.

Definition at line 2027 of file dxmutgui.cs.

void Microsoft.Samples.DirectX.UtilityToolkit.Button.RaiseClickEvent ( Button  sender,
bool  wasTriggeredByUser 
) [protected]

Create new button instance.

Definition at line 2027 of file dxmutgui.cs.

override void Microsoft.Samples.DirectX.UtilityToolkit.Button.Render ( Device  device,
float  elapsedTime 
) [virtual]

override void Microsoft.Samples.DirectX.UtilityToolkit.Button.Render ( Device  device,
float  elapsedTime 
) [virtual]

override void Microsoft.Samples.DirectX.UtilityToolkit.Button.Render ( Device  device,
float  elapsedTime 
) [virtual]


Member Data Documentation

Definition at line 2021 of file dxmutgui.cs.

Definition at line 2022 of file dxmutgui.cs.

Definition at line 2023 of file dxmutgui.cs.


Property Documentation

override bool Microsoft::Samples::DirectX::UtilityToolkit.Button::CanHaveFocus [get]

Can the button have focus.

Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Control.

Reimplemented in Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.

Definition at line 2049 of file dxmutgui.cs.


Event Documentation

EventHandler Microsoft::Samples::DirectX::UtilityToolkit.Button::Click

Definition at line 2025 of file dxmutgui.cs.


The documentation for this class was generated from the following files:

Generated on Thu Jan 8 20:50:39 2009 for DXGfx by  doxygen 1.5.8