import win.ui;
import fonts.fontAwesome
/*DSG{{*/
var mainForm = win.form(text="aardio form";right=739;bottom=459;border="none")
mainForm.add(
custom={cls="custom";left=160;top=36;right=740;bottom=459;bgcolor=16777215;db=1;dl=1;dr=1;dt=1;z=5};
leftplus={cls="plus";left=160;top=4;right=560;bottom=34;dl=1;dt=1;notify=1;z=3};
plus2={cls="plus";text='\uF015 轻松自在';left=0;top=0;right=160;bottom=36;dl=1;dt=1;font=LOGFONT(h=-14;name='FontAwesome');z=4};
tabplus={cls="plus";left=0;top=36;right=160;bottom=457;db=1;dl=1;dr=1;dt=1;notify=1;z=1};
titleBar={cls="bkplus";left=0;top=0;right=741;bottom=34;bgcolor=14977280;dl=1;dr=1;dt=1;z=2}
)
/*}}*/
import win.ui.simpleWindow;
win.ui.simpleWindow( mainForm );
mainForm.show();
import godking.customPlus
//顶部Tab栏
tabModel = {
{ // 项目背景 0x88FFFFFF
type="rect",
click=true;
rectf={x=0;y=0;width=0;height=0},
width=-1;
color = 0xFF0089E4;
fillcolor=0xFF0089E4,
itemhoverfillcolor=0xFFC2C2FF,
itemselectedfillcolor=0x88FFFFFF;
disabledfillcolor=0xFFEEEEEE,
},
{
name="logo",
type="text",
rectf={x=10;y=6;width=30;height=30},
AntiAlias=true,
font={name="FontAwesome",point=14,color=0xFF1e50a2},
itemhoverfont={name="FontAwesome",point=15,color=0xFFFFFFFF},
},
{
name="title",
type="text",
AntiAlias=true,
rectf={x=20;y=5;width=-10;height=40},
font={name="Tahoma",point=11,color=0xFF5d492c},
itemhoverfont={name="Tahoma",point=12,color=0xFFFFFFFF},
align=1
},
}
tabList = {{title ="主页",logo = '\uF015'},{title ="进度",logo = '\uF044'},{title ="材料",logo = '\uF0D1'},{title ="班组",logo = '\uF0C0'},}
var tab = godking.customPlus(mainForm.leftplus/*plus*/,tabModel,tabList,{
itemWidth=100,
itemHeight=36,
autoSizeRow=false,
autoSizeCol=true,
colnum=0,
rownum=1,
})
tab.onClick = function(itemIndex/*项目索引*/,elemIndex/*元素索引*/,elemID/*元素id*/,elemName/*元素name*/,pageIndex/*当前页项目索引*/){
win.msgbox(itemIndex);
var frist = mainForm.custom.loadForm("\dlg\"+itemIndex+".aardio");
frist.show();
}
//左侧菜单
leftModel = {
{ // 项目背景
type="rect",
click=true;
rectf={x=0;y=0;width=0;height=0},
width=2;
color = 0x88FFFFFF;
fillcolor=0xFFdcd3b2,
itemhoverfillcolor=0xFF9d896c,
itemselectedfillcolor=0xFFCdB99c;
disabledfillcolor=0xFFEEEEEE,
},
{
name="title",
type="text",
AntiAlias=true,
rectf={x=0;y=6;width=-9;height=36},
font={name="Tahoma",point=13,color=0xFF5d492c},
itemhoverfont={name="Tahoma",point=14,color=0xFFFFFFFF},
align=1
},
}
leftList = {{title ="喜洋洋"},{title ="暖洋洋"},{title ="懒洋洋"}}
/*for(i=1;3;1){
..table.push(leftList, {
logo=eval("'\uF01"++(i+5)++"'"),
title="132"++i,
})
}*/
var left = godking.customPlus(mainForm.tabplus/*plus*/,leftModel,leftList,{
itemWidth=160,
itemHeight=36,
autoSizeRow=false,
autoSizeCol=true,
colnum=1,
rownum=0,
})
left.onClick = function(itemIndex/*项目索引*/,elemIndex/*元素索引*/,elemID/*元素id*/,elemName/*元素name*/,pageIndex/*当前页项目索引*/){
win.msgbox(itemIndex)
}
win.loopMessage();