Hi,
I start the lua panels with createUI(mcLuaPanelParent) after loading the panel code.
That works fine for runtime, but is of no help in debug sessions, as in debug mode mcLuaPanelParent is not existant.
In the samples they create a dialog frame in case mcLuaPanelParent is null, but I think, that is not apropriate.
In mach4 a luaPanel will most likely have no frame as parent, but another wxControl ...
So what could be used in screen-designer-debug-mode?
Inside createUI mcLuaPanelParent is used like this (as parameter called panel):
local window = panel:GetParent()
local wsize = window:GetSize()
panel:SetSize(wsize)
...
as I found out, at control creation time mcLuaPanelParent has no size, so the startup code does not lead to the desired size.
So a resize handler has to be established.