在HDevelop中
gen_region_line (RegionLines, 100, 50, 100, 150)
gen_region_line (RegionLines1, 150, 50, 150, 150)
concat_obj (RegionLines, RegionLines1, ObjectsConcat)
*两个区域组合成区域集
*参数3:输出区域
dev_open_window(0,100,300,300,'black',WindowHandle)
dev_display(ObjectsConcat)
在Qt Creator中
HObject ho_RegionLines, ho_RegionLines1, ho_ObjectsConcat;
HTuple hv_WindowHandle;
GenRegionLine(&ho_RegionLines, 100, 50, 100, 150);
GenRegionLine(&ho_RegionLines1, 150, 50, 150, 150);
ConcatObj(ho_RegionLines, ho_RegionLines1, &ho_ObjectsConcat);
//两个区域组合成区域集
//参数3:输出区域
SetWindowAttr("background_color","black");
OpenWindow(0,100,300,300,0,"visible","",&hv_WindowHandle);
HDevWindowStack::Push(hv_WindowHandle);
if (HDevWindowStack::IsOpen())
DispObj(ho_ObjectsConcat, HDevWindowStack::GetActive());