本文整理汇总了C++中CEikEdwin::SetCursorPosL方法的典型用法代码示例。如果您正苦于以下问题:C++ CEikEdwin::SetCursorPosL方法的具体用法?C++ CEikEdwin::SetCursorPosL怎么用?C++ CEikEdwin::SetCursorPosL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CEikEdwin
的用法示例。
在下文中一共展示了CEikEdwin::SetCursorPosL方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Control
// ----------------------------------------------------------------------------
// CCreate2WayVideoSessionDialog::PreLayoutDynInitL()
// .
// ----------------------------------------------------------------------------
//
void CCreate2WayVideoSessionDialog::PreLayoutDynInitL()
{
CEikEdwin* edwinPoCAddress = static_cast<CEikEdwin*>(
Control( ESessionDialog2WayVideoRecipientAddress ) );
TBuf<KBufLength> defaultAddress;
defaultAddress.Copy(iParams->iRecipentAddress);
edwinPoCAddress->SetTextL(&defaultAddress);
edwinPoCAddress->SetCursorPosL(defaultAddress.Length(),EFalse);
CAknPopupFieldText* popupFieldText =
static_cast <CAknPopupFieldText*> (Control(ESessionDialog2WayVideoVideoCodec));
popupFieldText->SetCurrentValueIndex(0);
popupFieldText =
static_cast <CAknPopupFieldText*> (Control(ESessionDialog2WayVideoAudioCodec));
popupFieldText->SetCurrentValueIndex(0);
popupFieldText =
static_cast <CAknPopupFieldText*> (Control(ESessionDialog2WayVideoViewFinder));
popupFieldText->SetCurrentValueIndex(0);
popupFieldText =
static_cast <CAknPopupFieldText*> (Control(ESessionDialog2WayVideoCamera));
popupFieldText->SetCurrentValueIndex(0);
CAknForm::PreLayoutDynInitL();
}
示例2: HandleLogWriteL
void CSymellaConsoleView::HandleLogWriteL(const TDesC& aText)
{
/*if (aText.Length() < KMaxConsoleBufferSize)
{
// Checks the new text length
TInt diff = iTextBuffer->DocumentLength() +
aText.Length() - KMaxConsoleBufferSize;
// If it's longer than the maximum then deletes from
// the beginning
if ( diff > 0)
{
iTextBuffer->DeleteL(0, diff);
if (iContainer)
iContainer->Edwin()->Text()->DeleteL(0, diff);
}
iTextBuffer->InsertL(iTextBuffer->DocumentLength(), aText);*/
if (iContainer)
{
CEikEdwin* edwin = iContainer->Edwin();
TInt diff = edwin->Text()->DocumentLength() +
aText.Length() - KMaxConsoleBufferSize;
if (diff > edwin->Text()->DocumentLength())
diff = edwin->Text()->DocumentLength();
if ( diff > 0)
edwin->Text()->DeleteL(0, diff);
edwin->Text()->InsertL(edwin->Text()->DocumentLength(), aText);
edwin->HandleTextChangedL();
edwin->SetCursorPosL(edwin->Text()->DocumentLength(), EFalse);
}
/* }
else
{
TPtrC ptr = aText.Right(KMaxConsoleBufferSize);
iTextBuffer->DeleteL(0, iTextBuffer->DocumentLength());
iTextBuffer->InsertL(0, ptr);
if (iContainer)
{
CEikEdwin* edwin = iContainer->Edwin();
edwin->Text()->DeleteL(0, edwin->Text()->DocumentLength());
edwin->Text()->InsertL(0, ptr);
edwin->HandleTextChangedL();
edwin->SetCursorPosL(edwin->Text()->DocumentLength(), EFalse);
}
}*/
}