Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2889b47ab5
Fetching contributors…

Cannot retrieve contributors at this time

file 30 lines (23 sloc) 1.112 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

function! forms#example#labels2#Make()
  let l1 = forms#newLabel({ 'text': 'one'})
  let l2 = forms#newLabel({ 'text': 'two'})
  let l3 = forms#newLabel({ 'text': 'three'})
  let hpoly1 = forms#newHPoly({ 'children': [l1, l2, l3] })
  let bhp = forms#newBorder({ 'body': hpoly1, 'char': '.' })

  let la = forms#newLabel({ 'text': 'aaaa'})
  let lb = forms#newLabel({ 'text': 'bbbbbbb'})
  let blb = forms#newBorder({ 'body': lb, 'char': '*' })



  let vpoly1 = forms#newVPoly({ 'children': [bhp,la,blb], 'alignment': 'L' })
  let vpoly2 = forms#newVPoly({ 'children': [bhp,la,blb], 'alignment': 'C' })
  let vpoly3 = forms#newVPoly({ 'children': [bhp,la,blb], 'alignment': 'R' })
  let hpoly2 = forms#newHPoly({ 'children': [vpoly1, vpoly2, vpoly3] })
  let bo = forms#newBorder({ 'body': hpoly2 })
  let bg = forms#newBackground({ 'body': bo} )

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

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