Skip to content

Commit ffdbca5

Browse files
authored
Merge pull request #68 from lovesnow/development
添加VirtualTileBox控件的项目,可替换VirtualListBox
2 parents c2fceb6 + 24686f4 commit ffdbca5

23 files changed

+1605
-4
lines changed
767 Bytes
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Window>
3+
<ListContainerElement class="listitem">
4+
<HBox mouse="false" padding="10,5,10,5">
5+
<Control name="control_img" width="auto" height="auto" margin="0,0,10,0" mouse="false"/>
6+
<VBox margin="0,3,0,5" mouse="false">
7+
<HBox height="auto" mouse="false">
8+
<Label name="label_title" width="stretch" mouse="false"/>
9+
<Button class="btn_recycle" name="btn_del" width="auto" height="auto"/>
10+
</HBox>
11+
<Control height="stretch" mouse="false"/>
12+
<Progress class="progress_blue" name="progress" value="30" mouse="false"/>
13+
</VBox>
14+
</HBox>
15+
</ListContainerElement>
16+
</Window>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Window size="1200,800" caption="0,0,0,35">
3+
<VBox bkcolor="bk_wnd_darkcolor">
4+
<HBox width="stretch" height="35" bkcolor="bk_wnd_lightcolor">
5+
<Label text="TileBox数据懒加载实现" font="system_14" valign="center" margin="8"/>
6+
<Control />
7+
<Button class="btn_wnd_min" name="minbtn" margin="4,6,0,0"/>
8+
<Box width="21" margin="4,6,0,0">
9+
<Button class="btn_wnd_max" name="maxbtn"/>
10+
<Button class="btn_wnd_restore" name="restorebtn" visible="false"/>
11+
</Box>
12+
<Button class="btn_wnd_close" name="closebtn" margin="4,6,8,0"/>
13+
</HBox>
14+
<HBox childmargin="5" bkcolor="white" padding="5,5,5,10">
15+
<VBox width="300" bordersize="1" bordercolor="splitline_level2" padding="5,10,5,10" childmargin="10">
16+
<HBox height="30" childmargin="10">
17+
<Label font="system_bold_14" text="列设置:" width="auto" height="auto" valign="center" />
18+
<Option class="circle_option_2" name="option_column_auto" group="option_group" text="自动计算" margin="0,5,0,10" selected="true"/>
19+
<Option class="circle_option_2" name="option_column_fix" group="option_group" text="固定列数" margin="0,5,0,10">
20+
<Event type="select" receiver="box_column_op" applyattribute="visible=&quot;true&quot;" />
21+
<Event type="unselect" receiver="box_column_op" applyattribute="visible=&quot;false&quot;" />
22+
</Option>
23+
</HBox>
24+
25+
<HBox name="box_column_op" height="30" childmargin="10" visible="false">
26+
<Control width="45" />
27+
<Box bordersize="1" bordercolor="splitline_level1" width="80" height="26">
28+
<RichEdit name="edit_column" margin="10,0,10,0" font="system_14" width="stretch" height="auto" valign="center" normaltextcolor="black" multiline="false" promptmode="true" prompttext="列数" align="vcenter,hcenter" text="3" promptcolor="splitline_level1" autohscroll="true" />
29+
</Box>
30+
<CheckBox class="checkbox_font12" name="checkbox_item_center" text="列表居中" margin="0,5,0,10" selected="true" />
31+
</HBox>
32+
<Control height="1" bkcolor="splitline_level2" />
33+
<HBox height="30" childmargin="10">
34+
<Label font="system_bold_14" text="子项间隙:" width="auto" height="auto" valign="center" />
35+
<Box bordersize="1" bordercolor="splitline_level1" width="80" height="26">
36+
<RichEdit name="edit_child_margin" margin="10,0,10,0" font="system_14" width="stretch" height="auto" valign="center" normaltextcolor="black" multiline="false" promptmode="true" prompttext="子项间隙" align="vcenter,hcenter" text="" promptcolor="splitline_level1" autohscroll="true" />
37+
</Box>
38+
</HBox>
39+
<HBox height="30" childmargin="10">
40+
<Label font="system_bold_14" text="总数据:" width="auto" height="auto" valign="center" />
41+
<Box bordersize="1" bordercolor="splitline_level1" width="180" >
42+
<RichEdit name="edit_total" margin="10,0,10,0" font="system_14" width="stretch" height="auto" valign="center" normaltextcolor="black" multiline="false" promptmode="true" prompttext="总数据" promptcolor="splitline_level1" autohscroll="true" />
43+
</Box>
44+
45+
</HBox>
46+
47+
<Box height="30" childmargin="10" width="stretch">
48+
<Button class="btn_global_blue_80x30" halign="center" valign="center" name="btn_set_total" text="更改/设置" />
49+
</Box>
50+
51+
<Control height="1" bkcolor="splitline_level2" />
52+
53+
<HBox height="30" childmargin="10">
54+
<Label font="system_bold_14" text="改变数据:" width="auto" height="auto" valign="center" />
55+
<Box bordersize="1" bordercolor="splitline_level1" height="26">
56+
<RichEdit name="edit_update" margin="10,0,10,0" font="system_14" width="stretch" height="auto" valign="center" normaltextcolor="black" multiline="false" promptmode="true" prompttext="序号(下标1)" promptcolor="splitline_level1" autohscroll="true" align="vcenter,hcenter" />
57+
</Box>
58+
<Box bordersize="1" bordercolor="splitline_level1" height="26">
59+
<RichEdit name="edit_task_name" margin="10,0,10,0" font="system_14" width="stretch" height="auto" valign="center" normaltextcolor="black" multiline="false" promptmode="true" prompttext="新的任务名称" promptcolor="splitline_level1" autohscroll="true" />
60+
</Box>
61+
</HBox>
62+
63+
64+
<Box height="30" childmargin="10" width="stretch">
65+
<Button class="btn_global_blue_80x30" halign="center" valign="center" name="btn_update" text="更新数据" />
66+
</Box>
67+
68+
<Control height="1" bkcolor="splitline_level2" />
69+
70+
<HBox height="30" childmargin="10">
71+
<Label font="system_bold_14" text="删除数据:" width="auto" height="auto" valign="center" />
72+
<Box bordersize="1" bordercolor="splitline_level1" >
73+
<RichEdit name="edit_delete" margin="10,0,10,0" font="system_14" width="stretch" height="auto" valign="center" normaltextcolor="black" multiline="false" promptmode="true" prompttext="序号(下标1)" promptcolor="splitline_level1" autohscroll="true" align="vcenter,hcenter" />
74+
</Box>
75+
<Button class="btn_global_red_80x30" halign="center" valign="center" name="btn_delete" text="删除数据" />
76+
</HBox>
77+
78+
79+
</VBox>
80+
<!--column="3" width="auto" halign="center" childmargin="10" -->
81+
<Box>
82+
<VirtualTileBox class="list" name="list" vscrollunit="70" itemsize="220,60" bordersize="1" bordercolor="splitline_level2" padding="1,1,1,1">
83+
</VirtualTileBox>
84+
</Box>
85+
86+
</HBox>
87+
</VBox>
88+
</Window>

