add progress bar

This commit is contained in:
airstruck
2015-10-28 11:15:23 -04:00
parent 4372740363
commit 0759d36702
10 changed files with 44 additions and 5 deletions

View File

@@ -69,6 +69,8 @@ local mainForm = { title = "Test window", id = 'mainWindow', type = 'panel',
{ value = 2, text = 'Thing Two' },
{ value = 3, text = 'Thing Three' },
} },
{ type = 'panel', text = 'A progress bar', align = 'bottom', height = 24, padding = 4 },
{ type = 'progress', height = 32, margin = 4, id = 'progressBar', },
},
},
{ type = 'sash', height = 4, },
@@ -91,9 +93,9 @@ layout.leftSideBox:addChild {
align = 'middle right'
}
layout.slidey:onMotion(function (event)
layout.statusbar.text = event.x
return false
layout.slidey:onPressDrag(function (event)
layout.progressBar.value = layout.slidey.value
layout.progressBar:reflow()
end)
--[[