Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2889b47ab5
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 34 lines (26 sloc) 1.106 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

function! forms#example#vlabels#Make()
  let attrs11 = { 'text': 'My Label11'}
  let vl11 = forms#newVLabel(attrs11)
  let box11 = forms#newBox({ 'body': vl11} )
  let attrs12 = { 'text': 'My Label12'}
  let vl12 = forms#newVLabel(attrs12)
  let box12 = forms#newBox({ 'body': vl12} )
  let vpoly1 = forms#newVPoly({ 'children': [box11, box12] })

  let attrs21 = { 'text': 'My Label21'}
  let vl21 = forms#newVLabel(attrs21)
  let box21 = forms#newBox({ 'body': vl21} )
  let attrs22 = { 'text': 'My Label22'}
  let vl22 = forms#newVLabel(attrs22)
  let box22 = forms#newBox({ 'body': vl22} )
  let vpoly2 = forms#newVPoly({ 'children': [box21, box22] })

  let hpoly = forms#newHPoly({ 'children': [vpoly1, vpoly2] })

  let boxOuter = forms#newBox({ 'body': hpoly, 'mode': 'double'} )

  let bg = forms#newBackground({ 'body': boxOuter} )

  let form = forms#newForm({'body': bg })
  call form.run()
endfunction

function! forms#example#vlabels#MakeTest()
  call forms#AppendInput({'type': 'Sleep', 'time': 5})
  call forms#AppendInput({'type': 'Exit'})
  call forms#example#vlabels#Make()
endfunction
Something went wrong with that request. Please try again.