Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 30 lines (22 sloc) 1.003 kb
4c5e6d4c »
2012-07-27 first commit
1
2 function! forms#example#checkboxes#Make()
3 let cb11 = forms#newCheckBox({'tag': 'oneone'})
4 let box11 = forms#newBox({ 'body': cb11} )
5 let cb12 = forms#newCheckBox({'tag': 'onetwo'})
6 let box12 = forms#newBox({ 'body': cb12} )
7 let vpoly1 = forms#newVPoly({ 'children': [box11, box12] })
8
9 let cb21 = forms#newCheckBox({'tag': 'twoone'})
10 let box21 = forms#newBox({ 'body': cb21} )
11 let cb22 = forms#newCheckBox({'tag': 'twotow'})
12 let box22 = forms#newBox({ 'body': cb22} )
13 let vpoly2 = forms#newVPoly({ 'children': [box21, box22] })
14
15 let hpoly = forms#newHPoly({ 'children': [vpoly1, vpoly2] })
16
17 let boxOuter = forms#newBox({ 'body': hpoly, 'mode': 'double'} )
18
19 let bg = forms#newBackground({ 'body': boxOuter} )
20
21 let form = forms#newForm({'body': bg })
22 call form.run()
23 endfunction
24
ee21b40b »
2012-08-13 Better support for both 'light' and 'dard' backgrounds.
25 function! forms#example#checkboxes#MakeTest()
26 call forms#AppendInput({'type': 'Sleep', 'time': 5})
27 call forms#AppendInput({'type': 'Exit'})
28 call forms#example#checkboxes#Make()
29 endfunction
Something went wrong with that request. Please try again.