EIKCAPCA.CPP File Reference

const TInt KVerticalSpacing

const TInt KVerticalSpacing

const TInt KVerticalSpacingSquash

const TInt KVerticalSpacingSquash

const TInt KAknTopMargin

const TInt KAknTopMargin

const TInt KAknNoTopMargin

const TInt KAknNoTopMargin

IsPopupField(CEikCaptionedControl *)

TBool IsPopupField ( CEikCaptionedControl * aCC )

Parameters

CEikCaptionedControl * aCC

ResetHides(CEikCaptionedControl *)

void ResetHides ( CEikCaptionedControl * aControl ) [static]

If aControl is an edwin, set its clipping rect to empty. This will disable the text hiding.

Parameters

CEikCaptionedControl * aControl

HideLines_Edwin(CEikEdwin *, TRect)

TInt HideLines_Edwin ( CEikEdwin * aEdwin,
TRect aClipRect
) [static]

Sets a clipping rectangle for hiding the whole or a part of edwin's text.

The reason for using this function is the multiline edwins. The text inside an edwin can be broken to two or more lines, which must be hidden or shown independently from each other. That is why it is not enough just to move the whole edwin out of the screen.

Parameters

CEikEdwin * aEdwin
TRect aClipRect The clipping rect for edwin's text. An empty rect disables hiding.

HideLines_Ctrl(CCoeControl *, TRect)

TInt HideLines_Ctrl ( CCoeControl * aControl,
TRect aClipRect
) [static]

Tries to hide the specified control. The control will be hidden, if it doesn't fit to the specified clipping rectangle. Checks if the control exists.

Parameters

CCoeControl * aControl
TRect aClipRect

GetVertMinRect(TRect &, const TRect)

void GetVertMinRect ( TRect & aRect1,
const TRect aRect2
) [static]

Get vertically minimal rectangle of the two given.

Vertically reduces aRect1 by aRect2's dangling part, if aRect2 doesn't fit to aRect1.

Sets aRect1 to the resulting minimal rectangle.

Parameters

TRect & aRect1
const TRect aRect2

HideLines(CEikCaptionedControl *, TRect)

TInt HideLines ( CEikCaptionedControl * aControl,
TRect aClipRect
) [static]

Hides the specified form line, if it does not fit to the specified clipping rectangle. The function never hides focused editable lines. If the form layout is single, the whole captioned control is hidden.

Parameters

CEikCaptionedControl * aControl The form line to be hidden
TRect aClipRect The clipping rectangle