zoukankan      html  css  js  c++  java
  • 三级设置页面管理测试demo

    #include "PhoneBookWindow.h"
    #include "xWindow/xWindow.h"
    #include "hardwareDefine.h"
    #include "TalkD/VcsTalkD.h"
    #include "ETLLib/ETLLib.hpp"
    #include "UtilityLib/gsCallMethod.h"
    #include "xWindow/xWindowManager.h"

    static chStringA LoadTitleFrameWindow(const jsParameter& objParams)
    {
    chASSERT(objParams.size() == 2);
    chConstStringA strFileName(objParams.at(0));
    xLinearLayout* obj = new xLinearLayout();
    obj->loadContent(strFileName);
    obj->show();
    return NULL;
    }

    static chStringA HideActiveWindow(const jsParameter&)
    {
    xView* pActiveView = getCurrentStation().getActiveView();
    if(pActiveView != NULL)
    {
    pActiveView->hide();
    }
    return NULL;
    }

    #define DEF_ROUTINE(routine, param) { #routine, param, &routine}
    RoutineMethod s_SettingRoutine[] =
    {
    DEF_ROUTINE(LoadTitleFrameWindow, "LPCSTR lpszFileName, LPCSTR lpszTitle"),
    DEF_ROUTINE(HideActiveWindow, ""),
    { "", NULL, NULL}
    };
    static BOOL bAppendSettingRoutine = AppendRoutineTable(s_SettingRoutine); //use static to append function

    PhoneBookWindow::PhoneBookWindow(void)
    {
    setGeometry(chRect(0,0,1920,1080));
    loadContent("Status.xml");
    }

    PhoneBookWindow::~PhoneBookWindow(void)
    {
    }

  • 相关阅读:
    移动端轮播插件
    一个简单的富文本编辑器
    animation css3
    渐变的写法
    js拖拽功能
    打子弹游戏 js
    css-vertical-centering
    css3的linear-gradient
    js模拟滚动条
    js日历
  • 原文地址:https://www.cnblogs.com/hqu-ye/p/4344528.html
Copyright © 2011-2022 走看看