⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 marquee.cpp

📁 手机文件浏览器 Here are the sources to SMan v1.2c 1.2 is a major jump from v1.1. You will see this from the
💻 CPP
字号:
#include "marquee.h"

/*************************************************************
*
* Marquee class
*
**************************************************************/

CMarquee::CMarquee() : CTimer(EPriorityNormal)
{
	CTimer::ConstructL();
	CActiveScheduler::Add(this);
}

void CMarquee::RunL()
{
	TPtrC *tempText;
	TBuf<KMaxPath + 8> tempPath;
	
	tempText = (TPtrC*)(localLabel->Label()->Text());
	if (localText->Length() > 20)
	{
		tempPath.Copy(tempText->Mid(1, tempText->Length() - 1));
		if (tempText->Length() == localText->Length())
			tempPath.Append(_L("        "));
		tempPath.Append(tempText->Left(1));
		localLabel->SetTextL(tempPath);
		localLabel->DrawNow();
	}
	After(400000);
}

void CMarquee::startMarquee(CEikTextButton *marqueeLabel, TPath *scrollText)
{
	localLabel = marqueeLabel;
	localText = scrollText;
	After(400000);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -