C# Class YamuiFramework.Forms.YamuiMenu

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

Méthodes publiques

Свойство Type Description
IamMain bool
SubTextOpacity int

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
OnPaint ( PaintEventArgs e ) : void

Private Methods

Méthode 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 méthode

public CloseAll ( ) : void
Résultat void

OnKeyDown() public méthode

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

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

YamuiMenu() public méthode

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

Property Details

IamMain public_oe property

public bool IamMain
Résultat bool

SubTextOpacity public_oe property

public int SubTextOpacity
Résultat int