IGLib
1.7.2
The IGLib base library for development of numerical, technical and business applications.
|
Manages a fading message window. Windows containing a message are launched in separate threads, closing after a specified time. More...
Public Member Functions | |
FadingMessageOld () | |
Argument-less constructor, does not launch the window in a parallel thread. More... | |
FadingMessageOld (string msgtext) | |
Shows a fading message in a new thread, with message text equal to mshtext and without a title;. More... | |
FadingMessageOld (string msgtext, int showtime) | |
Shows a fading message in a new thread, with message text equal to msgtext and with specified showing time in ms. More... | |
FadingMessageOld (string msgtext, int showtime, double fadeportion) | |
Shows a fading message in a new thread, with message text equal to msgtext and with specified showing time in ms and fading time portion. More... | |
FadingMessageOld (string title, string msgtext) | |
Shows the consform in a new thread, with a title and with message text equal to msgtext. More... | |
FadingMessageOld (string title, string msgtext, int showtime) | |
Shows a fading message in a new thread, with a title and with message text equal to msgtext, with specified showing time in ms. More... | |
FadingMessageOld (string title, string msgtext, int showtime, double fadeportion) | |
Shows a fading message in a new thread, with a title and with message text equal to msgtext, with specified showing time in ms and fading time portion. More... | |
void | CloseForm () |
Closes the FadeMessage by properly (i.e. thread-safe) calling the Close() and Dispose(). More... | |
void | ShowThread () |
void | ShowThread (string text) |
Shows a fading message in a new thread, with message text equal to mshtext and without a title;. More... | |
void | ShowThread (string msgtext, int showtime) |
Shows a fading message in a new thread, with message text equal to msgtext and with specified showing time in ms. More... | |
void | ShowThread (string msgtext, int showtime, double fadeportion) |
Shows a fading message in a new thread, with message text equal to msgtext and with specified showing time in ms and fading time portion. More... | |
void | ShowThread (string title, string text) |
Shows the consform in a new thread, with a title and with message text equal to msgtext. More... | |
void | CopyMessageToClipboard () |
void | ShowThread (string title, string msgtext, int showtime) |
Shows a fading message in a new thread, with a title and with message text equal to msgtext, with specified showing time in ms. More... | |
void | ShowThread (string title, string msgtext, int showtime, double fadeportion) |
Shows a fading message in a new thread, with a title and with message text equal to msgtext, with specified showing time in ms and fading time portion. More... | |
Static Public Member Functions | |
static void | Example () |
static void | Example2 () |
Public Attributes | |
Color | ForeGroundColorTitle = Color.Blue |
Color of the title (if shown in fading message). More... | |
Color | ForeGroundColorMsg = Color.Black |
Color of the message text shown in the fading message. More... | |
Color | BackGroundColor = Color.LightYellow |
Active background color of the fading message. More... | |
Color | FadeColor = Color.DarkGray |
Final (faded) color of the fading message. More... | |
string | MsgTitle = null |
bool | IsReady =false |
bool | BlockMaxShownCurrent = false |
Indicates to block launching new messges when too many are processed. More... | |
Static Public Attributes | |
static int | MaxShown = 50 |
If false then the consform can not be closed or dispoded. More... | |
static bool | BlockMaxShown = false |
Protected Member Functions | |
override void | Dispose (bool disposing) |
Clean up any resources being used. More... | |
Protected Attributes | |
bool | IsClosable = true |
Returns true if control has been created and is ready to work with. More... | |
Properties | |
int | ShowTime [get, set] |
double | FadingTimePortion [get, set] |
Private Member Functions | |
void | baseFadeMessage () |
void | FadeMessage_MouseMove (object sender, MouseEventArgs e) |
void | FadeMessage_MouseDown (object sender, MouseEventArgs e) |
void | ManipulationThreadFunc () |
A parallel thread that takes care of launching the thread that manages the consform. This thread also takes care that the consform is disposed after the prescribed time elapses. More... | |
void | FormThreadFunc () |
Launches the message. More... | |
void | timer1_Tick (object sender, EventArgs e) |
void | SetFadeLevel (double fadefactor) |
void | SetCommonEvents (Control f) |
void | FadeMessage_Load (object sender, System.EventArgs e) |
void | FadeMessage_Disposed (object sender, System.EventArgs e) |
void | FadeMessage_FormClosing (object sender, FormClosingEventArgs e) |
void | CancelBtn_Click (object sender, EventArgs e) |
void | menuStrip1_ItemClicked (object sender, ToolStripItemClickedEventArgs e) |
void | menuCopyMessage_Click (object sender, EventArgs e) |
Copies message text to clipboard. More... | |
void | menuClose_Click (object sender, EventArgs e) |
void | launchTestMessageToolStripMenuItem_Click (object sender, EventArgs e) |
void | FadeMessage_MouseClick (object sender, MouseEventArgs e) |
Handles mouse click events for the current fading message control. More... | |
void | FadeMessage_KeyPress (object sender, KeyPressEventArgs e) |
Handles mouse click events for the current fading message control. More... | |
void | PnlStatus_Paint (object sender, PaintEventArgs e) |
void | InitializeComponent () |
Required method for Designer support - do not modify the contents of this method with the code editor. More... | |
Private Attributes | |
string | MsgText = null |
bool | Counted = false |
Instructs just for the current index to block launching the messge when too many are processed. More... | |
int | m_PrevX |
int | m_PrevY |
int | vShowTime = defaultShowtime |
double | vFadingTimePortion = defaultFadingTimePortion |
Thread | formthread = null |
Thread | manipulationthread = null |
int | mintickinterval = 40 |
int | maxticks = 50 |
int | numticks = 0 |
int | totalticks = 20 |
int | firsttick = 1000 |
int | tickinterval = 100 |
double | fadingfactor = 0 |
System.ComponentModel.IContainer | components = null |
Required designer variable. More... | |
System.Windows.Forms.Timer | timer1 |
System.Windows.Forms.Button | btnCancel |
System.Windows.Forms.Label | lblStatus |
System.Windows.Forms.Panel | BodyPnl |
System.Windows.Forms.Label | lblMEssage |
System.Windows.Forms.Label | lblTitle |
System.Windows.Forms.Panel | PnlStatus |
System.Windows.Forms.Label | labelBottom |
System.Windows.Forms.ContextMenuStrip | menuMain |
System.Windows.Forms.ToolStripMenuItem | menuCopyMessage |
System.Windows.Forms.ToolStripMenuItem | menuClose |
System.Windows.Forms.ToolStripMenuItem | launchTestMessageToolStripMenuItem |
Static Private Attributes | |
static int | NumShown = 0 |
Indicates how many messages can be shown simultaneously. More... | |
static int | defaultShowtime = 3000 |
static double | defaultFadingTimePortion = 0.3 |
Manages a fading message window. Windows containing a message are launched in separate threads, closing after a specified time.
$A Igor jul08;
|
inline |
Argument-less constructor, does not launch the window in a parallel thread.
|
inline |
Shows a fading message in a new thread, with message text equal to mshtext and without a title;.
|
inline |
Shows a fading message in a new thread, with message text equal to msgtext and with specified showing time in ms.
|
inline |
Shows a fading message in a new thread, with message text equal to msgtext and with specified showing time in ms and fading time portion.
|
inline |
Shows the consform in a new thread, with a title and with message text equal to msgtext.
|
inline |
Shows a fading message in a new thread, with a title and with message text equal to msgtext, with specified showing time in ms.
|
inline |
Shows a fading message in a new thread, with a title and with message text equal to msgtext, with specified showing time in ms and fading time portion.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
A parallel thread that takes care of launching the thread that manages the consform. This thread also takes care that the consform is disposed after the prescribed time elapses.
|
inlineprivate |
Launches the message.
|
inlineprivate |
|
inlineprivate |
References IG.Forms.UtilForms.SetBackColorRec().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
Closes the FadeMessage by properly (i.e. thread-safe) calling the Close() and Dispose().
References IG.Forms.VoidDelegate().
|
inline |
Shows a fading message in a new thread. It first launches a new thread that launches the thread managing the consform.
|
inline |
Shows a fading message in a new thread, with message text equal to mshtext and without a title;.
|
inline |
Shows a fading message in a new thread, with message text equal to msgtext and with specified showing time in ms.
|
inline |
Shows a fading message in a new thread, with message text equal to msgtext and with specified showing time in ms and fading time portion.
|
inline |
Shows the consform in a new thread, with a title and with message text equal to msgtext.
|
inlineprivate |
|
inlineprivate |
Copies message text to clipboard.
|
inline |
|
inlineprivate |
|
inline |
Shows a fading message in a new thread, with a title and with message text equal to msgtext, with specified showing time in ms.
|
inlineprivate |
|
inline |
Shows a fading message in a new thread, with a title and with message text equal to msgtext, with specified showing time in ms and fading time portion.
|
inlineprivate |
Handles mouse click events for the current fading message control.
|
inlineprivate |
Handles mouse click events for the current fading message control.
|
inlineprivate |
|
inlinestatic |
|
inlinestatic |
References IG.Forms.FadingMessage.MsgText, and IG.Forms.FadingMessage.MsgTitle.
|
inlineprotected |
Clean up any resources being used.
disposing | true if managed resources should be disposed; otherwise, false. |
|
inlineprivate |
Required method for Designer support - do not modify the contents of this method with the code editor.
Color IG.Forms.FadingMessageOld.ForeGroundColorTitle = Color.Blue |
Color of the title (if shown in fading message).
Color IG.Forms.FadingMessageOld.ForeGroundColorMsg = Color.Black |
Color of the message text shown in the fading message.
Color IG.Forms.FadingMessageOld.BackGroundColor = Color.LightYellow |
Active background color of the fading message.
Color IG.Forms.FadingMessageOld.FadeColor = Color.DarkGray |
Final (faded) color of the fading message.
string IG.Forms.FadingMessageOld.MsgTitle = null |
|
private |
bool IG.Forms.FadingMessageOld.IsReady =false |
|
protected |
Returns true if control has been created and is ready to work with.
|
static |
If false then the consform can not be closed or dispoded.
|
staticprivate |
Indicates how many messages can be shown simultaneously.
|
static |
bool IG.Forms.FadingMessageOld.BlockMaxShownCurrent = false |
Indicates to block launching new messges when too many are processed.
|
private |
Instructs just for the current index to block launching the messge when too many are processed.
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Required designer variable.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
getset |
|
getset |