Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 23 lines (17 sloc) 0.704 kB
4c5e6d4 first commit
megaannum authored
1
2 function! forms#example#editors2#Make()
3 let attrs1 = {'size': 10, 'init_text': 'one' }
4 let editor1 = forms#newVariableLengthField(attrs1)
5 let b1 = forms#newBox({ 'body': editor1 })
6
7 let attrs2 = {'size': 20}
8 let editor2 = forms#newVariableLengthField(attrs2)
9 let b2 = forms#newBox({ 'body': editor2 })
10
11 let vpoly = forms#newVPoly({ 'children': [b1, b2], 'alignment': 'L' })
12 let bg = forms#newBackground({ 'body': vpoly} )
13
14 let form = forms#newForm({'body': bg })
15 call form.run()
16 endfunction
17
ee21b40 Better support for both 'light' and 'dard' backgrounds.
megaannum authored
18 function! forms#example#editors2#MakeTest()
19 call forms#AppendInput({'type': 'Sleep', 'time': 5})
20 call forms#AppendInput({'type': 'Exit'})
21 call forms#example#editors2#Make()
22 endfunction
Something went wrong with that request. Please try again.