Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 23603, Popup Message Notifier Component

by Jeremy North Email: Anonymous


Message notifier component as seen in Outlook 2003, MSN and Norton's products.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 10.0  to 10.0 704 downloads
Copyright: No significant restrictions


Size: 87,174 bytes
Updated on Sun, 13 Nov 2005 23:20:13 GMT
Originally uploaded on Tue, 06 Sep 2005 07:07:35 GMT
SHA1 Hash: 5907EA7A1082A6EBCC65EDE9F3E8D82102BD34DC
MD5 Hash: 1C539F222A304E35DDD769AC834021DC

    Explore the files in this upload

Description
Message Notifier Component

Jeremy North 2004-2005

--------------------------

(this text is formatted nicely in the download as readme.txt)

This is an implementation of the notification windows that are seen in Outlook 2003 and Nortons products.

This component supports a custom ICON to be displayed as well as a Header, Message Body and Footer area's.
Each area has a different event triggered when selected.


Available Properties
====================

AllowMulipleMsgs - Something for you to implement functionality for!
ShowEffect - Type of effect used to display the window.
seNone, seFade, seLeftRight, seBottomTop, seRightLeft, seTopBottom
ShowPosition - Position on the screen for the window to display
spTopLeft, spBottomLeft, spBottomRight, spTopRight
NOTE: Not all Effects are valid with all Positions. Only the effect is validated.

InactiveColor - Window color when the mouse isn't inside its bounds
ActiveColor - Changes the window to this color when the mouse is in its bounds
DisplayedMsgLines - Number of lines for the Message to be displayed
DrawFooterSeperator - Draw the separation line between the message and the footer if the footer is being displayed
Fonts - This subtype holds the fonts used to draw the Header, Footer and Message Body. Each can be different.
WaitInterval - The amount of time in milliseconds that the window displays for once the effect has finished
Default value is 2 seconds
FadeInterval - The speed at which the window fades in and out when the seFade or seNone effect is selected.
When another effect is selected, this is the speed that the position of the window will change.
BorderOptions - Options for setting the window border. Color and line thickness.
IconOptions - Options for the displaying of an icon. What icon to display and whether it is visible.

*NEW*
Caption - Caption to be displayed (not valid if UseOfficeCaption is True)
CaptionBtns - [cbClose, cbPin]
cbClose - Display a close button
cbPin - Display a pin button that when pressed prevents the notifier from hiding. Only valid when UseOfficeCaption is

False.
FlatButtons - Display transparent buttons on the caption. Only valid when UseOfficeCaption is False.
GradientOptions (only valid when UseOfficeCaption is False)
GradientDirection - Direction to draw the gradient
GradientEndColor - End colour of the gradient
GradientStartColor - Start colour of the gradient
ShowGradient - Set to True to draw the gradient
ShowCaption - Set to True to display a caption
UseOfficeCaption - Set to True to use an Office 2003 style caption (currently on the blue theme is supported)

Transparency - The transparency of the Form when the ShowEffect is seNone.
IndentFromScreenEdge - Valid when seNone and seFade ShowEffects are selected. Displays the notifier in from the actual corner of the screen


Available Events
================

OnNotifierClose - triggered when the window is closed
OnNotifierClick - triggered when the window has been clicked on.
Check the TClickLocation parameter to determine where on the window the click occurred.
OnMeasureHeight - allows you to make adjustments to the final height of the window.
OnNotifierPaint - allows for custom painting on the window.
Check the TPaintStage parameter to see which section of the window the event was triggered for.


Availabe Methods
================

Method Parameters
Show aTitle - Title to display
aMsgText - Text of the message to display
aFooter - Footer Text (optional)


Installation
============

* Extract zip contents to a folder preserving folder names
* Open MsgNotifierGroup in the base folder
* Build all projects in the group
* Install the Win32 package for designtime support (MsgNotifier90.bpl)
* Install the dotNet package for designtime support in VCL.NET applications (MsgNotifierNET90.dll)


DesignTime Support *NEW*
========================

You can now trial how the Message Notifier will look at designtime by right clicking on the component at designtime and selecting either the

Preview or Preview with footer menu items.

There is also a new designtime options helper component contained in the MsgOptionCtrls unit. This component is called TMsgPosition and allows

you to graphically set the display position of your notifier. You can also hook up a Check Box to set the IndentFromScreenEdge property as

well. If the MsgNotifier property is set these any changes are automatically applied to the linked TMsgNotifier.


Sample Application
==================

The sample applications shows uses for all possible properties, with an example for Win32 and dotNet included.
The sample application is actually a shared source example with both projects using the same main form.

NOTE: In the sample applications, a couple of compiler messages have been turned off.


Known Issues
============

Currently you can drag the message window by its caption when the ShowEffect isn't either seNone or seFade. This should not be allowed.
Using a show effect other than seNone and seFade won't look very nice on dual monitors.

Time Permitted, both of these issues will be removed.

Server Response from: ETNACDC03