Exemple #1
0
SRadioBox::SRadioBox()
    : m_pSkin(GETBUILTINSKIN(SKIN_SYS_RADIO))
    , m_pFocusSkin(GETBUILTINSKIN(SKIN_SYS_FOCUSRADIO))
{
    m_style.SetAttribute(L"align",L"left");
    m_bFocusable=TRUE;
}
Exemple #2
0
int SProgress::OnCreate( void* )
{
    if(!m_pSkinBg)  m_pSkinBg=GETBUILTINSKIN(IsVertical()?SKIN_SYS_VERT_PROG_BKGND:SKIN_SYS_PROG_BKGND);
    if(!m_pSkinPos) m_pSkinPos=GETBUILTINSKIN(IsVertical()?SKIN_SYS_VERT_PROG_BAR:SKIN_SYS_PROG_BAR);
    SASSERT(m_pSkinBg && m_pSkinPos);
    return (m_pSkinBg && m_pSkinPos)?0:-1;
}
Exemple #3
0
SCheckBox::SCheckBox()
    : m_pSkin(GETBUILTINSKIN(SKIN_SYS_CHECKBOX))
    , m_pFocusSkin(GETBUILTINSKIN(SKIN_SYS_FOCUSCHECKBOX))
{
    m_style.SetAttribute(L"align",L"left");
    m_bFocusable=TRUE;
}
Exemple #4
0
SProgress::SProgress()
    : m_nMinValue(0)
    , m_nMaxValue(100)
    , m_nValue(0)
    , m_bShowPercent(FALSE)
    , m_pSkinBg(GETBUILTINSKIN(SKIN_SYS_PROG_BKGND))
    , m_pSkinPos(GETBUILTINSKIN(SKIN_SYS_PROG_BAR))
    , m_bVertical(FALSE)
{

}
Exemple #5
0
SMenuAttr::SMenuAttr()
    :m_pItemSkin(GETBUILTINSKIN(SKIN_SYS_MENU_SKIN))
    ,m_pSepSkin(GETBUILTINSKIN(SKIN_SYS_MENU_SEP))
    ,m_pCheckSkin(GETBUILTINSKIN(SKIN_SYS_MENU_CHECK))
    ,m_pIconSkin(NULL)
    ,m_hFont(0)
    ,m_nItemHei(0)
    ,m_nIconMargin(2)
    ,m_nTextMargin(5)
    ,m_szIcon(CX_ICON,CY_ICON)
{
    m_crTxtNormal=GetSysColor(COLOR_MENUTEXT)|0xff000000;
    m_crTxtSel=GetSysColor(COLOR_HIGHLIGHTTEXT)|0xff000000;
    m_crTxtGray=GetSysColor(COLOR_GRAYTEXT)|0xff000000;
}
Exemple #6
0
SButton::SButton() 
:m_accel(0)
,m_bAnimate(FALSE)
,m_byAlphaAni(0xFF)
{
    m_pBgSkin=GETBUILTINSKIN(SKIN_SYS_BTN_NORMAL);
    m_bFocusable=TRUE;
}
Exemple #7
0
//////////////////////////////////////////////////////////////////////////
//  SSliderBar
SSliderBar::SSliderBar()
    : m_bDrag(FALSE)
    , m_uHtPrev(-1)
    , m_pSkinThumb(GETBUILTINSKIN(SKIN_SYS_SLIDER_THUMB))
    , m_bThumbInRail(FALSE)
{
    m_evtSet.addEvent(EVENTID(EventSliderPos));
}
Exemple #8
0
    //////////////////////////////////////////////////////////////////////////
    // SComboBoxBase
    SComboBase::SComboBase(void)
        :m_pSkinBtn(GETBUILTINSKIN(SKIN_SYS_DROPBTN))
        ,m_pEdit(NULL)
        ,m_bDropdown(TRUE)
        ,m_nDropHeight(200, SLayoutSize::dp)
        ,m_dwBtnState(WndState_Normal)
        ,m_nAnimTime(200)
        ,m_pDropDownWnd(NULL)
        ,m_iInitSel(-1)
		,m_bAutoFitDropBtn(TRUE)
    {
        m_bFocusable=TRUE;
        m_style.SetAttribute(L"align",L"left",TRUE);
        m_style.SetAttribute(L"valign",L"middle",TRUE);

        m_evtSet.addEvent(EVENTID(EventCBSelChange));
        m_evtSet.addEvent(EVENTID(EventRENotify));
		m_evtSet.addEvent(EVENTID(EventCBDropdown));
    }
Exemple #9
0
STabCtrl::STabCtrl() : m_nCurrentPage(0)
    , m_pSkinTab(GETBUILTINSKIN(SKIN_SYS_TAB_PAGE))
    , m_pSkinIcon(NULL)
    , m_pSkinTabInter(NULL)
    , m_pSkinFrame(NULL)
    , m_nTabInterSize(0)
    , m_nTabPos(0)
    , m_nHoverTabItem(-1)
    , m_nTabAlign(AlignTop)
    , m_nAnimateSteps(0)
    , m_ptText(-1,-1)
    , m_tabSlider(NULL)
{
    m_szTab.cx = m_szTab.cy = -1;
    m_bFocusable=TRUE;
    m_evtSet.addEvent(EVENTID(EventTabSelChanging));
    m_evtSet.addEvent(EVENTID(EventTabSelChanged));
    m_evtSet.addEvent(EVENTID(EventTabItemHover));
    m_evtSet.addEvent(EVENTID(EventTabItemLeave));
}
Exemple #10
0
//////////////////////////////////////////////////////////////////////////
// CDuiToggle
SToggle::SToggle():m_bToggled(FALSE)
{
    m_pSkin = GETBUILTINSKIN(SKIN_SYS_TREE_TOGGLE);
}