It works fine. Except "statictext" in lua is actually seen as an fxGuiElement smartpointer, and I am unable to use the fxGuiStaticText functionality.
I've checked the manual and the mailing list archives, but I'm unable to find any solution. Supposedly it is easy to fix, but it is unclear to me. Or is polymorphism or some kind of workaround out of the question in this scenario?