C# Class YamuiFramework.Forms.YamuiMenu

A class to display a cool custom context menu
Inheritance: System.Windows.Forms.Form
Exibir arquivo Open project: jcaillon/3P Class Usage Examples

Public Properties

Property Type Description
IamMain bool
SubTextOpacity int

Public Methods

Method Description
CloseAll ( ) : void
OnKeyDown ( Keys pressedKey ) : void

A key has been pressed on the menu

YamuiMenu ( Point location, List content, string htmlTitle = null, int minSize = 150 ) : System

Protected Methods

Method Description
OnPaint ( PaintEventArgs e ) : void

Private Methods

Method Description
ButtonOnButtonPressed ( object sender, EventArgs eventArgs ) : void
CloseChildren ( ) : void
CloseParents ( ) : void
OnActivated ( object sender, EventArgs eventArgs ) : void

Close all children when a menu is activated

OnClosing ( object sender, CancelEventArgs cancelEventArgs ) : void
OnDeactivate ( object sender, EventArgs eventArgs ) : void

Close the menu when the user clicked elsewhere

OnItemPressed ( ) : void

an item has been pressed

OnPreviewKeyDown ( object sender, PreviewKeyDownEventArgs previewKeyDownEventArgs ) : void
SetPosition ( Rectangle rect, bool reverseX, bool reverseY ) : void

Position the menu relativly to a parent menu

Method Details

CloseAll() public method

public CloseAll ( ) : void
return void

OnKeyDown() public method

A key has been pressed on the menu
public OnKeyDown ( Keys pressedKey ) : void
pressedKey Keys
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

YamuiMenu() public method

public YamuiMenu ( Point location, List content, string htmlTitle = null, int minSize = 150 ) : System
location Point
content List
htmlTitle string
minSize int
return System

Property Details

IamMain public_oe property

public bool IamMain
return bool

SubTextOpacity public_oe property

public int SubTextOpacity
return int