samples/samples.sln

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 2013
4-
VisualStudioVersion = 12.0.40629.0
4+
VisualStudioVersion = 12.0.21005.1
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tool_kits", "tool_kits", "{66F85B8F-11B7-4964-B51E-99DF85D8FE00}"
77
EndProject
@@ -31,6 +31,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcef_dll_wrapper", "..\th
3131
EndProject
3232
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "controls", "controls\controls.vcxproj", "{8BD95440-9000-4745-8011-27DD553EF06F}"
3333
EndProject
34+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "VirtualBox", "VirtualBox\VirtualBox.vcxproj", "{E35589C6-9509-4116-996F-1D045C2DACAE}"
35+
EndProject
3436
Global
3537
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3638
Debug|Win32 = Debug|Win32
@@ -127,22 +129,29 @@ Global
127129
{8BD95440-9000-4745-8011-27DD553EF06F}.Release|Win32.Build.0 = Release|Win32
128130
{8BD95440-9000-4745-8011-27DD553EF06F}.Release|x64.ActiveCfg = Release|x64
129131
{8BD95440-9000-4745-8011-27DD553EF06F}.Release|x64.Build.0 = Release|x64
132+
{E35589C6-9509-4116-996F-1D045C2DACAE}.Debug|Win32.ActiveCfg = Debug|Win32
133+
{E35589C6-9509-4116-996F-1D045C2DACAE}.Debug|Win32.Build.0 = Debug|Win32
134+
{E35589C6-9509-4116-996F-1D045C2DACAE}.Debug|x64.ActiveCfg = Debug|Win32
135+
{E35589C6-9509-4116-996F-1D045C2DACAE}.Release|Win32.ActiveCfg = Release|Win32
136+
{E35589C6-9509-4116-996F-1D045C2DACAE}.Release|Win32.Build.0 = Release|Win32
137+
{E35589C6-9509-4116-996F-1D045C2DACAE}.Release|x64.ActiveCfg = Release|Win32
130138
EndGlobalSection
131139
GlobalSection(SolutionProperties) = preSolution
132140
HideSolutionNode = FALSE
133141
EndGlobalSection
134142
GlobalSection(NestedProjects) = preSolution
135143
{E106ACD7-4E53-4AEE-942B-D0DD426DB34E} = {66F85B8F-11B7-4964-B51E-99DF85D8FE00}
136144
{8D9A6595-717A-41C8-B468-0011A72BE3D1} = {66F85B8F-11B7-4964-B51E-99DF85D8FE00}
145+
{9951345F-620B-4BED-BB51-4F928CAFD454} = {66F85B8F-11B7-4964-B51E-99DF85D8FE00}
146+
{0149BA6E-3C0A-426D-AA0A-0B9EC7742F19} = {66F85B8F-11B7-4964-B51E-99DF85D8FE00}
137147
{F1A9371F-9A34-45A0-98EB-83FF371F067F} = {B2087994-3DF6-4A57-B8C6-6F744520D7FA}
138148
{2BFFA1EE-039D-479E-9BCC-2D12F8AEDD16} = {B2087994-3DF6-4A57-B8C6-6F744520D7FA}
139149
{B8588C07-9CE2-456C-83B1-86E4B65D4108} = {B2087994-3DF6-4A57-B8C6-6F744520D7FA}
140150
{878F5BF0-652A-4FDB-992B-BB7F26D62F0D} = {B2087994-3DF6-4A57-B8C6-6F744520D7FA}
141151
{FDB5539F-1060-4975-B603-B66454C8C897} = {B2087994-3DF6-4A57-B8C6-6F744520D7FA}
142-
{9951345F-620B-4BED-BB51-4F928CAFD454} = {66F85B8F-11B7-4964-B51E-99DF85D8FE00}
143-
{0149BA6E-3C0A-426D-AA0A-0B9EC7742F19} = {66F85B8F-11B7-4964-B51E-99DF85D8FE00}
144-
{A9D6DC71-C0DC-4549-AEA0-3B15B44E86A9} = {1DA0A8E2-5832-42FC-83F7-2CDCAD379C90}
145152
{8BD95440-9000-4745-8011-27DD553EF06F} = {B2087994-3DF6-4A57-B8C6-6F744520D7FA}
153+
{E35589C6-9509-4116-996F-1D045C2DACAE} = {B2087994-3DF6-4A57-B8C6-6F744520D7FA}
154+
{A9D6DC71-C0DC-4549-AEA0-3B15B44E86A9} = {1DA0A8E2-5832-42FC-83F7-2CDCAD379C90}
146155
EndGlobalSection
147156
GlobalSection(ExtensibilityGlobals) = postSolution
148157
SolutionGuid = {68CA0970-4242-4E4F-94D2-C19760FCA05D}

