📄 mycolumnlistboxappui.cpp
字号:
/* Copyright (c) 2008, Nokia. All rights reserved */
#include <avkon.hrh>
#include <aknnotewrappers.h>
#include "MyColumnListBox.pan"
#include "MyColumnListBoxAppUi.h"
#include "MyColumnListBoxAppView.h"
#include "MyColumnListBox.hrh"
#include "CDreamColumnListBox.h"
void CMyColumnListBoxAppUi::ConstructL()
{
BaseConstructL(EAknEnableSkin);
iAppView = CMyColumnListBoxAppView::NewL(ClientRect());
AddViewL(iAppView); // Transfer ownership to base class
SetDefaultViewL(*iAppView);
}
CMyColumnListBoxAppUi::CMyColumnListBoxAppUi()
{
// add any construction that cannot leave here
}
CMyColumnListBoxAppUi::~CMyColumnListBoxAppUi()
{
// if (iAppView)
// {
// iEikonEnv->RemoveFromStack(iAppView);
// delete iAppView;
// iAppView = NULL;
// }
}
void CMyColumnListBoxAppUi::HandleCommandL(TInt aCommand)
{
switch(aCommand)
{
case EEikCmdExit:
case EAknSoftkeyExit:
Exit();
break;
case EMyColumnListBoxCommand1:
{
_LIT(message,"Command 1");
CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
informationNote->ExecuteLD(message);
}
break;
default:
Panic(EMyColumnListBoxBasicUi);
break;
}
}
TKeyResponse CMyColumnListBoxAppUi::HandleKeyEventL(
const TKeyEvent& aKeyEvent,
TEventCode aType)
{
if(aType == EKeyDownArrow)
{
TInt i;
i = 1;
}
else
{
}
return EKeyWasNotConsumed;
}
TKeyResponse CMyColumnListBoxAppUi::OfferKeyEventL(
const TKeyEvent& aKeyEvent, TEventCode aType )
{
TInt code = aKeyEvent.iCode;
return( EKeyWasNotConsumed );
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -