ListBox::ListBox() { if (ListBoxStyle == NULL) { XmlData::Document* document = new XmlData::Document; StringW* filename = MakeFilePath(_Module, L"../../../ListBoxStyle.lxui"); document->load(filename); Type* returnType; ListBoxStyle = dynamic_cast<Style*>(CreateObjectFromElement(NULL, NULL, document->get_documentElement(), &returnType)); } set_Style(ListBoxStyle); /* ApplyStyle(get_Style(), this); InitScript(); */ }
Thumb::Thumb() { m_dragging = false; if (ThumbStyle == NULL) { XmlData::Document* document = new XmlData::Document; StringW* filename = MakeFilePath(_Module, L"../../../ThumbStyle.lxui"); document->load(filename); Type* returnType; ThumbStyle = dynamic_cast<Style*>(CreateObjectFromElement(NULL, NULL, document->get_documentElement(), &returnType)); } set_Style(ThumbStyle); /* ApplyStyle(get_Style(), this); InitScript(); */ }