Borders

Areas defined by menuDef or itemDef can have a border.
Use the following code.
border WINDOW_BORDER_FULL
bordercolor 1 1 1 1
bordersize 1

border values:
WINDOW_BORDER_FULL
WINDOW_BORDER_HORZ
WINDOW_BORDER_VERT
WINDOW_BORDER_KCGRADIENT



examples:

menuDef {
visible 1
rect 100 200 100 100

itemDef {
visible 1
rect 0 0 50 50
style WINDOW_STYLE_FILLED
backcolor 0 0 0 1
border WINDOW_BORDER_FULL
bordercolor 1 1 1 1
bordersize 1
}

itemDef {
visible 1
rect 100 0 50 50
style WINDOW_STYLE_FILLED
backcolor 0 0 0 1
border WINDOW_BORDER_FULL
bordercolor 1 1 1 1
bordersize 5
}

itemDef {
visible 1
rect 200 0 50 50
style WINDOW_STYLE_FILLED
backcolor 0 0 0 1
border WINDOW_BORDER_FULL
bordercolor 1 1 1 .5
bordersize 10
}

itemDef {
visible 1
rect 300 0 50 50
style WINDOW_STYLE_FILLED
backcolor 0 0 0 1
border WINDOW_BORDER_FULL
bordercolor 1 1 1 .5
bordersize 15
}

itemDef {
visible 1
rect 400 0 50 50
style WINDOW_STYLE_FILLED
backcolor 0 0 0 1
border WINDOW_BORDER_FULL
bordercolor 1 1 1 1
bordersize 20
}

}



menuDef {
visible 1
rect 100 200 100 100

itemDef {
visible 1
rect 0 0 50 50
style WINDOW_STYLE_FILLED
backcolor 0 0 0 1
border WINDOW_BORDER_FULL
bordercolor 1 0 0 1
bordersize 5
}

itemDef {
visible 1
rect 100 0 50 50
style WINDOW_STYLE_FILLED
backcolor 0 0 0 1
border WINDOW_BORDER_HORZ
bordercolor 1 0 0 1
bordersize 5
}

itemDef {
visible 1
rect 200 0 50 50
style WINDOW_STYLE_FILLED
backcolor 0 0 0 1
border WINDOW_BORDER_VERT
bordercolor 1 0 0 1
bordersize 5
}

itemDef {
visible 1
rect 300 0 50 50
style WINDOW_STYLE_FILLED
backcolor 0 0 0 1
border WINDOW_BORDER_KCGRADIENT
bordercolor 1 0 0 1
bordersize 5
}

}


menuDef {
visible 1
rect 100 200 100 100

itemDef {
visible 1
rect 0 50 50 50
style WINDOW_STYLE_FILLED
backcolor 0 0 0 1
border WINDOW_BORDER_FULL
bordercolor 1 0 0 .5
bordersize 5
}

itemDef {
visible 1
rect 100 50 50 50
style WINDOW_STYLE_FILLED
backcolor 0 0 0 1
border WINDOW_BORDER_HORZ
bordercolor 0 1 0 1
bordersize 5
}

itemDef {
visible 1
rect 200 50 50 50
style WINDOW_STYLE_FILLED
backcolor 0 0 0 1
border WINDOW_BORDER_VERT
bordercolor 1 1 1 .3
bordersize 10
}

itemDef {
visible 1
rect 300 50 50 50
style WINDOW_STYLE_FILLED
backcolor 0 0 0 1
border WINDOW_BORDER_KCGRADIENT
bordercolor 1 1 0 1
bordersize 5
}

}

0 comments: