EIKCAPCA.CPP File Reference

const TInt KVerticalSpacing

const TIntKVerticalSpacing

const TInt KVerticalSpacingSquash

const TIntKVerticalSpacingSquash

const TInt KAknTopMargin

const TIntKAknTopMargin

const TInt KAknNoTopMargin

const TIntKAknNoTopMargin

IsPopupField(CEikCaptionedControl *)

TBool IsPopupField(CEikCaptionedControl *aCC)

Parameters

CEikCaptionedControl * aCC

ResetHides(CEikCaptionedControl *)

voidResetHides(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,
TRectaClipRect
)[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 aClipRectThe clipping rect for edwin's text. An empty rect disables hiding.

HideLines_Ctrl(CCoeControl *, TRect)

TInt HideLines_Ctrl(CCoeControl *aControl,
TRectaClipRect
)[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)

voidGetVertMinRect(TRect &aRect1,
const TRectaRect2
)[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,
TRectaClipRect
)[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 * aControlThe form line to be hidden
TRect aClipRectThe clipping rectangle