logo

ShortCutTextBox control More...

+ Inheritance diagram for NoteFly.ShortcutTextBox:

Public Member Functions

 ShortcutTextBox ()
 Creating a new instance of ShortcutTextBox class. More...
 

Protected Member Functions

override void OnKeyDown (KeyEventArgs e)
 Key pressed down in this control. More...
 
override void OnKeyUp (KeyEventArgs e)
 Key released in this control. More...
 

Properties

int ShortcutKeyposition [get, set]
 Gets or sets the last/final key More...
 
bool UseAltInsteadofShift [get, set]
 Gets or sets a value indicating whether alt is used instead of shift as second key for the hotkey combination. More...
 

Private Member Functions

void setcontent ()
 Set the text in this control based on the pressed shortcut. More...
 
bool IsModifierKey (Keys key)
 Check if the key is a modifier key. More...
 

Private Attributes

bool altinsteadofshift = false
 Is alt used instead of shift key for shortcut as second key of the shortcut. More...
 
Keys key = Keys.F1
 The last key of the shortcut. More...
 
bool previousaltinsteadofshift = false
 Is alt key used previously instead of shift key as second key of the shortcut. More...
 
Keys previouskey = Keys.F1
 The previously last key of the shortcut. More...
 

Detailed Description

Constructor & Destructor Documentation

NoteFly.ShortcutTextBox.ShortcutTextBox ( )

Member Function Documentation

bool NoteFly.ShortcutTextBox.IsModifierKey ( Keys  key)
private
Parameters
keyThe key to check.
Returns
True if it's a modifier key.
override void NoteFly.ShortcutTextBox.OnKeyDown ( KeyEventArgs  e)
protected
Parameters
eKey eveny arguments
override void NoteFly.ShortcutTextBox.OnKeyUp ( KeyEventArgs  e)
protected
Parameters
eKey event arguments
void NoteFly.ShortcutTextBox.setcontent ( )
private

Member Data Documentation

bool NoteFly.ShortcutTextBox.altinsteadofshift = false
private
Keys NoteFly.ShortcutTextBox.key = Keys.F1
private
bool NoteFly.ShortcutTextBox.previousaltinsteadofshift = false
private
Keys NoteFly.ShortcutTextBox.previouskey = Keys.F1
private

Property Documentation

int NoteFly.ShortcutTextBox.ShortcutKeyposition
getset
bool NoteFly.ShortcutTextBox.UseAltInsteadofShift
getset