Progressbar:onContext() event


This event is fired when the user has clicked on the Progressbar with the right mouse button.

Return value

The event returns no value.

Example

local ui = require "ui" -- create a window local win = ui.Window("Progressbar:onContext() sample", 320, 200) local pb = ui.Progressbar(win) pb:center() -- set a onContext() event : change the Progressbar position function pb:onContext() self.position = 100 end win:show() while win.visible do ui.update() end