IGLib
1.5
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 | |
FadingMessage (string Message, int ShowTime, double FadingTimePortion) | |
FadingMessage (string Message, int ShowTime) | |
FadingMessage (string Message) | |
FadingMessage () | |
Argument-less constructor, does not launch the window in a parallel thread. More... | |
FadingMessage (string msgtext) | |
Shows a fading message in a new thread, with message text equal to mshtext and without a title;. More... | |
FadingMessage (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... | |
FadingMessage (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... | |
FadingMessage (string title, string msgtext) | |
Shows the consform in a new thread, with a title and with message text equal to msgtext. More... | |
FadingMessage (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... | |
FadingMessage (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 | 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 Attributes | |
bool | IsClosable = true |
Returns true if control has been created and is ready to work with. More... | |
Properties | |
static int | DefaultShowTime [get, set] |
static double | DefaultFadingTimePortion [get, set] |
int | ShowTime [get, set] |
double | FadingTimePortion [get, set] |
Private Member Functions | |
void | basFadingMessage (string Message, int ShowTime, double FadingPortion) |
void | ManipulationThreadFunc () |
void | MessageThreadFunc () |
void | baseFadeMessage () |
Required designer variable. More... | |
void | InitializeComponent () |
Required method for Designer support - do not modify the contents of this method with the code editor. More... | |
void | FadeMessage_MouseMove (object sender, MouseEventArgs e) |
void | FadeMessage_MouseDown (object sender, MouseEventArgs e) |
void | ManipulationThreadFunc () |
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 | FadeMessage_MouseClick (object sender, MouseEventArgs e) |
void | PnlStatus_Paint (object sender, PaintEventArgs e) |
Private Attributes | |
string | text |
int | showtime |
double | fadingportion |
Thread | msgthread = null |
Thread | manipulationthread = null |
string | MsgText = null |
bool | Counted = false |
Instructs just for the current index to block launching the messge when too many are processed. More... | |
System.Windows.Forms.Timer | timer1 |
Button | btnCancel |
Label | lblStatus |
Panel | BodyPnl |
Label | lblMEssage |
Label | lblTitle |
Panel | PnlStatus |
Label | labelBottom |
IContainer | components |
int | m_PrevX |
int | m_PrevY |
int | vShowTime = defaultShowtime |
double | vFadingTimePortion = defaultFadingTimePortion |
Thread | formthread = null |
int | mintickinterval = 40 |
int | maxticks = 50 |
int | numticks = 0 |
int | totalticks = 20 |
int | firsttick = 1000 |
int | tickinterval = 100 |
double | fadingfactor = 0 |
Static Private Attributes | |
static int | defaultShowtime = 3000 |
static double | defaultFadingTimePortion = 0.3 |
static int | NumShown = 0 |
Indicates how many messages can be shown simultaneously. More... | |
Manages a fading message window. Windows containing a message are launched in separate threads, closing after a specified time.
$A Igor jul08;
|
inline |
|
inline |
|
inline |
|
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 |
Required designer variable.
|
inlineprivate |
Required method for Designer support - do not modify the contents of this method with the code editor.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
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.
Referenced by IG.Forms.ReporterForms.DefaultReport_FadeMessage(), IG.Forms.ReporterForms.DefaultReserveReportErrorForms(), IG.Forms.XMLTreeView.ReportError0(), IG.Forms.UtilForms.ReserveReportError(), IG.Forms.ConsoleForm.ReserveReportError0(), IG.Forms.UtilForms.ReserveReportWarning(), and IG.Forms.UtilForms.ReserveWrite().
|
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 |
|
inlinestatic |
Referenced by IG.Script.AppExtBase.FormDemoFunctionFadingMessage().
|
inlinestatic |
Referenced by IG.Script.AppExtBase.FormDemoFunctionFadingMessage().
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
Color IG.Forms.FadingMessage.ForeGroundColorTitle = Color.Blue |
Color of the title (if shown in fading message).
Referenced by IG.Forms.ReporterForms.DefaultReport_FadeMessage(), and IG.Forms.ReporterForms.DefaultReserveReportErrorForms().
Color IG.Forms.FadingMessage.ForeGroundColorMsg = Color.Black |
Color of the message text shown in the fading message.
Referenced by IG.Forms.ReporterForms.DefaultReport_FadeMessage(), and IG.Forms.ReporterForms.DefaultReserveReportErrorForms().
Color IG.Forms.FadingMessage.BackGroundColor = Color.LightYellow |
Active background color of the fading message.
Referenced by IG.Forms.ReporterForms.DefaultReport_FadeMessage(), IG.Forms.ReporterForms.DefaultReserveReportErrorForms(), IG.Forms.XMLTreeView.ReportError0(), IG.Forms.UtilForms.ReserveReportError(), IG.Forms.ConsoleForm.ReserveReportError0(), and IG.Forms.UtilForms.ReserveWrite().
Color IG.Forms.FadingMessage.FadeColor = Color.DarkGray |
Final (faded) color of the fading message.
Referenced by IG.Forms.ReporterForms.DefaultReport_FadeMessage(), and IG.Forms.ReporterForms.DefaultReserveReportErrorForms().
string IG.Forms.FadingMessage.MsgTitle = null |
Referenced by IG.Forms.ReporterForms.DefaultReport_FadeMessage(), IG.Forms.ReporterForms.DefaultReserveReportErrorForms(), IG.Forms.XMLTreeView.ReportError0(), IG.Forms.UtilForms.ReserveReportError(), IG.Forms.ConsoleForm.ReserveReportError0(), IG.Forms.UtilForms.ReserveReportWarning(), and IG.Forms.UtilForms.ReserveWrite().
|
private |
Referenced by IG.Forms.ReporterForms.DefaultReport_FadeMessage(), IG.Forms.ReporterForms.DefaultReserveReportErrorForms(), IG.Forms.XMLTreeView.ReportError0(), IG.Forms.UtilForms.ReserveReportError(), IG.Forms.ConsoleForm.ReserveReportError0(), IG.Forms.UtilForms.ReserveReportWarning(), and IG.Forms.UtilForms.ReserveWrite().
bool IG.Forms.FadingMessage.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.FadingMessage.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 |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticgetset |
|
staticgetset |
|
getset |
|
getset |