C# Class Brh.Forms.PopupNotify

Summary description for PopupNotify. Note: No properties may be changed after Show - don't do it! It won't cause an error but it'll mess you up.
Inheritance: System.Windows.Forms.Form
Show file Open project: bhollis/brh-forms Class Usage Examples

Public Properties

Property Type Description
AnimateTime int
GradientColor System.Drawing.Color
IconHeight int
IconWidth int
WaitOnMouseOver bool
WaitTime int

Public Methods

Method Description
PopupNotify ( ) : System
PopupNotify ( string titleText, string messageText ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

DrawBorder ( Graphics fx ) : void
DrawCloseButton ( CloseButtonState state ) : Bitmap
DrawLegacyCloseButton ( CloseButtonState state ) : Bitmap

Draw a Windows 95 style close button.

DrawThemeCloseButton ( CloseButtonState state ) : Bitmap

Draw a Windows XP style close button.

OnPaintBackground ( PaintEventArgs e ) : void
drawBorder ( Graphics fx ) : void
drawCloseButton ( Int32 state ) : Bitmap
drawLegacyCloseButton ( Int32 state ) : Bitmap

Draw a Windows 95 style close button.

drawThemeCloseButton ( Int32 state ) : Bitmap

Draw a Windows XP style close button.

visualStylesEnabled ( ) : bool

Determine whether or not XP Visual Styles are active. Compatible with pre-UxTheme.dll versions of Windows.

Private Methods

Method Description
AnimateWindow ( IntPtr hwnd, int time, AnimateWindowFlags flags ) : bool
AnimateWindow ( bool positive, bool hide ) : void
Application_ThreadException ( object sender, System e ) : void
CloseThemeData ( IntPtr hTheme ) : void
Collapse ( ) : void
DrawThemeBackground ( IntPtr hTheme, IntPtr hDC, Int32 partId, Int32 stateId, System.Windows.Forms.RECT &rect, System.Windows.Forms.RECT &clipRect ) : void
FindSystemTray ( System rcWorkArea ) : SystemTrayLocation
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

IsThemeActive ( ) : Int32
MakeRoom ( ) : void
Notify ( ) : void
OpenThemeData ( IntPtr hWnd, [ classList ) : IntPtr
PopupNotify_Closing ( object sender, System e ) : void
PopupNotify_Load ( object sender, System e ) : void
SHAppBarMessage ( uint dwMessage, APPBARDATA &pData ) : IntPtr
SetLayout ( ) : void
SetWindowPos ( IntPtr hWnd, Int32 hWndInsertAfter, Int32 X, Int32 Y, Int32 cx, Int32 cy, uint uFlags ) : bool
ShowWindow ( IntPtr hWnd, Int32 flags ) : bool
UnNotify ( ) : void
closeButton_Click ( object sender, System e ) : void
closeButton_MouseDown ( object sender, System e ) : void
closeButton_MouseEnter ( object sender, System e ) : void
closeButton_MouseLeave ( object sender, System e ) : void
displayTimer_Tick ( object sender, System e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

DrawBorder() protected method

protected DrawBorder ( Graphics fx ) : void
fx System.Drawing.Graphics
return void

DrawCloseButton() protected method

protected DrawCloseButton ( CloseButtonState state ) : Bitmap
state CloseButtonState
return System.Drawing.Bitmap

DrawLegacyCloseButton() protected method

Draw a Windows 95 style close button.
protected DrawLegacyCloseButton ( CloseButtonState state ) : Bitmap
state CloseButtonState
return System.Drawing.Bitmap

DrawThemeCloseButton() protected method

Draw a Windows XP style close button.
protected DrawThemeCloseButton ( CloseButtonState state ) : Bitmap
state CloseButtonState
return System.Drawing.Bitmap

OnPaintBackground() protected method

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

PopupNotify() public method

public PopupNotify ( ) : System
return System

PopupNotify() public method

public PopupNotify ( string titleText, string messageText ) : System
titleText string
messageText string
return System

drawBorder() protected method

protected drawBorder ( Graphics fx ) : void
fx System.Drawing.Graphics
return void

drawCloseButton() protected method

protected drawCloseButton ( Int32 state ) : Bitmap
state System.Int32
return System.Drawing.Bitmap

drawLegacyCloseButton() protected method

Draw a Windows 95 style close button.
protected drawLegacyCloseButton ( Int32 state ) : Bitmap
state System.Int32
return System.Drawing.Bitmap

drawThemeCloseButton() protected method

Draw a Windows XP style close button.
protected drawThemeCloseButton ( Int32 state ) : Bitmap
state System.Int32
return System.Drawing.Bitmap

visualStylesEnabled() protected method

Determine whether or not XP Visual Styles are active. Compatible with pre-UxTheme.dll versions of Windows.
protected visualStylesEnabled ( ) : bool
return bool

Property Details

AnimateTime public property

Gets or sets the amount of time the slide in/out animations take, in ms.
public int AnimateTime
return int

GradientColor public property

An EventHandler called when the NotifyWindow main text is clicked. An EventHandler called when the NotifyWindow title text is clicked. Gets or sets the gradient color which will be blended in drawing the background.
public Color,System.Drawing GradientColor
return System.Drawing.Color

IconHeight public property

public int IconHeight
return int

IconWidth public property

public int IconWidth
return int

WaitOnMouseOver public property

Gets or sets a value specifiying whether or not the window should continue to be displayed if the mouse cursor is inside the bounds of the NotifyWindow.
public bool WaitOnMouseOver
return bool

WaitTime public property

Gets or sets the amount of milliseconds to display the NotifyWindow for.
public int WaitTime
return int