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

Public Member Functions | |
| ComboBox (Dialog parent) | |
| Create new combo box control. | |
| void | SetDropHeight (int height) |
| Sets the drop height of this control. | |
| void | SetScrollbarWidth (int width) |
| Sets the scroll bar width of this control. | |
| override void | OnInitialize () |
| Initialize the scrollbar control here. | |
| override void | OnFocusOut () |
| Called when focus leaves the control. | |
| override void | OnHotKey () |
| Called when the control's hotkey is pressed. | |
| override bool | HandleKeyboard (NativeMethods.WindowMessage msg, IntPtr wParam, IntPtr lParam) |
| Called when the control needs to handle the keyboard. | |
| override bool | HandleMouse (NativeMethods.WindowMessage msg, System.Drawing.Point pt, IntPtr wParam, IntPtr lParam) |
| Called when the control should handle the mouse. | |
| override void | Render (Device device, float elapsedTime) |
| Called when the control should be rendered. | |
| void | AddItem (string text, object data) |
| Adds an item to the combo box control. | |
| void | RemoveAt (int index) |
| Removes an item at a particular index. | |
| void | Clear () |
| Removes all items from the control. | |
| bool | ContainsItem (string text, int start) |
| Determines whether this control contains an item. | |
| bool | ContainsItem (string text) |
| Determines whether this control contains an item. | |
| object | GetSelectedData () |
| Gets the data for the selected item. | |
| ComboBoxItem | GetSelectedItem () |
| Gets the selected item. | |
| object | GetItemData (string text) |
| Gets the data for an item. | |
| void | SetSelected (int index) |
| Sets the selected item by index. | |
| void | SetSelected (string text) |
| Sets the selected item by text. | |
| void | SetSelectedByData (object data) |
| Sets the selected item by data. | |
| ComboBox (Dialog parent) | |
| Create new combo box control. | |
| void | SetDropHeight (int height) |
| Sets the drop height of this control. | |
| void | SetScrollbarWidth (int width) |
| Sets the scroll bar width of this control. | |
| override void | OnInitialize () |
| Initialize the scrollbar control here. | |
| override void | OnFocusOut () |
| Called when focus leaves the control. | |
| override void | OnHotKey () |
| Called when the control's hotkey is pressed. | |
| override bool | HandleKeyboard (NativeMethods.WindowMessage msg, IntPtr wParam, IntPtr lParam) |
| Called when the control needs to handle the keyboard. | |
| override bool | HandleMouse (NativeMethods.WindowMessage msg, System.Drawing.Point pt, IntPtr wParam, IntPtr lParam) |
| Called when the control should handle the mouse. | |
| override void | Render (Device device, float elapsedTime) |
| Called when the control should be rendered. | |
| void | AddItem (string text, object data) |
| Adds an item to the combo box control. | |
| void | RemoveAt (int index) |
| Removes an item at a particular index. | |
| void | Clear () |
| Removes all items from the control. | |
| bool | ContainsItem (string text, int start) |
| Determines whether this control contains an item. | |
| bool | ContainsItem (string text) |
| Determines whether this control contains an item. | |
| object | GetSelectedData () |
| Gets the data for the selected item. | |
| ComboBoxItem | GetSelectedItem () |
| Gets the selected item. | |
| object | GetItemData (string text) |
| Gets the data for an item. | |
| void | SetSelected (int index) |
| Sets the selected item by index. | |
| void | SetSelected (string text) |
| Sets the selected item by text. | |
| void | SetSelectedByData (object data) |
| Sets the selected item by data. | |
| ComboBox (Dialog parent) | |
| Create new combo box control. | |
| void | SetDropHeight (int height) |
| Sets the drop height of this control. | |
| void | SetScrollbarWidth (int width) |
| Sets the scroll bar width of this control. | |
| override void | OnInitialize () |
| Initialize the scrollbar control here. | |
| override void | OnFocusOut () |
| Called when focus leaves the control. | |
| override void | OnHotKey () |
| Called when the control's hotkey is pressed. | |
| override bool | HandleKeyboard (NativeMethods.WindowMessage msg, IntPtr wParam, IntPtr lParam) |
| Called when the control needs to handle the keyboard. | |
| override bool | HandleMouse (NativeMethods.WindowMessage msg, System.Drawing.Point pt, IntPtr wParam, IntPtr lParam) |
| Called when the control should handle the mouse. | |
| override void | Render (Device device, float elapsedTime) |
| Called when the control should be rendered. | |
| void | AddItem (string text, object data) |
| Adds an item to the combo box control. | |
| void | RemoveAt (int index) |
| Removes an item at a particular index. | |
| void | Clear () |
| Removes all items from the control. | |
| bool | ContainsItem (string text, int start) |
| Determines whether this control contains an item. | |
| bool | ContainsItem (string text) |
| Determines whether this control contains an item. | |
| object | GetSelectedData () |
| Gets the data for the selected item. | |
| ComboBoxItem | GetSelectedItem () |
| Gets the selected item. | |
| object | GetItemData (string text) |
| Gets the data for an item. | |
| void | SetSelected (int index) |
| Sets the selected item by index. | |
| void | SetSelected (string text) |
| Sets the selected item by text. | |
| void | SetSelectedByData (object data) |
| Sets the selected item by data. | |
Public Attributes | |
| const int | MainLayer = 0 |
| const int | ComboButtonLayer = 1 |
| const int | DropdownLayer = 2 |
| const int | SelectionLayer = 3 |
Protected Member Functions | |
| void | RaiseChangedEvent (ComboBox sender, bool wasTriggeredByUser) |
| Create new button instance. | |
| override void | UpdateRectangles () |
| Update the rectangles for the combo box control. | |
| int | FindItem (string text, int start) |
| Finds an item in the list and returns the index. | |
| int | FindItem (string text) |
| Finds an item in the list and returns the index. | |
| void | RaiseChangedEvent (ComboBox sender, bool wasTriggeredByUser) |
| Create new button instance. | |
| override void | UpdateRectangles () |
| Update the rectangles for the combo box control. | |
| int | FindItem (string text, int start) |
| Finds an item in the list and returns the index. | |
| int | FindItem (string text) |
| Finds an item in the list and returns the index. | |
| void | RaiseChangedEvent (ComboBox sender, bool wasTriggeredByUser) |
| Create new button instance. | |
| override void | UpdateRectangles () |
| Update the rectangles for the combo box control. | |
| int | FindItem (string text, int start) |
| Finds an item in the list and returns the index. | |
| int | FindItem (string text) |
| Finds an item in the list and returns the index. | |
Protected Attributes | |
| int | selectedIndex |
| int | focusedIndex |
| int | dropHeight |
| ScrollBar | scrollbarControl |
| int | scrollWidth |
| bool | isComboOpen |
| System.Drawing.Rectangle | textRect |
| System.Drawing.Rectangle | buttonRect |
| System.Drawing.Rectangle | dropDownRect |
| System.Drawing.Rectangle | dropDownTextRect |
| ArrayList | itemList |
Properties | |
| override bool | CanHaveFocus [get] |
| Can this control have focus. | |
| int | NumberItems [get] |
| Number of items current in the list. | |
| ComboBoxItem | this [int index] [get] |
| Indexer for items in the list. | |
Events | |
| EventHandler | Changed |
Definition at line 2843 of file dxmutgui.cs.
| Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.ComboBox | ( | Dialog | parent | ) |
| Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.ComboBox | ( | Dialog | parent | ) |
| Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.ComboBox | ( | Dialog | parent | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.AddItem | ( | string | text, | |
| object | data | |||
| ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.AddItem | ( | string | text, | |
| object | data | |||
| ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.AddItem | ( | string | text, | |
| object | data | |||
| ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.Clear | ( | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.Clear | ( | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.Clear | ( | ) |
Removes all items from the control.
Definition at line 3398 of file dxmutgui.cs.

| bool Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.ContainsItem | ( | string | text | ) |
Determines whether this control contains an item.
Definition at line 3420 of file wdxmutgui.cs.


| bool Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.ContainsItem | ( | string | text, | |
| int | start | |||
| ) |
| bool Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.ContainsItem | ( | string | text | ) |
Determines whether this control contains an item.
Definition at line 3414 of file dxmutgui.cs.


| bool Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.ContainsItem | ( | string | text, | |
| int | start | |||
| ) |
| bool Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.ContainsItem | ( | string | text | ) |
Determines whether this control contains an item.
Definition at line 3414 of file dxmutgui.cs.


| bool Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.ContainsItem | ( | string | text, | |
| int | start | |||
| ) |
| int Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.FindItem | ( | string | text | ) | [protected] |
Finds an item in the list and returns the index.
Definition at line 3471 of file wdxmutgui.cs.


| int Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.FindItem | ( | string | text, | |
| int | start | |||
| ) | [protected] |
| int Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.FindItem | ( | string | text | ) | [protected] |
Finds an item in the list and returns the index.
Definition at line 3465 of file dxmutgui.cs.


| int Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.FindItem | ( | string | text, | |
| int | start | |||
| ) | [protected] |
| int Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.FindItem | ( | string | text | ) | [protected] |
Finds an item in the list and returns the index.
Definition at line 3465 of file dxmutgui.cs.


| int Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.FindItem | ( | string | text, | |
| int | start | |||
| ) | [protected] |
| object Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.GetItemData | ( | string | text | ) |
| object Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.GetItemData | ( | string | text | ) |
| object Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.GetItemData | ( | string | text | ) |
| object Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.GetSelectedData | ( | ) |
| object Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.GetSelectedData | ( | ) |
| object Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.GetSelectedData | ( | ) |
| ComboBoxItem Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.GetSelectedItem | ( | ) |
| ComboBoxItem Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.GetSelectedItem | ( | ) |
| ComboBoxItem Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.GetSelectedItem | ( | ) |
| override bool Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.HandleKeyboard | ( | NativeMethods.WindowMessage | msg, | |
| IntPtr | wParam, | |||
| IntPtr | lParam | |||
| ) | [virtual] |
Called when the control needs to handle the keyboard.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Button.
Definition at line 2995 of file wdxmutgui.cs.
| override bool Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.HandleKeyboard | ( | NativeMethods.WindowMessage | msg, | |
| IntPtr | wParam, | |||
| IntPtr | lParam | |||
| ) | [virtual] |
Called when the control needs to handle the keyboard.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Button.
Definition at line 2989 of file dxmutgui.cs.
| override bool Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.HandleKeyboard | ( | NativeMethods.WindowMessage | msg, | |
| IntPtr | wParam, | |||
| IntPtr | lParam | |||
| ) | [virtual] |
Called when the control needs to handle the keyboard.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Button.
Definition at line 2989 of file dxmutgui.cs.
| override bool Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.HandleMouse | ( | NativeMethods.WindowMessage | msg, | |
| System.Drawing.Point | pt, | |||
| IntPtr | wParam, | |||
| IntPtr | lParam | |||
| ) | [virtual] |
Called when the control should handle the mouse.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Button.
Definition at line 3080 of file wdxmutgui.cs.
| override bool Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.HandleMouse | ( | NativeMethods.WindowMessage | msg, | |
| System.Drawing.Point | pt, | |||
| IntPtr | wParam, | |||
| IntPtr | lParam | |||
| ) | [virtual] |
Called when the control should handle the mouse.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Button.
Definition at line 3074 of file dxmutgui.cs.
| override bool Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.HandleMouse | ( | NativeMethods.WindowMessage | msg, | |
| System.Drawing.Point | pt, | |||
| IntPtr | wParam, | |||
| IntPtr | lParam | |||
| ) | [virtual] |
Called when the control should handle the mouse.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Button.
Definition at line 3074 of file dxmutgui.cs.
| override void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.OnFocusOut | ( | ) | [virtual] |
Called when focus leaves the control.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Control.
Definition at line 2970 of file wdxmutgui.cs.
| override void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.OnFocusOut | ( | ) | [virtual] |
Called when focus leaves the control.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Control.
Definition at line 2964 of file dxmutgui.cs.
| override void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.OnFocusOut | ( | ) | [virtual] |
Called when focus leaves the control.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Control.
Definition at line 2964 of file dxmutgui.cs.
| override void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.OnHotKey | ( | ) | [virtual] |
Called when the control's hotkey is pressed.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Button.
Definition at line 2977 of file wdxmutgui.cs.
| override void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.OnHotKey | ( | ) | [virtual] |
Called when the control's hotkey is pressed.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Button.
Definition at line 2971 of file dxmutgui.cs.
| override void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.OnHotKey | ( | ) | [virtual] |
Called when the control's hotkey is pressed.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Button.
Definition at line 2971 of file dxmutgui.cs.
| override void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.OnInitialize | ( | ) | [virtual] |
Initialize the scrollbar control here.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Control.
Definition at line 2964 of file wdxmutgui.cs.
| override void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.OnInitialize | ( | ) | [virtual] |
Initialize the scrollbar control here.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Control.
Definition at line 2958 of file dxmutgui.cs.
| override void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.OnInitialize | ( | ) | [virtual] |
Initialize the scrollbar control here.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Control.
Definition at line 2958 of file dxmutgui.cs.
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.RaiseChangedEvent | ( | ComboBox | sender, | |
| bool | wasTriggeredByUser | |||
| ) | [protected] |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.RaiseChangedEvent | ( | ComboBox | sender, | |
| bool | wasTriggeredByUser | |||
| ) | [protected] |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.RaiseChangedEvent | ( | ComboBox | sender, | |
| bool | wasTriggeredByUser | |||
| ) | [protected] |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.RemoveAt | ( | int | index | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.RemoveAt | ( | int | index | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.RemoveAt | ( | int | index | ) |
| override void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.Render | ( | Device | device, | |
| float | elapsedTime | |||
| ) | [virtual] |
Called when the control should be rendered.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Button.
Definition at line 3228 of file wdxmutgui.cs.
| override void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.Render | ( | Device | device, | |
| float | elapsedTime | |||
| ) | [virtual] |
Called when the control should be rendered.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Button.
Definition at line 3222 of file dxmutgui.cs.
| override void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.Render | ( | Device | device, | |
| float | elapsedTime | |||
| ) | [virtual] |
Called when the control should be rendered.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Button.
Definition at line 3222 of file dxmutgui.cs.

| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.SetDropHeight | ( | int | height | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.SetDropHeight | ( | int | height | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.SetDropHeight | ( | int | height | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.SetScrollbarWidth | ( | int | width | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.SetScrollbarWidth | ( | int | width | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.SetScrollbarWidth | ( | int | width | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.SetSelected | ( | string | text | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.SetSelected | ( | int | index | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.SetSelected | ( | string | text | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.SetSelected | ( | int | index | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.SetSelected | ( | string | text | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.SetSelected | ( | int | index | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.SetSelectedByData | ( | object | data | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.SetSelectedByData | ( | object | data | ) |
| void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.SetSelectedByData | ( | object | data | ) |
| override void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.UpdateRectangles | ( | ) | [protected, virtual] |
Update the rectangles for the combo box control.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Control.
Definition at line 2908 of file wdxmutgui.cs.
| override void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.UpdateRectangles | ( | ) | [protected, virtual] |
Update the rectangles for the combo box control.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Control.
Definition at line 2902 of file dxmutgui.cs.
| override void Microsoft.Samples.DirectX.UtilityToolkit.ComboBox.UpdateRectangles | ( | ) | [protected, virtual] |
Update the rectangles for the combo box control.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Control.
Definition at line 2902 of file dxmutgui.cs.
System Drawing Rectangle Microsoft::Samples::DirectX::UtilityToolkit.ComboBox::buttonRect [protected] |
Definition at line 2875 of file dxmutgui.cs.
Definition at line 2846 of file dxmutgui.cs.
Definition at line 2847 of file dxmutgui.cs.
System Drawing Rectangle Microsoft::Samples::DirectX::UtilityToolkit.ComboBox::dropDownRect [protected] |
Definition at line 2876 of file dxmutgui.cs.
System Drawing Rectangle Microsoft::Samples::DirectX::UtilityToolkit.ComboBox::dropDownTextRect [protected] |
Definition at line 2877 of file dxmutgui.cs.
int Microsoft::Samples::DirectX::UtilityToolkit.ComboBox::dropHeight [protected] |
Definition at line 2870 of file dxmutgui.cs.
Definition at line 2869 of file dxmutgui.cs.
bool Microsoft::Samples::DirectX::UtilityToolkit.ComboBox::isComboOpen [protected] |
Definition at line 2873 of file dxmutgui.cs.
ArrayList Microsoft::Samples::DirectX::UtilityToolkit.ComboBox::itemList [protected] |
Definition at line 2878 of file dxmutgui.cs.
Definition at line 2845 of file dxmutgui.cs.
Definition at line 2871 of file dxmutgui.cs.
Definition at line 2872 of file dxmutgui.cs.
Definition at line 2868 of file dxmutgui.cs.
Definition at line 2848 of file dxmutgui.cs.
System Drawing Rectangle Microsoft::Samples::DirectX::UtilityToolkit.ComboBox::textRect [protected] |
Definition at line 2874 of file dxmutgui.cs.
override bool Microsoft::Samples::DirectX::UtilityToolkit.ComboBox::CanHaveFocus [get] |
Can this control have focus.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Button.
Definition at line 2948 of file dxmutgui.cs.
int Microsoft::Samples::DirectX::UtilityToolkit.ComboBox::NumberItems [get] |
ComboBoxItem Microsoft::Samples::DirectX::UtilityToolkit.ComboBox::this [get] |
Indexer for items in the list.
Reimplemented from Microsoft.Samples.DirectX.UtilityToolkit.Control.
Definition at line 2953 of file dxmutgui.cs.
| EventHandler Microsoft::Samples::DirectX::UtilityToolkit.ComboBox::Changed |
Definition at line 2850 of file dxmutgui.cs.
1.5.8