实现的效果图:
左侧为TreeView控件,右侧上侧直接使用Label显示列头,右下侧使用VListBox控件即可,
布局文件如下:
<VBox>
<HBox>
<TreeView class="list" name="treeView" bordersize="1,0,1,1" width="300" bordercolor="gray" padding="5,3,5,3" vscrollunit="1000" scrollbarpadding="2,2,2,2">
</TreeView>
<VBox>
<HBox height="35">
<Box width="240" height="35" bordersize="0,0,1,0" bordercolor="light_gray" bkcolor="white">
<Label margin="5" height="35" text="名称" align="vcenter"/>
</Box>
<Box width="120" height="35" bkcolor="white">
<Label margin="5" height="35" text="类型" align="vcenter" />
</Box>
<Box width="540" height="35" bordersize="1,0,1,0" bordercolor="light_gray" bkcolor="white">
<Label margin="5" height="35" text="数据" align="vcenter" />
</Box>
</HBox>
<VListBox class="list" name="listView" bordersize="0,0,1,1" bordercolor="gray">
</VListBox>
</VBox>
</HBox>
</VBox>