****** UPDATE ******
I have done further testing (actually, there was a lib function but never called so I didn't think it was important!) but it turns out that it was. In fact, I created a new panel and instrument, with just the code below, and it works fine. So, even though the lib function wasn't called, it did have an impact on the execution of the display!
I apologize to anyone that tried to duplicate the error (unsuccessfully I would bet)!
****** UPDATE ******
Now, back to your regularly scheduled message!
Sparky
____________________________________________________________________________________________
I was just "playing with an idea" when I noticed what I think must be a bug. First, here's the code:
Code: Select all
MyDarkGreen = "#008000"
MyGold = "#FFD700"
MyLightGreen = "#80FF80"
MyPurple = "#9932CC"
MyRed = "#FF0084"
--
MCPPanel = canvas_add( 0, 0, 804, 150)
--
canvas_draw(MCPPanel, function()
--
_rect(3, 3, 799, 145)
_stroke(MyGold, 5)
--
_rect(5, 5, 794, 140)
_fill(MyDarkGreen)
--
end)
But, here's what "plays" when I start it from the AM home tab: You can see that at the top there's one pixel high of black, four pixels of black to the right (and the gold is short of where it should be) and the green is one pixel short to the right and one pixel short on the bottom.
I duplicated this several times, including after a fresh restart of windows. I also attached a copy of my lua file.
Explanation, please.
Sparky