RMessageWindow Class Reference

#include <mw/clock.h>

Link against: clock.lib

class RMessageWindow : public RAnimWithUtils

Inherits from

Public Member Enumerations
enumanonymous { EMaxTextLength }
Public Member Functions
RMessageWindow(RAnimDll &, const RWindowBase &)
IMPORT_C voidCancelDisplay()
IMPORT_C voidConstructL(TInt, TInt, TRgb, TRgb)
IMPORT_C voidConstructL(TInt, TInt, TRgb, TRgb, TRgb)
IMPORT_C voidGetBorders(TMargins &)
IMPORT_C voidSetBackgroundColor(TRgb)
IMPORT_C voidSetBorderColor(TRgb)
IMPORT_C voidSetPlinthColors(TRgb, TRgb)
IMPORT_C voidSetTextColor(TRgb)
IMPORT_C voidStartDisplay(TBool, TTimeIntervalMicroSeconds32, const TDesC &)
IMPORT_C voidStartDisplay(TBool, TTimeIntervalMicroSeconds32, TTimeIntervalMicroSeconds32, const TDesC &)
Inherited Functions
RAnim::AsyncCommandReply(TRequestStatus &,TInt,const TIpcArgs &)
RAnim::Command(TInt)
RAnim::Command(TInt,const TPtrC8 &)
RAnim::CommandReply(TInt)
RAnim::CommandReply(TInt,const TDesC8 &,const TIpcArgs &)
RAnim::CommandReply(TInt,const TPtrC8 &)
RAnim::Construct(const RWindowBase &,TInt,const TDesC8 &)
RAnim::Construct(const RWindowBase &,TInt,const TDesC8 &,const TIpcArgs &)
RAnim::Construct(const RWsSprite &,TInt,const TDesC8 &)
RAnim::Construct(const RWsSprite &,TInt,const TDesC8 &,const TIpcArgs &)
RAnim::Destroy()
RAnim::RAnim()
RAnim::RAnim(RAnimDll &)
RAnim::~RAnim()
RAnimWithUtils::AppendToConstructorBufL(const TDesC8 &)
RAnimWithUtils::Close()
RAnimWithUtils::ConstructorBuf()const
RAnimWithUtils::ConstructorBufAlreadySent()const
RAnimWithUtils::ConstructorBufExists()const
RAnimWithUtils::RAnimWithUtils(RAnimDll &,const RWindowBase &)
RAnimWithUtils::SendConstructorBufIfCompleteL(TInt)
RAnimWithUtils::SendConstructorBufL(TInt)
RAnimWithUtils::SetNumAdditionsStillExpected(TInt)

Detailed Description

A configurable window that appears for a brief time to display a message to the user and then disappears.

This is the basic class that is used by classes such as CEikonEnv and CEikMsgWin to provide information and message windows. Such higher-level classes would normally be used by client applications rather than RMessageWindow. This class can be used though to implement specialist new classes.

Note that this class is in the same library as the Clock API for implementation reasons only.

See also: CEikMsgWin CEikonEnv

Member Enumeration Documentation

Enum anonymous

Defines the maximum length of text in the message.

EnumeratorValueDescription
EMaxTextLength80

Maximum length of text in the message.

Constructor & Destructor Documentation

RMessageWindow ( RAnimDll &, const RWindowBase & )

IMPORT_CRMessageWindow(RAnimDll &aAnimDll,
const RWindowBase &aWindow
)

Constructor.

Parameters
aAnimDllThis RAnimDll must have been loaded with the server-side message window animation DLL, clocka.dll.
aWindowWindow to which to add the message window.

Member Function Documentation

CancelDisplay ( )

IMPORT_C voidCancelDisplay()

Cancels the display of the window.

ConstructL ( TInt, TInt, TRgb, TRgb )

IMPORT_C voidConstructL(TIntaBaselineOffset,
TIntaFontHandle,
TRgbaBackgroundColor,
TRgbaTextColor
)

Performs second-phase construction.

See also: CFbsFont::Handle()

Parameters
aBaselineOffsetHeight of window in pixels above the font's baseline.
aFontHandleHandle to the font to use. This can be obtained with CFbsFont::Handle().
aBackgroundColorWindow's background colour.
aTextColorMessage text colour.

ConstructL ( TInt, TInt, TRgb, TRgb, TRgb )

IMPORT_C voidConstructL(TIntaBaselineOffset,
TIntaFontHandle,
TRgbaBackgroundColor,
TRgbaTextColor,
TRgbaBorderColor
)

Performs second-phase construction, with a window border colour.

See also: CFbsFont::Handle()

Parameters
aBaselineOffsetHeight of window in pixels above the font's baseline.
aFontHandleHandle to the font to use. This can be obtained with CFbsFont::Handle().
aBackgroundColorWindow's background colour.
aTextColorMessage text colour.
aBorderColorWindow border colour.

GetBorders ( TMargins & )

IMPORT_C voidGetBorders(TMargins &aBorders)

Gets the widths of the window's borders.

Parameters
aBordersOn return, the widths of the window's borders

SetBackgroundColor ( TRgb )

IMPORT_C voidSetBackgroundColor(TRgbaBackgroundColor)

Sets the background colour for the window.

Parameters
aBackgroundColorBackground colour.

SetBorderColor ( TRgb )

IMPORT_C voidSetBorderColor(TRgbaBorderColor)

Sets the window border colour.

Parameters
aBorderColorWindow border colour.

SetPlinthColors ( TRgb, TRgb )

IMPORT_C voidSetPlinthColors(TRgbaTl,
TRgbaBr
)

Sets the plinth colours.

Parameters
aTlColour to use around the top and left borders.
aBrColour to use around the bottom and right borders.

SetTextColor ( TRgb )

IMPORT_C voidSetTextColor(TRgbaTextColor)

Sets the message text colour.

Parameters
aTextColorMessage text colour.

StartDisplay ( TBool, TTimeIntervalMicroSeconds32, const TDesC & )

IMPORT_C voidStartDisplay(TBoolaFlash,
TTimeIntervalMicroSeconds32aInitialDelay,
const TDesC &aText
)

Displays the message window for a specified time.

Parameters
aFlashSet this to true to make the message window flash.
aInitialDelayDuration for which to display the message window.
aTextText to put in the window.

StartDisplay ( TBool, TTimeIntervalMicroSeconds32, TTimeIntervalMicroSeconds32, const TDesC & )

IMPORT_C voidStartDisplay(TBoolaFlash,
TTimeIntervalMicroSeconds32aInitialDelay,
TTimeIntervalMicroSeconds32aDuration,
const TDesC &aText
)

Displays the message window for a specified time with an initial delay.

Parameters
aFlashSet this to true to make the message window flash.
aInitialDelayInitial delay before showing the window.
aDurationDuration for which to display the message window.
aTextText to put in the window.