MCPcopy Create free account
hub / github.com/SOUI2/soui / SDateTimePicker

Method SDateTimePicker

SOUI/src/control/SDateTimePicker.cpp:517–540  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

515
516 //////////////////////////////////////////////////////////////////////////
517 SDateTimePicker::SDateTimePicker()
518 : m_pDropDownWnd(NULL)
519 , m_pSkinBtn(GETBUILTINSKIN(SKIN_SYS_DROPBTN))
520 , m_eSelDateType(eDT_NULL)
521 , m_nNumWidth(0)
522 , m_nCharWidth(0)
523 , m_pCalendar(NULL)
524 , m_nDropWidth(220)
525 , m_bTimeEnable(true)
526 , m_wCharNum(0)
527 {
528 m_evtSet.addEvent(EVENTID(EventDateTimeChanged));
529 m_pNcSkin = GETBUILTINSKIN(SKIN_SYS_BORDER);
530 m_style.SetAttribute(L"margin", L"1", TRUE);
531 m_style.SetAttribute(L"align",L"left",TRUE);
532 m_style.SetAttribute(L"valign",L"middle",TRUE);
533
534 m_bFocusable = TRUE;
535
536 GetLocalTime(&m_sysTime);
537
538 m_crSelBg = RGBA(0,120,215,255);
539 m_crSelText = RGBA(255,255,255,255);
540 }
541
542 SDateTimePicker::~SDateTimePicker()
543 {

Callers

nothing calls this directly

Calls 2

addEventMethod · 0.45
SetAttributeMethod · 0.45

Tested by

no test coverage detected