0
Moblet 객체는 timerListener 클래스를 서브 클래스로 만들 수 있지만 위젯 또한 TimerListener를 서브 클래스로 만들 수 있습니까? 내 코드와Mosync : 위젯이 TimerListener 클래스를 서브 클래스화할 수 있습니까
내가 오류 을 얻고 아래는`addTimer '는이 범위에 선언되지 않은 :
class MyWidget : public QAButton, public TimerListener
// The class QAButton inherits from Label & PointerListener
{
MyWidget(MAUI::Widget *nParent, QAScreen *nDestinationScreen)
: Widget(0, 0, 0, 0, nParent)
{
// Constructor:
}
void initAnimationTimer()
{
// Post:
addTimer(this, 20, 0); // Error here "`addTimer' was not declared in this scope"
}
void runTimerEvent()
{
// Post:
}
};