Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 31 lines (23 sloc) 1.112 kb
4c5e6d4 first commit
megaannum authored
1
2 function! forms#example#labels2#Make()
3 let l1 = forms#newLabel({ 'text': 'one'})
4 let l2 = forms#newLabel({ 'text': 'two'})
5 let l3 = forms#newLabel({ 'text': 'three'})
6 let hpoly1 = forms#newHPoly({ 'children': [l1, l2, l3] })
7 let bhp = forms#newBorder({ 'body': hpoly1, 'char': '.' })
8
9 let la = forms#newLabel({ 'text': 'aaaa'})
10 let lb = forms#newLabel({ 'text': 'bbbbbbb'})
11 let blb = forms#newBorder({ 'body': lb, 'char': '*' })
12
13
14
15 let vpoly1 = forms#newVPoly({ 'children': [bhp,la,blb], 'alignment': 'L' })
16 let vpoly2 = forms#newVPoly({ 'children': [bhp,la,blb], 'alignment': 'C' })
17 let vpoly3 = forms#newVPoly({ 'children': [bhp,la,blb], 'alignment': 'R' })
18 let hpoly2 = forms#newHPoly({ 'children': [vpoly1, vpoly2, vpoly3] })
19 let bo = forms#newBorder({ 'body': hpoly2 })
20 let bg = forms#newBackground({ 'body': bo} )
21
22 let form = forms#newForm({'body': bg })
23 call form.run()
24 endfunction
25
ee21b40 Better support for both 'light' and 'dard' backgrounds.
megaannum authored
26 function! forms#example#labels2#MakeTest()
27 call forms#AppendInput({'type': 'Sleep', 'time': 5})
28 call forms#AppendInput({'type': 'Exit'})
29 call forms#example#labels2#Make()
30 endfunction
Something went wrong with that request. Please try again.