Skip to content

Commit

Permalink
维护更新
Browse files Browse the repository at this point in the history
1、修正List横向滚动条失效的问题;
2、Label增加wordbreak自动换行控制属性;
3、增加Gif使用的演示例子;
4、增加List添加数据的演示例子;
  • Loading branch information
Troy committed Aug 18, 2015
1 parent 1371ab4 commit c275b61
Show file tree
Hide file tree
Showing 10 changed files with 124 additions and 530 deletions.
13 changes: 12 additions & 1 deletion Demos/duidemo/MainWnd.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class CDemoFrame : public WindowImplBase, public CWebBrowserEventHandler, public
CWebBrowserUI* pBrowser2 = static_cast<CWebBrowserUI*>(m_PaintManager.FindControl(_T("oneclick_browser2")));
pBrowser2->SetWebBrowserEventHandler(this);
pBrowser1->NavigateUrl(_T("http://blog.csdn.net/duisharp"));
pBrowser2->NavigateUrl(_T("http://www.2345.com/?kms656067418"));
pBrowser2->NavigateUrl(_T("https://github.com/duisharp/DuiLib_Ultimate"));

CComboUI* pFontSize = static_cast<CComboUI*>(m_PaintManager.FindControl(_T("font_size")));
if(pFontSize)
Expand All @@ -35,6 +35,17 @@ class CDemoFrame : public WindowImplBase, public CWebBrowserEventHandler, public
pElement->SetFixedWidth(120);
pFontSize->Add(pElement);
}

CListUI* pList = static_cast<CListUI*>(m_PaintManager.FindControl(_T("listview")));
for(int i = 0; i < 20; i++)
{
CListTextElementUI* pItem = new CListTextElementUI();
pItem->SetFixedHeight(30);
pList->Add(pItem);
pItem->SetText(0, _T("张三"));
pItem->SetText(1, _T("1000"));
pItem->SetText(2, _T("100"));
}
}

virtual BOOL Receive(SkinChangedParam param)
Expand Down
Loading

0 comments on commit c275b61

Please sign in to comment.