Menu

Event handling changes

The component event function earlier stored as string property but from 0.5.0 version this feature changed to lua_CFunction.
But be careful with the new feature be sure the function was defined before referenced!

~~~~~~~~~~~~
require "vcl"

form = VCL.Form()
form._ = {
caption="Event Test", onClick=function(s) VCL.ShowMessage(s.name) end
}

form:ShowModal()

Posted by Janos Bali 2014-04-17 Labels: Event

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.