samples/virtualbox/Resource.h

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
//{{NO_DEPENDENCIES}}
2+
// Microsoft Visual C++ generated include file.
3+
// Used by VirtualBox.rc
4+
//
5+
6+
#define IDS_APP_TITLE 103
7+
8+
#define IDR_MAINFRAME 128
9+
#define IDD_VIRTUALBOX_DIALOG 102
10+
#define IDD_ABOUTBOX 103
11+
#define IDM_ABOUT 104
12+
#define IDM_EXIT 105
13+
#define IDI_VIRTUALBOX 107
14+
#define IDI_SMALL 108
15+
#define IDC_VIRTUALBOX 109
16+
#define IDC_MYICON 2
17+
#ifndef IDC_STATIC
18+
#define IDC_STATIC -1
19+
#endif
20+
// жÔÏóµÄÏÂÒ»×éĬÈÏÖµ
21+
//
22+
#ifdef APSTUDIO_INVOKED
23+
#ifndef APSTUDIO_READONLY_SYMBOLS
24+
25+
#define _APS_NO_MFC 130
26+
#define _APS_NEXT_RESOURCE_VALUE 129
27+
#define _APS_NEXT_COMMAND_VALUE 32771
28+
#define _APS_NEXT_CONTROL_VALUE 1000
29+
#define _APS_NEXT_SYMED_VALUE 110
30+
#endif
31+
#endif

0 commit comments

Comments
 (0)