Hey Steve,
I found an even easier solution the LuaPanel color problem, I just used the GetParent(), and then set the color of the
parent by setting the background color from the script. I also tried using the GetBackgroundColour(), and the refreash() and ClearBackground() functions but for what ever reason even though I could see the Getbackground color coming in, it would not set it that way even with the refreash and/or clearBG funcs...
So, the solution was/is to just use the SetBackgroundColour(wxColor of your background), and it works, put this code,
at the top of the main, in the else panel section:
else
panel = mcLuaPanelParent;
local window = panel:GetParent();
window:SetBackgroundColour(wx.wxColour(230, 230, 230));--use the same color bg as the panel sits on in screen designer
window:ClearBackground();
local wsize = window:GetSize();
panel:SetSize(wsize);
panel:Connect(
wx.wxEVT_CLOSE_WINDOW,
function (event)
event:Skip();
end);
end
Scott