Eve definitions in Lua

Often many dialogs in an application have very similar Eve definitions. For example, all of the "Properties" dialogs on Windows contain a tab group and "OK/Cancel/Apply" buttons. It would be nice to be able to define functions that return commonly used combinations of widgets.

One solution to this problem is to write the Eve definitions in an embeddable language such as Lua.

My current thinking is that a datastructure would be built in Lua that defines all of the views, and that there would be a function exposed that would take this datastructure and build a UI from it. So an Eve definition might look like this: